Page History
...
See also Example for Module CSPadPixCoords::CSPad2x2NDArrProducer.
Module CSPadPixCoords::CSPad2x2NDArrReshape
CSPad2x2NDArrReshape is a module for psana framework. This module reshapes ndarrays from cspad2x2 data format (185,388,2) to cspad-"natural" format (2,185,388). Input arrays for re-shaping are specified by the source
and keys_in
parameters. Output arrays - by the source
and keys_out
parameters. Currently four data type are supported for input arrays; int16, int, float, and double of const and non-const types. Output arrays have the same data type as input.
Conventions for key lists description
- keys_in should not be empty to convert something,
- keys should be space separated, ex.: keys_in = k1 key2 key3 k4,
- if keys_out is non-empty then the number of keys in keys_out should be equal to the number of keys in keys_in and their names will be used without any modifications,
- If keys_out is empty, then all keys are defined by the list of key_in
- if the key in key_in has a suffix specified by the colon ":", this suffix will be dropped for the output key, ex.: key12:xyz -> key12
- if the key suffix is missing in the input key, then it will be added to the output key as :2x185x388, ex.: key12 -> key12:2x185x388
Configuration parameters:
parameter | default value | description |
---|---|---|
| ":Cspad2x2" | source of data |
|
| list of input keys separated by space. At least one should be specified. May have suffixes as <key>:<suffix>, which will be dropped for default |
|
| list of output keys separated by space. Is empty by default, list will be generated from the list defined in |
| 0 | verbosity:
|
See also Example for Module CSPadPixCoords::CSPad2x2NDArrReshape.
JIRA Issue:
Jira | ||||
---|---|---|---|---|
|
Package ImgPixSpectra
For complete reference see the Doxygen documentation.
...