Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

  1. keys_in should not be empty to convert something,
  2. keys should be space separated, ex.: keys_in = k1 key2 key3 k4,
  3. 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,
  4. 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

source

":Cspad2x2"

source of data

keys_in

 

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 keys_out

keys_out

 

list of output keys separated by space.  Is empty by default, list will be generated from the list defined in keys_in dropping or adding suffixes

print_bits

0

verbosity:

  • =0 - print nothing
  • +1 - input parameters
  • +2 - input/output keys
  • +4 - warning about non-found keys in the event store
  • +8 - warning about non-found keys in the calib store
  • +16 - print type size and one character id name

 

See also Example for Module CSPadPixCoords::CSPad2x2NDArrReshape.

JIRA Issue:

Jira
serverSLAC National Accelerator Laboratory
keyPSAS-45

Package ImgPixSpectra

For complete reference see the Doxygen documentation.

...