MSCalEnums.h

Classes

MSCalEnums -- MSCalEnums: Field name dictionary for MeasurementSet and calibration tables (full description)

class MSCalEnums

Types

enum colDef

ANTENNA1 = 0
First include all MeasurementSet MAIN columns which may be used in calibration selection, interpolation or labelling. Antenna number
ANTENNA2 = 1
FEED1 = 2
Feed identifier
FEED2 = 3
PULSAR_BIN = 4
Pulsar bin number
SCAN_NUMBER = 5
Scan number
TIME = 6
Time
TIME_EXTRA_PREC = 7
Extra time precision
INTERVAL = 8
Interval
ARRAY_ID = 9
Array identifier
PROCESSOR_ID = 10
Processor identifier
FIELD_ID = 11
Field identifier
OBSERVATION_ID = 12
Observation identifier
PULSAR_GATE_ID = 13
Pulsar gate
SPECTRAL_WINDOW_ID = 14
Spectral window identifier
PHASE_ID = 15
Phase identifier
STATE_ID = 16
State identifier
FREQ_GROUP = 100
Other secondary MeasurementSet columns Frequency group
FREQ_GROUP_NAME = 101
Frequency group name
FIELD_NAME = 102
Field name
FIELD_CODE = 103
Field code
SOURCE_NAME = 104
Source name
SOURCE_CODE = 105
Source code
CALIBRATION_GROUP = 106
Source calibration group
GAIN = 200
Other calibration table columns Gain matrix values
REF_ANT = 201
Reference antenna
REF_FEED = 202
Reference feed
REF_RECEPTOR = 203
Reference receptor
REF_FREQUENCY = 204
Reference frequency
MEAS_FREQ_REF = 205
Reference frequency frame
REF_DIRECTION = 206
Reference direction
MEAS_DIR_REF = 207
Reference direction frame
POINTING_OFFSET = 208
Antenna pointing offsets
MEAS_POINTING = 209
Pointing offset frame
CAL_DESC_ID = 300
Calibration format descriptor
CAL_HISTORY_ID = 301
Calibration history identifier
TOTAL_SOLUTION_OK = 400
Solution statistics and weights Solution validity flag
TOTAL_FIT = 401
RMS of fit
TOTAL_FIT_WEIGHT = 402
Sum of fit weights
SOLUTION_OK = 403
Solution validity flag (per solution)
FIT = 404
RMS of fit (per solution)
FIT_WEIGHT = 405
Sum of fit weights (per solution)
NUM_SPW = 500
Calibration description columns Number of spectral windows
NUM_CHAN = 501
Number of frequency channels
NUM_RECEPTORS = 502
Number of receptors
N_JONES = 503
Jones matrix dimension
CHAN_FREQ = 504
Midpoint of frequency channels
CHAN_WIDTH = 505
Frequency channel width
CHAN_RANGE = 506
Channel range
JONES_TYPE = 507
Jones matrix type
POLARIZATION_TYPE = 508
Polarization enumerations
MS_NAME = 509
MeasurementSet name
CAL_PARMS = 600
Calibration history columns Application parameter values
CAL_TABLES = 601
Associated calibration tables
CAL_SELECT = 602
Calibration selection
CAL_NOTES = 603
Calibration notes
CAL_DESC = 700
Keywords Cal Desc sub-table
CAL_HISTORY = 701
Cal History sub-table
ROT_MEASURE = 800
FJones additions
ROT_MEASURE_ERROR = 801
IONOSPH_TEC = 802
IONOSPH_TEC_ERROR = 803
PHASE_OFFSET = 900
GJonesDelayRateSB additions
SB_DELAY = 901
DELAY_RATE = 902
POLY_TYPE = 1000
General polynomial calibration additions
POLY_MODE = 1001
SCALE_FACTOR = 1002
VALID_DOMAIN = 1003
N_POLY_AMP = 1004
N_POLY_PHASE = 1005
POLY_COEFF_AMP = 1006
POLY_COEFF_PHASE = 1007
PHASE_UNITS = 1008
SIDEBAND_REF = 1100
BJonesPoly additions
N_KNOTS_AMP = 1200
Spline polynomial calibration additions
N_KNOTS_PHASE = 1201
SPLINE_KNOTS_AMP = 1202
SPLINE_KNOTS_PHASE = 1203

Interface

Public Members
static String fieldName (Int enumField)
static Block<String> fieldNames (const Vector<Int>& enumFields)
static DataType basicType (Int enumField)
Private Members
static void initMaps()

Description

Prerequisite

Etymology

From MeasurementSet and calibration enumerations.

Synopsis

MSCalEnums defines a global dictionary of field names and properties used by both the MeasurementSet and calibration tables. Field names and properties are accessed through enumerated constants, thus ensuring a consistent and uniform interface. Both column names and keywords are included here. All data are stored in static maps.

Example

      // Determine the column name for the SPECTRAL_WINDOW_ID column
      String name = MSC::fieldName (MSC::SPECTRAL_WINDOW_ID));

Motivation

Provide unified, consistent access to data fields used in the synthesis system, in both the user interface and individual applications.

To Do

Re-define MSCalEnums to MSC for simplified access. Requires forward declaration of MSCalEnums

Member Description

enum colDef

Enumerate all relevant data fields (columns and keywords)

static String fieldName (Int enumField)

Access functions for column/keyword description data

static Block<String> fieldNames (const Vector<Int>& enumFields)

static DataType basicType (Int enumField)

static void initMaps()

Initialize the static maps