Content
Setup environment
ssh psana
cd <your-directory>
sit_setup
Get latest version
In oder to use new module ImgAlgos.AndorImageProducer (until release > ana-0.10.10 is generated) psana needs to be launched from local release directory, which can be created once as:
newrel ana-current my-local-release-directory ; cd my-local-release-directory ; sit_setup ; addpkg ImgAlgos HEAD ; scons ; ... psana -c psana-mecb3114-r0017-tiff.cfg
Configuration file
There are two versions of image saving modules ImgAlgos.ImgSaveInFile
and pyimgalgos.image_save_in_file,
which create slightly different TIFF files.
Configuration file for Python module pyimgalgos.image_save_in_file
Content of the file psana-mecb3114-r0017-tiff.cfg
[psana] files = exp=mecb3114:run=17 #events = 5 #skip-events = 0 modules = ImgAlgos.AndorImageProducer \ pyimgalgos.image_save_in_file [ImgAlgos.AndorImageProducer] source = DetInfo(MecTargetChamber.0:Andor.1) key_in = key_out = andor_img outtype = asdata print_bits = 1 [pyimgalgos.image_save_in_file] source = DetInfo(MecTargetChamber.0:Andor.1) key_in = andor_img #ofname = andor.1.txt ofname = andor.1.tiff print_bits = 5
Get TIFF files from data
Run psana with configuration file and optional run number by the command:
psana -c psana-mecb3114-r0017-tiff.cfg exp=mecb3114:run=17
Tiff files will be produced with common prefix name andor.1
(which may contain path to the directory as well):
andor.1-mecb3114-r0017-ev000001.tiff
andor.1-mecb3114-r0017-ev000002.tiff
andor.1-mecb3114-r0017-ev000003.tiff
References
Overview
Content Tools