CRaTER -- statistics

statistics

statistics -- Calculate mean and RMS deviations of CRaTER science data

USAGE

    statistics [-h] [-m] [-n] [-p port_address] [-r filename] [-v]

FLAGS

    -m   reports the mean/std dev/min/max values over the sample
          (default is to report only std dev for six detectors)
    -n   specifies number of samples prior to calculation [1000]
    -p   set port address [11403]
    -r   take input from filename rather than UDP port
    -t   add packet time in LRO-seconds and UTC to output
    -v   verbose display

DESCRIPTION

This program gathers primary science data and calculates, for a given interval, the mean, maximum, minimum, and RMS deviation about the mean for each detector chain. The input is the raw CCSDS packet stream.

To reduce the noise generated by occasional cosmic rays which, in practice, deposit relatively small amounts of charge, during alternate collection intervals the true mean of all events is calculated and then a threshold 20 ADU below that value is used to reject spurious events. This program is only meant to be used with monoenergetic inputs.

For ease of use, this program many be invoked by the CStatistics script.

ENVIRONMENT

    perl5.002     Minimum version of Perl interpreter required

BUGS

None admitted to.

SEE ALSO

CStatistics, lf_zero

AUTHOR

Bob Goeke

RCS Information

$Id: statistics,v 1.11 2008/09/12 19:38:09 goeke Exp goeke $