Versions Compared

Key

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

...

Code Block
ImgAlgos/data/PlotNDArrayAndPeaks.py -i test-xppd7114-r0081-e000009-smeared.txt
### or ###
ImgAlgos/data/PlotNDArrayAndPeaks.py -i test-xppd7114-r0081-e000009-raw.txt

one may get images like:

Image Modified

Fig.1: Image of cspad2x2, containing two 2x1 segments. Droplet-finder is applied to the calibrated and smeared data in three windows.

...

Examples for exp=cxif5315:run=165

Example 1

Shows how to get ndarray with CSPAD  data in psana, calibrate it, find peaks (droplets) in imaging data and plot them offline.

Configuration file: psana-cxif5315-r0165-cspad-ds2-NDArrDropletFinder.cfg

...

Code Block
ImgAlgos/data/PlotNDArrayAndPeaks.py -g /reg/d/psdm/CXI/cxif5315/calib/CsPad::CalibV1/CxiDs2.0:Cspad.0/geometry/1-end.data -i test-cxif5315-r0165-e000001-raw.txt

Example 2

Shows how to get ndarray with CSPAD  data in psana, calibrate it, prepare and apply mask, find peaks (droplets) in imaging data and plot them offline.

Configuration file: psana-cxif5315-r0165-cspad-ds2-Configuration file: psana-cxif5315-r0165-cspad-ds2-NDArrDropletFinder-v2.cfg

...

This viewer shows images like:

 

Example 3

Example 3 has the same functionality as Example 2. Also it shows how to access psana data structures from the python script, reconstruct CSPAD image and interactively plot it with overlayed peaks.

file with mask: roi_mask_nda_v3.txt

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

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

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 Added

 

 

Get latest version

...