MSSelection.h
Classes
- MSSelection -- MSSelection: Class to represent a selection on an MS (full description)
Interface
- Public Members
- MSSelection()
- virtual ~MSSelection()
- MSSelection(const Record& selectionItem)
- MSSelection(const MSSelection& other)
- MSSelection& operator=(const MSSelection& other)
- void setStartTime(const MEpoch& startTime)
- void setEndTime(const MEpoch& endTime)
- void setFieldIds(const Vector<Int>& fieldIds)
- void setFieldNames(const Vector<String>& fieldNames)
- void setSourceNames(const Vector<String>& sourceNames)
- void setScanNos(const Vector<Int>& scanNos)
- void setSpwIds(const Vector<Int>& spwIds)
- void setFreqGrps(const Vector<Int>& freqGrps)
- void setChanSel(const Int& nchan, const Int& start, const Int& step)
- void setVelocitySel(const Int& nchan, const MRadialVelocity& velocityStart, const MRadialVelocity& velocityStep)
- void setAntennaIds(const Vector<Int>& antennaIds)
- void setAntennaNames(const Vector<String>& antennaNames)
- void setInterferometerIds(const Matrix<Int>& interferometerIds)
- void setFeedIds(const Vector<Int>& feedIds)
- void setCorrTypes(const Vector<String>& corrTypes)
- void setArrayIds(const Vector<Int>& arrayIds)
- void setUVRange(const Double& startUV, const Double& endUV)
- void setMSSelect(const String& msSelect)
- void setObsModes(const Vector<String>& obsModes)
- void setCalGrps(const Vector<String>& calGrps)
- TableExprNode toTableExprNode(const MeasurementSet& ms)
- Private Members
- void fromSelectionItem(const Record& selectionItem)
- Bool definedAndSet(const Record& inpRec, const String& fieldName)
Prerequisite
Etymology
From "MeasurementSet" and "selection".
Synopsis
The MSSelection class represents a selection on a MeasurementSet (MS).
This class is used in translating MS selections represented as
selection items in the user interface, and for converting between
MS selection and pure TaQL selection.
Example
Motivation
This class is used by the MS access classes.
To Do
Member Description
Default null constructor, and destructor
Construct from a record representing a selection item
at the or user interface level.
MSSelection(const MSSelection& other)
Copy constructor
MSSelection& operator=(const MSSelection& other)
Assignment operator
Field accessors
void setChanSel(const Int& nchan, const Int& start, const Int& step)
void setUVRange(const Double& startUV, const Double& endUV)
Convert to TableExprNode format (C++ interface to TaQL)
Initialize from a Record representing a selection
item from the user interface or CLI
Check if record field exists and is not unset