casacore
Public Types | Static Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
casacore::MSSelectionKeywords Class Reference

More...

#include <MSSelectionKeywords.h>

Public Types

enum  Field {
  UNDEFINED ,
  AMPLITUDE ,
  CORRECTED_AMPLITUDE ,
  MODEL_AMPLITUDE ,
  RATIO_AMPLITUDE ,
  RESIDUAL_AMPLITUDE ,
  OBS_RESIDUAL_AMPLITUDE ,
  ANTENNA1 ,
  ANTENNA2 ,
  ANTENNAS ,
  ARRAY_ID ,
  AXIS_INFO ,
  CHAN_FREQ ,
  CORR_NAMES ,
  CORR_TYPES ,
  DATA ,
  CORRECTED_DATA ,
  MODEL_DATA ,
  RATIO_DATA ,
  RESIDUAL_DATA ,
  OBS_RESIDUAL_DATA ,
  DATA_DESC_ID ,
  FEED1 ,
  FEED2 ,
  FIELD_ID ,
  FIELDS ,
  FLAG ,
  FLAG_ROW ,
  FLAG_SUM ,
  FLOAT_DATA ,
  HA ,
  IFR_NUMBER ,
  IMAGINARY ,
  CORRECTED_IMAGINARY ,
  MODEL_IMAGINARY ,
  RATIO_IMAGINARY ,
  RESIDUAL_IMAGINARY ,
  OBS_RESIDUAL_IMAGINARY ,
  LAST ,
  NUM_CORR ,
  NUM_CHAN ,
  PHASE ,
  CORRECTED_PHASE ,
  MODEL_PHASE ,
  RATIO_PHASE ,
  RESIDUAL_PHASE ,
  OBS_RESIDUAL_PHASE ,
  PHASE_DIR ,
  REAL ,
  CORRECTED_REAL ,
  MODEL_REAL ,
  RATIO_REAL ,
  RESIDUAL_REAL ,
  OBS_RESIDUAL_REAL ,
  REF_FREQUENCY ,
  ROWS ,
  SCAN_NUMBER ,
  SIGMA ,
  TIME ,
  TIMES ,
  UT ,
  UVW ,
  U ,
  V ,
  W ,
  UVDIST ,
  WEIGHT ,
  NUMBER_KEYWORDS
}
 The fields in the MS for which selection and range operations are defined. More...
 

Static Public Member Functions

static Field field (const String &keyword)
 convert a keyword string to the corresponding enum More...
 
static const Stringkeyword (Field field)
 convert an enum value to the corresponding keyword string More...
 

Private Member Functions

 MSSelectionKeywords ()
 This class is purely static, no instances are allowed. More...
 
 MSSelectionKeywords (const MSSelectionKeywords &other)
 
MSSelectionKeywordsoperator= (const MSSelectionKeywords &other)
 

Static Private Member Functions

static std::map< String, Int > & getMap ()
 Get the static map. More...
 
static Block< String > & getReverseMap ()
 Get the static reverse map. More...
 
static std::map< String, IntinitMap ()
 Create an initialized map. More...
 
static Block< StringinitReverseMap ()
 Create an initialized reverse map. More...
 

Detailed Description

MSSelectionKeywords specifies selection keywords for the MeasurementSet

Intended use:

Public interface

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

Example

Motivation

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

Thrown Exceptions

To Do

Definition at line 89 of file MSSelectionKeywords.h.

Member Enumeration Documentation

◆ 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.

Enumerator
UNDEFINED 

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

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 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

the (range of the) U coordinate (m)

the (range of the) V coordinate (m)

the (range of the) W coordinate (m)

UVDIST 

the (range of the) UV-distance (m)

WEIGHT 

the weights

NUMBER_KEYWORDS 

Number of keywords.

Definition at line 95 of file MSSelectionKeywords.h.

Constructor & Destructor Documentation

◆ MSSelectionKeywords() [1/2]

casacore::MSSelectionKeywords::MSSelectionKeywords ( )
private

This class is purely static, no instances are allowed.

◆ MSSelectionKeywords() [2/2]

casacore::MSSelectionKeywords::MSSelectionKeywords ( const MSSelectionKeywords other)
private

Member Function Documentation

◆ field()

static Field casacore::MSSelectionKeywords::field ( const String keyword)
static

convert a keyword string to the corresponding enum

◆ getMap()

static std::map<String,Int>& casacore::MSSelectionKeywords::getMap ( )
staticprivate

Get the static map.

◆ getReverseMap()

static Block<String>& casacore::MSSelectionKeywords::getReverseMap ( )
staticprivate

Get the static reverse map.

◆ initMap()

static std::map<String,Int> casacore::MSSelectionKeywords::initMap ( )
staticprivate

Create an initialized map.

◆ initReverseMap()

static Block<String> casacore::MSSelectionKeywords::initReverseMap ( )
staticprivate

Create an initialized reverse map.

◆ keyword()

static const String& casacore::MSSelectionKeywords::keyword ( Field  field)
static

convert an enum value to the corresponding keyword string

◆ operator=()

MSSelectionKeywords& casacore::MSSelectionKeywords::operator= ( const MSSelectionKeywords other)
private

The documentation for this class was generated from the following file: