Modified from: PSD_monitor_rad by Henrich Frielinghaus, FZJuelich
Position-sensitive TOF monitor with radially averaging.
Author: Kim Lefmann
Date: March 2012
TOF monitor that performs radial averaging.
Comment: The intensity is given as two 2D files:
1) a radial sum vs. TOF
2) a radial average (i.e. intensity per area) vs. TOF
Example: TOF_PSD_monitor_rad(rmax=0.2, nr=100, filename="Output.psd", filename_av="Output_av.psd")
Parameters in boldface are required;
the others are optional.
Number of concentric circles
Number of time bins
If set, monitor will skip writing to disk
Name of file in which to store the detector image
Name of file in which to store the averaged detector image