NAME
s4dbascheck - reads in standard s4 dbase files to check for
reasonable data.
SYNOPSIS
s4dbascheck -lo1 First Oscillator -lo2 Second Oscillator -id
Receiver ID -t Sigma Threshold [-v Verbose Mode]
These flags are exactly the same as with s4pcdbase, with an
additional -v option to display verbose output. Input from
stdin.
DESCRIPTION
s4dbascheck reads dbase files to check for reasonable data.
These are all simple tests to make sure values in each stan-
dard event record are correct or within a specific range.
This program exits 0 upon sifting through the entire dbase
file if all the data are reasonable. If there is question-
able data the program exits 1 immediately (without continu-
ing), UNLESS you are in verbose mode, in which case
s4dbascheck sends the event line number and the specific
problem to stderr, and then continues on in the file to find
more problems if any (and once through, exits 1 ).
However, if the date field contains a year that doesn't
match the current year, a warning containing the line # and
the year value will get sent to stderr, the program will
continue checking more data, and eventually exit 1. This is
because we'll get lots of mismatched year fields during the
beginning of every new year, and don't want s4dbascheck to
quit everytime it hits the first field in every file.
NOTES/BUGS
The data tests are done in this order as follows (data must
*adhere* to these following rules to continue):
* 1 <= Month <= 12
* 1 <= Day <= # of days in particular month
* 1997 <= Year <= 2005
* If Year isn't current, send warning (see above)
* 00000000 <= Hour String <= 23595999
* 0.0 <= RA < 24.0
* -3.0 <= Dec <= 40.0
* First LO and Second LO are correct (supplied by user)
* LOW_BIN <= lBinNumber <= HIGH_BIN
* 0 <= ucBid <= 39
* ulFftBdFreq correct (depending on ucBid)
* 172.0 <= dbBirdieSynth <= 311.0
* dbBirdieSynth doesn't have a decimal
* 0 < usPower
* usSigmaThreshold is correct (supplied by user)
* 0 < usActualThreshold
* 10 <= usAdc <= 100
* cPolarization is correct (checked against
BoardTable[ucBid])
* usSpctResLog = 0
* ucTid is correct (supplied by user)
Man(1) output converted with
man2html