## Associated Arrays

CLASS imports each Herschel-HIFI spectrum together with the 2 Associated Arrays BLANKED and LINE. They are arrays of 0 or 1, set according to the rules exposed in Table . More information about these arrays is available in the dedicated CLASS documentation.

Table: How the Herschel-HIFI FITS flags are translated into the corresponding CLASS Associated Arrays. Some flags apply to the whole spectrum, others per channel (marked ichan).
CLASS name | Value
BLANKED[ichan] | 1 if bit 20 (IGNORE_DATA) is set in metacard rowflag (level 2.5), else
| 1 if bit 20 (IGNORE_DATA) is set in column rowflag (level 2.0), else
| 1 if bit 7 (SPUR_CANDIDATE) is set in column flag[ichan] (level 2.5), else
| 1 if bit 7 (SPUR_CANDIDATE) is set in column flag_*[ichan] (level 2.0), else
| 1 if bit 30 (IGNORE_DATA) is set in column flag[ichan] (level 2.5), else
| 1 if bit 30 (IGNORE_DATA) is set in column flag_*[ichan] (level 2.0),
| 0 otherwise.
LINE[ichan] | 1 if bit 28 (LINE) is set in column flag[ichan] (level 2.5), else
| 1 if bit 28 (LINE) is set in column flag_*[ichan] (level 2.0), else
| 1 if bit 29 (BRIGHT_LINE) is set in column flag[ichan] (level 2.5), else
| 1 if bit 29 (BRIGHT_LINE) is set in column flag_*[ichan] (level 2.0),
| 0 otherwise.

Table: Look-up table between the CLASS Herschel-HIFI section and the Herschel-HIFI FITS. Depending on the FITS structure (pipeline level), some elements found in a FITS header or in a FITS binary table. FITS names are case sensitive.
CLASS | Type | Value | Default | Description
obsid | I*8 | Card OBS_ID | 0 | Observation id
instrument | C*8 | Card INSTRUME | Blank | Instrument name
proposal | C*24 | Card PROPOSAL | Blank | Proposal name
aor | C*68 | Card AOR | Blank | Astronomical Observation Request
operday | I*4 | Card ODNUMBER | 0 | Operational day number
dateobs | C*28 | Card DATE-OBS | Blank | Start date
dateend | C*28 | Card DATE-END | Blank | End date
obsmode | C*40 | Card OBS_MODE | Blank | Observing mode
vinfo | R*4 | Metacard vlsr if card REDSHFT is | 0.0 | Informative source velocity in LSR
|  | “optical” or “radio” |  |
zinfo | R*4 | Metacard vlsr if card REDSHFT is | 0.0 | Informative target redshift
|  | not “optical” or “radio”, else 0.0 |  |
posangle | R*8 | Card POSANGLE | 0.d0 | Spacecraft pointing position angle
reflam | R*8 | Card RAOFF | 0.d0 | Sky reference (a.k.a. OFF) lambda
refbet | R*8 | Card DECOFF | 0.d0 | Sky reference (a.k.a. OFF) beta
hifavelam | R*8 | Metacard longitude_cmd (level 2.5) or | 0.d0 | HIFI ON average H and V lambda
|  | Column longitude_cmd (level 2.0) |  |
hifavebet | R*8 | Metacard latitude_cmd (level 2.5) or | 0.d0 | HIFI ON average H and V beta
|  | Column latitude_cmd (level 2.0) |  |
etamb | R*4 | Card ETAMB | 0.0 | Main beam efficiency used when
|  |  |  | applying doAntennaTemp
etal | R*4 | Card ETAL | 0.0 | Forward efficiency used when
|  |  |  | applying doAntennaTemp
etaa | R*4 | Card ETAA | 0.0 | Telescope aperture efficiency
hpbw | R*4 | Card HPBW | 0.0 | Azimuthally-averaged HPBW
tempscal | C*8 | Card TEMPSCAL | Blank | Temperature scale in use
lodopave | R*8 | Card LODOPPAV | lofreq | Average LO frequency Doppler
|  |  | (Table ) | corrected to freqFrame (SPECSYS)
gim0 | R*4 | Metacard *sbGain_0 (usb or lsb) | 0.0 | Sideband gain polynomial coeff 0
gim1 | R*4 | Metacard *sbGain_1 (usb or lsb) | 0.0 | Sideband gain polynomial coeff 1
gim2 | R*4 | Metacard *sbGain_2 (usb or lsb) | 0.0 | Sideband gain polynomial coeff 2
gim3 | R*4 | Metacard *sbGain_3 (usb or lsb) | 0.0 | Sideband gain polynomial coeff 3
mixercurh | R*4 | Metacard MJC_Hor (level 2.5) or | 0.0 | Calibrated mixer junction current
|  | Column MJC_Hor (level 2.0) |  | (horizontal polarization)
mixercurv | R*4 | Metacard MJC_Ver (level 2.5) or | 0.0 | Calibrated mixer junction current
|  | Column MJC_Ver (level 2.0) |  | (vertical polarization)
datehcss | C*28 | Card DATE | Blank | Processing date
hcssver | C*24 | Card CREATOR | Blank | HCSS version
calver | C*16 | Card CALVERS | Blank | Calibration version
level | R*4 | Card LEVEL | 0. | Pipeline level