HDF_average: plot average raw data and spectrum of all recordsΒΆ
Interactive tool, to show the averages of all records of an HDF file.
When it is an x-ray file with pulses, only single pulses are selelected which are above a threshold. Pulse position is not taken into account.
When it is a noise file, only the fraction (default 0.25) with lowest signal is taken into account.
This script will show results both in an interactive plot window, so the user can zoom in on details, and in a pdf output for printing.
usage:
usage: HDF_average.py [-h] [-ch CHANNEL] [-f FREQUENCY] [--nfrac NFRAC] [--pthresh PTHRESH] [--noq] [-v] [-a] [--file FILE] Show averaged pulse or noise data record or spectrum optional arguments: -h, --help show this help message and exit -ch CHANNEL, --channel CHANNEL Channel number to use. Default is first available channel. -f FREQUENCY, --frequency FREQUENCY Frequency number (pixel) to use. Default is first available frequency. --nfrac NFRAC Fraction of lowest intensity data to take for noise spectra --pthresh PTHRESH Threshold for detecting pulses --noq Do not plot Q-signals -v, --volts Convert output values to Volts -a, --ampphase Output amplitude and phase for average pulse -o, --output Write ASCII output files of results --file FILE HDF5 input file to use. When not provided, user can select the file interactively