NAME                    = RAD
COLUMNS                 = 10
ROW_BYTES               = 28
INTERCHANGE_FORMAT      = BINARY
PRIMARY_KEY             = ( "SPACECRAFT_CLOCK_START_COUNT", 
                           "DETECTOR_NUMBER" )
DESCRIPTION             = "

    The RAD table contains the raw and calibrated observed radiances.
    For each observation there can be up to 6 RAD records, one for each
    active spectrometer detector.  If the Temporal Integration Count
    (OBS Table, TEMPORAL_AVERAGE_COUNT) is greater than 1, then the data
    represent the average of the measurements from that many scans.

    The instrument can apply a programmable spectral mask to the raw
    data causing neighboring channels to be averaged; however, this
    feature is used only when downlink bandwidth is limited.  When
    spectrally masked data are received, the averaged-out channels are
    replaced with the averaged value to expand the spectra back to its
    original size.  The spectral-mask that was used to perform the
    averaging is kept in this table.

    The raw spectra are compressed for downlink.  The original
    bit-packed compression header, containing the size of the
    compressed data and the compression mode used, is kept in this
    table in order to be used to evaluate the performance of the compressor."

OBJECT                  = COLUMN
    NAME                = SPACECRAFT_CLOCK_START_COUNT
    DATA_TYPE           = MSB_UNSIGNED_INTEGER
    START_BYTE          = 1
    BYTES               = 4
    ALIAS_NAME          = sclk_time
    DESCRIPTION         = "The value of the spacecraft clock at the
                          beginning of the observation"
END_OBJECT              = COLUMN

OBJECT                  = COLUMN
    NAME                = DETECTOR_NUMBER
    DATA_TYPE           = MSB_UNSIGNED_INTEGER
    START_BYTE          = 5
    BYTES               = 1
    ALIAS_NAME          = detector
    DESCRIPTION         = "The number of the spectrometer detector that
                          made the observation. Detectors are numbered 
                          from 1 to 6"
END_OBJECT              = COLUMN

OBJECT                  = COLUMN
    NAME                = SPECTRAL_MASK
    DATA_TYPE           = MSB_UNSIGNED_INTEGER
    START_BYTE          = 6
    BYTES               = 1
    ALIAS_NAME          = spectral_mask
    DESCRIPTION         = "ID number of spectral mask applied.  
                           See ancillary Masks table"
END_OBJECT              = COLUMN

OBJECT                  = COLUMN
    NAME                = COMPRESSION_MODE
    DATA_TYPE           = MSB_UNSIGNED_INTEGER
    START_BYTE          = 7
    BYTES               = 2
    ALIAS_NAME          = cmode
    DESCRIPTION         = "16-bit compression header of original data
                           containing the size and compression mode of the 
                           original compressed data.  See TES Users Guide."
END_OBJECT              = COLUMN

OBJECT                  = COLUMN
    NAME                = RAW_RADIANCE
    DATA_TYPE           = MSB_INTEGER
    START_BYTE          = 9
    BYTES               = 4
    VAR_DATA_TYPE       = MSB_INTEGER
    VAR_ITEM_BYTES      = 2
    VAR_RECORD_TYPE     = Q15
    ALIAS_NAME          = raw_rad
    DESCRIPTION         = "Raw spectral radiance"
    UNIT                = "transformed volts"
END_OBJECT              = COLUMN

OBJECT                  = COLUMN
    NAME                = CALIBRATED_RADIANCE
    DATA_TYPE           = MSB_INTEGER
    START_BYTE          = 13
    BYTES               = 4
    VAR_DATA_TYPE       = MSB_INTEGER
    VAR_ITEM_BYTES      = 2
    VAR_RECORD_TYPE     = Q15
    ALIAS_NAME          = cal_rad
    DESCRIPTION         = "Calibrated spectral radiance"
    UNIT                = "watts cm-2 steradian-1 wavenumber-1"
END_OBJECT              = COLUMN

OBJECT                  = COLUMN
    NAME                = DETECTOR_TEMPERATURE
    DATA_TYPE           = MSB_UNSIGNED_INTEGER
    START_BYTE          = 17
    BYTES               = 2
    ALIAS_NAME          = tdet
    DESCRIPTION         = "Derived temperature of the detector, used to
                           remove instrument radiance in calibration
                           algorithm"
    UNIT                = "K"
        SCALING_FACTOR      = 0.01
END_OBJECT              = COLUMN

OBJECT                  = COLUMN
    NAME                = TARGET_TEMPERATURE
    DATA_TYPE           = MSB_UNSIGNED_INTEGER
    START_BYTE          = 19
    BYTES               = 2
    ALIAS_NAME          = target_temp
    DESCRIPTION         = "Derived temperature of the observed target"
    UNIT                = "K"
        SCALING_FACTOR      = 0.01
END_OBJECT              = COLUMN

OBJECT                  = COLUMN
    NAME                = RADIANCE_CALIBRATION_ID
    DATA_TYPE           = CHARACTER
    START_BYTE          = 21
    BYTES               = 4
    ALIAS_NAME          = version_id
    DESCRIPTION         = "Calibration algorithm version id for 
                           spectral data." 
END_OBJECT              = COLUMN

OBJECT                  = COLUMN
    NAME                = QUALITY
    DATA_TYPE           = MSB_UNSIGNED_INTEGER
    START_BYTE          = 25
    BYTES               = 4
    ALIAS_NAME          = quality
    DESCRIPTION         = "Quality word, bits TBD."
END_OBJECT              = COLUMN