Versions Compared

Key

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

...

  • If a threshold is provided, shots above threshold will be displayed / stored, and shots below
    threshold will be added to sum of darks for averaging.
  • If a dark file is provided, background subtraction is done before filtering. If not, the below-threshold
    average can be used for background subtraction
  • The plot configuration depends on whether threshold and dark subtraction is used. Intensity projections
    are also added to the plot, can be turned off (in the code).

To run this module by itself with pyana:

...

Code Block
none
none
  img_sources       =             # string, Address of Detector-Id|Device-ID
  dark_img_file     =             # filename of a binary numpy (.npy) with dark image for subtraction
  out_avg_file      =             # name (base) of output file for average image (numpy array)
  out_shot_file     =             # name (base) of numpy array file for selected single-shot events
  plot_vrange       =             # range (format vmin:vmax) of values for plotting (pixel intensity)
  threshold         =             # threshold intensity and threshold area. Format: value (xlow:xhigh,ylow:yhigh)

Image Added

CsPad image where the region of interest (a red rectangle in the left figure) has intensity above a given threshold. The right image shows the region of interest.

Image Added

CsPad image where region of interest (red rectangle) has intensity above a given threshold. Additionally, a dark-subtracted image is shown (bottom left), where the dark average is based on below-threshold shots from the same run (shown bottom right)

Image Added

This image is the same as above, but the intensity limits have been adjusted interactively.

Image Added

At the end of the job, the average of good images (left) and rejected / dark images (right) is shown.

Image Removed

Image display of the CSPad detector, background subtracted. This is currently the only display that has interactive features. A filter allows you to select events within requested intensity range.

Image Removed Image Removed Image Removed Image Removed

pyana_image.py

This module processes generic camera frames, e.g from Pulnix TM6740 device. It allows any number of images, given as a space-separated list of addresses in the configuration file.

...