Page History
...
See also Example for Module ImgAlgos::CSPadArrPeakAnalysis.
Package
...
pyimgalgos
This package contains python modules which work with both frameworks pyana and psana. Functionality of these modules resembles modules from C++ package ImgAlgos. The difference between two frameworks at code level is explained in Migration from pyana to psana.
Module
...
pyimgalgos.cspad_arr_producer
This module gets data from evt
store for CSAPD or CSPAD2x2 depending on unique detector name in parameter source
, produce numpy array of full scale shape (4,8,185,388) or (185, 388, 2) of specified in dtype
type, and saves it in the evt
store with unique name key_out
. In case of missing 2x1 sections, their pixel amplitudes substituted by the value form val_miss
.
...
See also Examples for package py_img_algospyimgalgos.
Module
...
pyimgalgos.cspad_image_producer
This module gets from evt
store the numpy array identified by key_in
of full scale shape (4,8,185,388) or (185, 388, 2) for CSPAD or CSPAD2x2, respectively, and produces 2-d image numpy array, taking into account geometry calibration parameters specified by the path calib_dir
. The output image array is saved in the evt
store with unique name, specified by parameter key_out
.
...
See also Examples for package py_img_algospyimgalgos.
Module
...
pyimgalgos.image_save_in_file
This module gets from evt
store 2-d image numpy array for specified unique name in key_in
and saves it in the file with name given by parameter ofname
. File extension defines the output file format. Experiment, run, and event numbers are added to the name of the output file. For example, for ofname = image.tiff
files will be created with names image-<experinent>-r####-ev######.tiff
, where symbols # stands for numbers.
...
See also Examples for package py_img_algospyimgalgos.
Module
...
pyimgalgos.tahometer
Is intended to print records showing job performance current and integrated from the beginning of job:
Code Block | ||
---|---|---|
| ||
py_img_algospyimgalgos.tahometer: run:0049 evt:000005 t[sec]: 2.575 dt[sec]: 2.575 n/t[1/sec]: 1.942 dn/dt[1/sec]: 1.942 |
...
See also Examples for package py_img_algospyimgalgos.
References
- Psana User Manual
- Psana Reference Manual
- Psana Module Examples
- Migration from pyana to psana
- psana - Migration from pyana
...