Versions Compared

Key

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

...

Example 3 has the same functionality as Example 2. Also it this example shows how to

  • gets raw ndarray with CSPAD data, subtract pedestals and background, apply common mode correction, apply mask, find peaks,
  • access psana data structures from the python script,
  • reconstruct CSPAD image,
  • apply selection to the list of droplets and make the list of "bold" beaks,
  • skip events without "bold" peaks,
  • and interactively plot

...

  • images with overlayed peaks.

file with mask: roi_mask_nda_v3.txt

file with background: bkgd-cxif5315-r0165.dat  obtained by averaging calibrated ndarray with module ImgAlgos.NDArrAverage over 1000 events: Image Added

psana configuration file:  psana-cxif5315-r0165-cspad-ds2-NDArrDropletFinder-v3.cfg   - download

python script for interactive psana:  psana-cxif5315-r0165-cspad-ds2-NDArrDropletFinder-v3.py   .txt - download

Interactive job can be launched by the command:

Code Block
./psana-cxif5315-r0165-cspad-ds2-NDArrDropletFinder-v3.py
  • which does all work and plots images with peaks like Image Modified - background is not subtracted, or Image Added- background is subtracted

 

 

Get latest version

Release ana-current (ana-0.13.18 or later) has the latest version of all necessary packages.

...