MSSelectionKeywords.h

Classes

MSSelectionKeywords -- MSSelectionKeywords specifies selection keywords for the MeasurementSet (full description)

class MSSelectionKeywords

Types

enum Field

UNDEFINED = 0
undefined field
AMPLITUDE
the range of visibility amplitude
CORRECTED_AMPLITUDE
the range of corrected vis amplitude
MODEL_AMPLITUDE
the range of model vis amplitude
RATIO_AMPLITUDE
the amplitude of the ratio corrected data/model data
RESIDUAL_AMPLITUDE
the residual vis amplitude (corrected-model)
OBS_RESIDUAL_AMPLITUDE
the observed residual vis amplitude (observed-model)
ANTENNA1
the list of antenna1 id values
ANTENNA2
the list of antenna2 id values
ANTENNAS
the list of antenna names
ARRAY_ID
the list of array id values
AXIS_INFO
description of the data axes
CHAN_FREQ
the channel frequencies, a vector for each selected spectral window
CORR_NAMES
the list of polarizations present, this gives the String values
CORR_TYPES
the list of polarizations present, this gives the Stokes enum values
DATA
the complex data
CORRECTED_DATA
the complex corrected data
MODEL_DATA
the complex model data
RATIO_DATA
the ratio corrected data/model data
RESIDUAL_DATA
the residual data (corrected - model)
OBS_RESIDUAL_DATA
the observed residual data (observed - model)
DATA_DESC_ID
the list of dataDescription id values
FEED1
the list of feed1 id values
FEED2
the list of feed2 id values
FIELD_ID
the list of field_id values
FIELDS
the list of field names
FLAG
the flags
FLAG_ROW
the row flags
FLAG_SUM
a summary of flags (flag count summed over rows)
FLOAT_DATA
the float data (optional single dish column)
HA
Hour angle
IFR_NUMBER
the list of interferometers (= 1000*ant1+ant2) present
IMAGINARY
the (range of the) imaginary part of the visibilities
CORRECTED_IMAGINARY
the (range of the) imaginary part of the corrected visibilities
MODEL_IMAGINARY
the (range of the) imaginary part of the model visibilities
RATIO_IMAGINARY
the imaginary part of the ratio corrected data/model data
RESIDUAL_IMAGINARY
the (range of the) imaginary part of the residual visibilities
OBS_RESIDUAL_IMAGINARY
the (range of the) imaginary part of the observed residual visibilities
IMAGING_WEIGHT
imaging weights
LAST
Local Apparent Sidereal Time
NUM_CORR
the number of correlation products (polarizations) for selected spectral window
NUM_CHAN
the number of spectral channels for selected spectral window
PHASE
the (range of the) phase of the visibilities
CORRECTED_PHASE
the (range of the) phase of the corrected visibilities
MODEL_PHASE
the (range of the) phase of the model visibilities
RATIO_PHASE
the phase of the ratio corrected data/model data
RESIDUAL_PHASE
the (range of the) phase of the residual visibilities
OBS_RESIDUAL_PHASE
the (range of the) phase of the observed residual visibilities
PHASE_DIR
the phase center direction for each field (matrix + epoch)
REAL
the (range of the) real part of the visibilities
CORRECTED_REAL
the (range of the) real part of the corrected visibilities
MODEL_REAL
the (range of the) real part of the model visibilities
RATIO_REAL
the real part of the ratio corrected data/model data
RESIDUAL_REAL
the real part of the residual visibilities (corrected-model)
OBS_RESIDUAL_REAL
the real part of the observed residuals (observed-model)
REF_FREQUENCY
the reference frequency for selected spectral window (or vector with all)
ROWS
the list of row numbers in the original MS
SCAN_NUMBER
the list of scan_number values
SIGMA
# the list of spectral window id values # SPECTRAL_WINDOW_ID, the per spectrum sigmas
TIME
the range of times
TIMES
the list of time values
UT
UT time (seconds of current day)
UVW
the uvw coordinates
U
the (range of the) U coordinate (m) # Note:order of U, V and W is important, no intervening items allowed # without changing select() code.
V
the (range of the) V coordinate (m)
W
the (range of the) W coordinate (m)
UVDIST
the (range of the) UV-distance (m)
WEIGHT
the weights
NUMBER_KEYWORDS
Number of keywords

Interface

Public Members
static Field field(const String& keyword)
static const String& keyword(Field field)
Protected Members
MSSelectionKeywords()
MSSelectionKeywords(const MSSelectionKeywords& other)
MSSelectionKeywords& operator=(const MSSelectionKeywords& other)
static void initMap(SimpleOrderedMap<String,Int>*& fieldMap, Block<Int>*& reverseMap)

Description

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

MSSelectionKeywords is a class that defines selection keywords

Synopsis

This class is used to specify selections on a MeasurementSet. It is a purely static class that just defines a mapping from Strings to Enums, and provides these for use by classes like MSSelector and MSRange


 

Motivation

Selection keywords are needed for several classes, this class provides them to all, avoiding duplication in each class.

Thrown Exceptions

To Do

Member Description

enum Field

The fields in the MS for which selection and range operations are defined. Some of these directly correspond to columns in the table, others are derived quantities or columns in subtables.

static Field field(const String& keyword)

convert a keyword string to the corresponding enum

static const String& keyword(Field field)

convert an enum value to the corresponding keyword string

MSSelectionKeywords()

This class is purely static, no instances are allowed.

MSSelectionKeywords(const MSSelectionKeywords& other)

MSSelectionKeywords& operator=(const MSSelectionKeywords& other)

static void initMap(SimpleOrderedMap<String,Int>*& fieldMap, Block<Int>*& reverseMap)

initialization function for the string to enum mapping