Versions Compared

Key

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

...

Dark run calibration can be done with procedure calibman (since ana-0.13.18). Files can be deployed in the expected place, for example

...

for types pedestals pixel_rms  pixel_status.

Note

Runs of sxrg3715 have image every 10 sec it means that 1199 events are empty. In order to get calibration files the calibman default parameters needs to be changed.

Start calibman, click on tab "Configuration" then on tab "Parameters" and set field "end:" to 100000 and field "scan" to "2000". After that regular dark run calibration should work. Do not forget to coise the detector ANDOR.

The same trick with event numbers can be acheived in the calibrun command skeeping empty 1195 events:

calibrun -e sxrg3715 -d ANDOR -c ./calib -P -D -r 46 -n 100000 -s 1195

or

calibrun -e sxrg3715 -d ANDOR -P -D -r 46 -n 100000 -s 1195

or

calibrun -e sxrg3715 -d ANDOR -P -D -r 46 -n 100000 -m 2000

 

Type common_mode constantscan be copied from file type common_mode can be copied with parameters for mode 2 (see : Common mode correction algorithms ), for example

Code Block
2 20 20 512 0 0 0 0 0 0 0 0 0 0 0 0

Setup environment for current release ana-0.13.17

ssh psana

cd <your-any-directory>

newrel ana-current my-local-release-dir;
cd my-local-release-dir;
sit_setup;
addpkg CalibManager HEAD;
scons;

At this point your local release is built and regular session looks like:

cd my-local-release-dir;
sit_setup;
calibman;
OR: use command line calibrun in stead of GUI-based  calibman with deployment of files in local or standard place:
calibrun -e sxrg3715 -c ./calib -d ANDOR -P -D -r 46 -n 100000 -s 1195;
calibrun -e sxrg3715 -d ANDOR -P -D -r 46 -n 100000 -s 1195;
calibrun -e sxrg3715 -d ANDOR -P -D -r 46 -n 100000 -m 2000;

Get calibrated image

In psana Andor image can be retrieved from raw data to ndarray using module ImgAlgos.AndorImageProducer. Then it can be calibrated by the module

...

Code Block
psana -c psana-sxrg3715-r0046-andor-image.cfg

Image examples

Event 12000, exp=xrg3715:run=46, SxrEndstation.0:Andor.2

...

evaluated using the same run 46

Image with subtracted common mode

calib/Andor::CalibV1/SxrEndstation.0:Andor.2/common_mode/0-end.data

Code Block
2 20 20 512 0 0 0 0 0 0 0 0 0 0 0 0

Image Added

This algorithm does not improve image quality. Close consideration shows that the mean intensity value of each row of pixels is consistent with zero. The RMS spread il low for "green" horizontal stripes and larger for "color-full" stripes.

pedestals - Image averaged by calibman

Average over 10 events of exp=xrg3715:run=46, SxrEndstation.0:Andor.2

Image Added Image Added

Horizontal stripes almost disappear on averaged image. That confirms, that mean offset of each stripe is about zero.

References