Page History
...
This page provides examples for selected modules from Psana Module Catalog. Only the modules that are included in the standard analysis releases appear on this page.
Example for Package ImgPixSpectra
Modules:
- ImgPixSpectra::CSPadPixSpectra
- ImgPixSpectra::MiniCSPadPixSpectra
- ImgPixSpectra::CameraPixSpectra
Auxiliary scripts
A few python scripts in ImgPixSpectra/data/
show how to process/plot the spectral array stored in the file.
PlotSpectralArrayFromFile.py
- allows to plot content of the spectral array as a 2-d plot. For example, the command code generates image for limited range of pixels for CSPad, MiniCSPad, or CameraImgPixSpectra/data/PlotSpectralArrayFromFile.py mini-cspad-pix-spectra.txt
- , respectively:
SpectralArray.py
- provides access to the spectral array stored in the file. Theclass SpectralArray
defined in this script is used in thePlotSpectralArrayFromFile.py
.
...
psana.cfg
- set non-default parameters to runpsana
forImgAlgos::ImgPeakFinder
andImgAlgos::ImgPeakFilter
Thepsana
running this script saves images and peaks for event 115 in text files.PlotCameraImageFromFile.py
- Plots image and spectrum for image saved in file.PlotCameraImageAndPeaks.py
- Plots image with found peaks and spectrum.
Example for Package ImgPixSpectra
Modules:
- ImgPixSpectra::CSPadPixSpectra
- ImgPixSpectra::MiniCSPadPixSpectra
- ImgPixSpectra::CameraPixSpectra
The command for auxiliary script:
Code Block |
---|
ImgPixSpectra/data/PlotSpectralArrayFromFile.py mini-cspad-pix-spectra.txt |
generates image for limited range of pixels for CSPad, MiniCSPad, or Camera, respectively:
Examples for Package ImgAlgos
...
Overview
Content Tools