gather_qual
gather_qual updates (or creates, if it doesn't exist) the level 1
log file whose contents are specified here.
It pulls information from the input
data set, any existing level 1 record files, the level 0 record files,
and from the MDI log.
Information bits are determined and set in the Data Status Word (DATA_SW).
Currently gather_qual does the following:
Bits in DATA_SW are set automatically by gather_qual.
Bits set in DATA_SW are normally in the lower 16 bits.
Currently bits 0 and 2-9 are set in gather_qual
as defined in the table.
The fraction missing used to set bits 3-6 will be determined from the
keywords according to
Fraction_Missing = MISSVALS/(MISSVALS + DATAVALS).
gather_qual reads MDI_SW, the MDI Status Word,
to set the bits for IP_ERR, Pointing anomalies, and PRIME30/60 (bits 7,8,9).
The DATA_SSW will be set indicating which bits in DATA_SW
are valid; currently bits 0, 2-9.
The QUALITY keyword will be generated
at this step as specified.
T_QUAL will be set to the current time.
WHENEVER the value of DATA_SW is changed or recomputed,
bit 31 in PROB_VLD is set to 0; indicating that the change in the
level 0 data may require a reevaluation of the manually set
PROBLEM
bits.
Back to QUALITY.
Author JTH; Last modified by KRL on 8 May, 1998