Page History
...
pnCCD image can be reconstructed from data by two methods using
- [psana Module ImgAlgos::PnccdImageProducer|psana-ModuleCatalog-ModuleImgAlgos::PnccdImageProducer] and[psana
- Module ImgAlgos::NDArrImageProducer|psana-ModuleCatalog-ModuleImgAlgos::NDArrImageProducer]
Examples of the first method are available in psana - Module Examples
...
Code Block |
---|
[psana] # psana -m EventKeys -n 3 exp=amoa1214:run=108 #calib-dir = /reg/d/psdm/AMO/amoa1214/calib files = exp=amoa1214:run=108 events = 10 modules = ImgAlgos.PnccdNDArrProducer \ ImgAlgos.NDArrCalib \ ImgAlgos.NDArrImageProducer \ ImgAlgos.NDArrAverage:nda \ ImgAlgos.NDArrAverage:img-geo \ ImgAlgos.Tahometer [ImgAlgos.PnccdNDArrProducer] source = DetInfo(Camp.0:pnCCD.1) key_in = key_out = pnccd-ndarr outtype = asdata print_bits = 0 [ImgAlgos.NDArrCalib] source = DetInfo(Camp.0:pnCCD.1) key_in = pnccd-ndarr key_out = calibrated do_peds = yes do_cmod = yes do_stat = yes do_mask = no do_bkgd = no do_gain = no do_nrms = no do_thre = no #fname_mask = pnccd-test-mask.txt #fname_bkgd = pnccd-test-bkgd.txt masked_value = 0 threshold_nrms = 4.0 threshold = 100 below_thre_value = 0 bkgd_ind_min = 10000 bkgd_ind_max = 10200 bkgd_ind_inc = 1 print_bits = 1 [ImgAlgos.NDArrAverage:nda] source = DetInfo(Camp.0:pnCCD.1) key = calibrated avefile = pnccd-nda-ave rmsfile = pnccd-nda-rms #maskfile = pnccd-nda-msk #hotpixfile = pnccd-nda-hot thr_rms_ADU = 0 thr_min_ADU = 2 thr_max_ADU = 65000 print_bits = 29 [ImgAlgos.NDArrImageProducer] #calibdir = ./calib calibdir = /reg/g/psdm/detector/alignment/pnccd/amo-pnccd.1-2015-01-23/calib source = DetInfo(Camp.0:pnCCD.1) key_in = calibrated key_out = pnccd-img-geo print_bits = 1 [ImgAlgos.NDArrAverage:img-geo] source = DetInfo(Camp.0:pnCCD.1) key = pnccd-img-geo avefile = pnccd-img-geo-ave rmsfile = pnccd-img-geo-rms #maskfile = pnccd-img-geo-msk #hotpixfile = pnccd-img-geo-hot thr_rms_ADU = 0 thr_min_ADU = 2 thr_max_ADU = 65000 print_bits = 29 [ImgAlgos.Tahometer] dn = 100 print_bits = 7 |
use uses psana modules
- ImgAlgos.PnccdNDArrProducer - gets pnCCD data and put it as ndarray in the event store
- ImgAlgos.NDArrCalib - applys calibrations to ndarray
- ImgAlgos.NDArrImageProducer - produces calibrated image
- ImgAlgos.NDArrAverage:nda - averages calibrated ndarray
- ImgAlgos.NDArrAverage:img-geo - averages calibratedimage
...
which saves averaged and RMS files for calibrated ndarray and image, which can be plotted by the command plims <file-name>,
for .
For eample
Code Block |
---|
plims pnccd-nda-ave-amoa1214-r0108.dat plims pnccd-img-geo-ave-amoa1214-r0108.dat |
...
Overview
Content Tools