Table 1: STATE: State information
STATE: State information

Name

Format

Units

Measure

Comments

Columns

Data

SIG

Bool

Signal

REF

Bool

Reference

CALLOAD_NUM

Int

Calibration CAL or LOAD number

(WEIGHT)   

float

Relative weight of the switch state

SUB_INTEGRATION

Int

Sub-integration number

OBS_MODE

String

Observing mode

OBS_INTENT  

String

goal of Observation

Flags

FLAG_ROW

Bool

Row flag



Notes: This table defines the state parameters for a particular data record as they refer to external loads, calibration sources or references, and also characterizes the observing mode of the data record, as an aid to defining the scheduling heuristics. It is indexed directly via STATE_IDin MAIN .
SIG
If SIG and REF are both together false there is blanking.
REF
True for a generic  reference phase in the switching scheme. REF would be true when on chopper or any load, or when on a phase reference calibrator in the Fast Switching observing mode. 
CALLOAD_NUM
Calibration load number. The CALWIDGET  table contains the temperature of the loads which was previously (MSv2) directly provided here in this STATE  table. The CALWIDGET  table is referenced via the primary keys in the MAIN  and SYSCAL  tables and this item CALWIDGET_NUM is relevant only auto-correlation measurements i.e. when ANTENNA1 and ANTENNA2 are identical.
NB: These loads have been moved to that new table to support the fact that the effective load temperature may differ from one receiver to an other, from one antenna to an other and from one spectral window to an other.
WEIGHT
Relative weight of switch state for final processing.
SUB_INTEGRATION
Used to enumerate sub-integrations (from 1 for the 1st sub-integration of an integration); implicitly associated to the number of sub-integration this being enumerated relative the integration.
WARNING: former column name was SUB_SCAN . Renamed to match the concept of INTEGRATION given in the ALMA glossary 
OBS_MODE
Observing mode.  .
Examples (reserved attributes will have to be defined): FSWI (frequency swithing), WSWI (wobbler switching) ONOF (ON OFF). 
WARNING: here OBS is not attached to the concept of OBSERVATION given in the ALMA glossary. 
OBS_INTENT
Intent of the sub-integration. Examples (reserved attributes will have to be defined): FOCUS, PHASEREF, POINTING. Not required to be unique    .
FLAG_ROW
True if the row does not contain valid data. Does not imply flaging in MAIN