29 #ifndef SYNTHESIS_CTSELECTION_H
30 #define SYNTHESIS_CTSELECTION_H
casacore::Vector< casacore::Int > getAntenna2List(const casacore::MeasurementSet *ms=NULL)
Accessor for the list of antenna-2 of the selected baselines.
Vector< Int > getObservationList(const MeasurementSet *ms=NULL)
Accessor for the list of the selected observation IDs.
Vector< Int > getScanList(const MeasurementSet *ms=NULL)
Accessor for the list of the selected scan IDs.
Vector< Int > getAntenna1List(const MeasurementSet *ms=NULL)
Accessor for the list of antenna-1 of the selected baselines.
Vector< Int > getFieldList(const MeasurementSet *ms=NULL)
Accessor for the list of selected field IDs.
casacore::Bool setStateExpr(const casacore::String &stateExpr)
casacore::Vector< casacore::Int > getSpwList(const casacore::MeasurementSet *ms=NULL)
Accessor for the list of the selected Spectral Window IDs.
casacore::Vector< casacore::Int > getFieldList(const casacore::MeasurementSet *ms=NULL)
Accessor for the list of selected field IDs.
casacore::Vector< casacore::Int > getRefAntIds(casacore::MSSelectableTable *msLike)
Reference antenna: get reference antenna ids from cal table ANTENNA2 column.
Bool setSpwExpr(const String &spwExpr)
void doCalAntennaSel(const casacore::String &antennaExpr, casacore::MSSelectableTable *msLike)
Resets msSelection_p expressions for antenna selection: use taqlExpr to select on ANTENNA1 only for a...
casacore::Vector< casacore::Int > getAntenna1List(const casacore::MeasurementSet *ms=NULL)
Accessors for items selected:
Bool setAntennaExpr(const String &antennaExpr)
Expression setters.
casacore::Vector< casacore::Int > getScanList(const casacore::MeasurementSet *ms=NULL)
Accessor for the list of the selected Scan IDs.
Handle class for a table column expression tree.
virtual Type type()
Return the type enum.
Bool setObservationExpr(const String &observationExpr)
Bool setFieldExpr(const String &fieldExpr)
casacore::Bool setObservationExpr(const casacore::String &observationExpr)
CTSelection: Class to represent a selection on a CASA CalTable.
casacore::Matrix< casacore::Double > getTimeList(const casacore::MeasurementSet *ms=NULL)
Accessor for the list of the specified time range(s) as the start and end MJD values.
TableExprNode getTEN(const MeasurementSet *ms=NULL)
Accessor for result of parsing all of the selection expressions.
casacore::String getRefAntBaselines(casacore::Int antId, casacore::Vector< casacore::Int > refantIds, casacore::String neg)
make baseline strings for ref ant with all ref ants
Bool setTaQLExpr(const String &taqlExpr)
Vector< Int > getAntenna2List(const MeasurementSet *ms=NULL)
Accessor for the list of antenna-2 of the selected baselines.
casacore::Vector< casacore::Int > getObservationList(const casacore::MeasurementSet *ms=NULL)
Accessor for the list of the selected Observation IDs.
casacore::MSSelection * msSelection_p
void clear(const casacore::MSSelection::MSExprType type=casacore::MSSelection::NO_EXPR)
clear selections
casacore::Bool setFieldExpr(const casacore::String &fieldExpr)
Expression setters.
CTSelection & operator=(const CTSelection &other)
Assignment operator.
casacore::Bool setSpwExpr(const casacore::String &spwExpr)
Vector< Int > getSpwList(const MeasurementSet *ms=NULL)
Accessor for the list of the selected Spectral Window IDs.
MSSelection: Class to represent a selection on an MS.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
casacore::Bool setTimeExpr(const casacore::String &timeExpr)
casacore::Bool setAntennaExpr(const casacore::String &antennaExpr)
Bool setTimeExpr(const String &timeExpr)
Bool setScanExpr(const String &scanExpr)
MSSelectableTable: An interface class used by MSSelection module to access the sub-tables and main-ta...
casacore::Bool setTaQLExpr(const casacore::String &taqlExpr)
void reset(casacore::MSSelectableTable &msLike, const casacore::MSSelection::MSSMode &mode=casacore::MSSelection::PARSE_NOW, const casacore::String &timeExpr="", const casacore::String &antennaExpr="", const casacore::String &fieldExpr="", const casacore::String &spwExpr="", const casacore::String &taqlExpr="", const casacore::String &scanExpr="", const casacore::String &stateExpr="", const casacore::String &observationExpr="")
// casacore::Matrix<casacore::Int> getChanList( const casacore::MeasurementSet* ms=NULL, const casacore::Int defaultStep=1, const casacore::Bool sorted=false); { return msSelection_p->getChanList(ms, defaultStep, sorted); }
A Table intended to hold astronomical data (a set of Measurements).
casacore::TableExprNode getTEN()
bool isRefAntenna(casacore::Int antennaId, casacore::Vector< casacore::Int > refantIds)
check if antennaId is a reference antenna
bool zeroIsSelected(casacore::String antennaExpr, casacore::MSSelectableTable *msLike)
Antenna ID 0: check if zero is selected (else it is negated but there is no -0)
Bool setStateExpr(const String &stateExpr)
void clear(const MSExprType type=NO_EXPR)
Clear sub-expression and reset priority.
String: the storage and methods of handling collections of characters.
CTSelection()
Default null constructor, and destructor.
casacore::TableExprNode toTableExprNode(casacore::MSSelectableTable *msLike)
Matrix< Double > getTimeList(const MeasurementSet *ms=NULL)
Accessor for the list of the specified time range(s) as the start and end MJD values.
void setAntennaSelections(casacore::String antsel, casacore::MSSelectableTable *msLike)
append baseline selection and set taql selection
casacore::Bool setScanExpr(const casacore::String &scanExpr)