Versions Compared

Key

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

...

Code Block
real_pixels = det.image(evt, np.ones_like(unassembled_array))

NOTE: det.image(evt) maps pixels to a uniform 2D grid.  For detectors with multiple physical panels this is approximate due to panel tilts, and when viewing these images you may notice "jumps" in pixel locations due to the mapping to the uniform grid.  If your analysis is sensitive to these effects it is more precise to use det.calib() and the individual pixel coordinates return by expert methods described here:  https://lcls-psana.github.io/Detector/index.html#module-AreaDetector.

NOTE: as of psana version 0.19.0 the behavior of the area detector "calib" and "image" methods have been changed.  The new, more sustainable, policy is these methods will return the best corrections possible, which can change with new psana releases.  As an example, in ana-0.19.0 we include per-pixel gain corrections (when available from flat-field data) and the configurable 6.85x per-pixel gain correction for the CSPAD (measured with low charges). If you would like your corrections to not change with new releases, you can "freeze" at a specific release by activating the appropriate conda environment.

...

 

...