HOME Prise de donnees MML Controle commande Simulations Notes Hardware Ligne X Laser Interaction Diagnostiques Synchronisation
Diagnostiques
  elog des diags.  Not logged in ThomX    logo
Message ID: 78     Entry time: Sat Apr 9 11:01:08 2022
 Author: Entered by Moutardier Alexandre  
 Status:  
 Type: Info 
 Category: Cameras SST 
 Important:
 Subject: Prise d'image le 6/04/2022 pour présentation RIF 
 Icon:  

Préparation de la présentation du RIF : https://indico.ijclab.in2p3.fr/event/8142/timetable/#20220407.detailed

Charge faisceau : 30 pC

Images prise :

  • Signaux ADC des BPM
  • Image TL/DG/SST.01 (focalisé grace au quad) :
    • cible de calibration
    • Image OTR (exposition : 10s) avec faisceau
    • Image OTR (exposition : 10s) sans faisceau
    • => substraction images OTR pour mettre l'enphase sur le faisceau
    • Image YAG (exposition : 1ms)


Attachment 1: ADC_BPM.png  26 kB  Uploaded Sat Apr 9 12:20:34 2022  | Hide | Hide all
ADC_BPM.png
Attachment 2: 2022-04-06_15_48_13_tl_dg_sst_01-ccd_01_targe_expo200ms_RAW.png  378 kB  Uploaded Sat Apr 9 12:20:45 2022  | Hide | Hide all
2022-04-06_15_48_13_tl_dg_sst_01-ccd_01_targe_expo200ms_RAW.png
Attachment 3: 2022-04-06_15_54_12_tl_dg_sst_01-ccd_01_OTR_10s_beam_RAW_16bits.tiff  635 kB  Uploaded Sat Apr 9 12:23:28 2022
Attachment 4: 2022-04-06_15_55_00_tl_dg_sst_01-ccd_01_OTR_10s_sans_beam_RAW_16bits.tiff  635 kB  Uploaded Sat Apr 9 12:23:45 2022
Attachment 5: traitement_image.py  1 kB  Uploaded Sat Apr 9 12:24:24 2022  | Hide | Hide all
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# Description !!!!!!
# Alexandre  Moutardier, date !!!!!!

#########################################  DO NOT MODIFFY AFTER 

from PIL import Image
import numpy as np
import matplotlib.pyplot as plt

def open_image(image_name):
    img = np.array(Image.open(image_name))
    # img = (img[:,:,0] +img[:,:,1] +img[:,:,2])/3.
    return(img)

#img_avec_beam = open_image("2022-04-06_15_55_00_tl_dg_sst_01-ccd_01_OTR_10s_sans_beam_log_scale_True_despeckle_False_Auto_scale_True.png")
#img_sans_beam = open_image("2022-04-06_15_54_12_tl_dg_sst_01-ccd_01_OTR_10s_beam_log_scale_True_despeckle_False_Auto_scale_True.png")
img_avec_beam = open_image("2022-04-06_15_54_12_tl_dg_sst_01-ccd_01_OTR_10s_beam_RAW_16bits.tiff")
img_sans_beam = open_image("2022-04-06_15_55_00_tl_dg_sst_01-ccd_01_OTR_10s_sans_beam_RAW_16bits.tiff")
img_beam = img_avec_beam+-1*img_sans_beam
print(type(img_avec_beam),type(img_beam))
# print(img_beam)
# print(img_sans_beam)
img_beam[img_beam<0] = 0
img_beam[img_beam>100] = 100
# img_beam[:,:,3] = 255
# print("après tri")
# print(img_beam)

plt.figure("Avec beam ")
plt.imshow(img_avec_beam)
plt.colorbar()
plt.figure("Sans beam ")
plt.imshow(img_sans_beam)
plt.colorbar()
plt.figure("Beam only")
plt.imshow(img_beam)
plt.colorbar()
plt.show()

img = Image.fromarray(img_beam)
print(np.array(img))
img.save("img_beam_only.png")

Attachment 6: Beam_only.png  233 kB  Uploaded Sat Apr 9 12:24:57 2022  | Hide | Hide all
Beam_only.png
Attachment 7: 2022-04-06_15_45_53_tl_dg_sst_01-ccd_01_YAG_30pC_expo1ms_RAW.png  140 kB  Uploaded Sat Apr 9 12:25:44 2022  | Hide | Hide all
2022-04-06_15_45_53_tl_dg_sst_01-ccd_01_YAG_30pC_expo1ms_RAW.png
ELOG V3.1.4-395e101