You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Content

Setup environment

ssh psana

cd <your-directory>

sit_setup

Configuration file

There are two versions of image saving modules ImgAlgos.ImgSaveInFile (C++) and  pyimgalgos.image_save_in_file (Python), 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

 

 

Configuration file for C++ module ImgAlgos.ImgSaveInFile

Module ImgAlgos.ImgSaveInFile can be added to the configuration file as:

modules = ImgAlgos.AndorImageProducer \
          ...
          ImgAlgos.ImgSaveInFile
...

[ImgAlgos.ImgSaveInFile]
source          = DetInfo(MecTargetChamber.0:Andor.1)
key             = andor_img
saveAll         = yes
#ftype           = tiff
ftype           = txt
fname           = andor
print_bits      = 3

 

Get TIFF files from data

Run psana with configuration file and optional experiment/run number structure exp=mecb3114:run=17 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

 

 

 

  • No labels