casa
5.7.0-16
|
Specifies an casacore::MS selection. More...
#include <PlotMSSelection.h>
Public Member Functions | |
PMS_ENUM1 (Field, fields, fieldStrings, field, FIELD, SPW, TIMERANGE, UVRANGE, ANTENNA, SCAN, CORR, ARRAY, OBSERVATION, INTENT, FEED, MSSELECT) PMS_ENUM2(Field | |
Static //. More... | |
PlotMSSelection () | |
Non-Static //. More... | |
PlotMSSelection (const PlotMSSelection ©) | |
Copy constructor. More... | |
~PlotMSSelection () | |
Destructor. More... | |
void | fromRecord (const casacore::RecordInterface &record) |
Converts this object to/from a record. More... | |
casacore::Record | toRecord () const |
casacore::String | toStringShort () const |
Print out an abbreviated summary of the selection. More... | |
void | apply (casacore::MeasurementSet &ms, casacore::MeasurementSet &selectedMS, casacore::Vector< casacore::Vector< casacore::Slice > > &chansel, casacore::Vector< casacore::Vector< casacore::Slice > > &corrsel) |
Applies this selection using the first casacore::MS into the second MS. More... | |
void | apply (NewCalTable &ct, NewCalTable &selectedCT, casacore::Vector< casacore::Vector< casacore::Slice > > &chansel, casacore::Vector< casacore::Vector< casacore::Slice > > &corrsel) |
Applies this selection to a NewCalTable. More... | |
void | apply (CalTable &ct, CalTable &selectedCT, casacore::Vector< casacore::Vector< casacore::Slice > > &chansel, casacore::Vector< casacore::Vector< casacore::Slice > > &corrsel) |
Applies this selection to a Table. More... | |
const casacore::String & | getValue (Field f) const |
Gets/Sets the value for the given selection field. More... | |
void | getValue (Field f, casacore::String &value) const |
void | setValue (Field f, const casacore::String &value) |
const casacore::String & | field () const |
Convenience methods for returning the standard selection fields. More... | |
const casacore::String & | spw () const |
const casacore::String & | timerange () const |
const casacore::String & | uvrange () const |
const casacore::String & | antenna () const |
const casacore::String & | scan () const |
const casacore::String & | corr () const |
const casacore::String & | array () const |
const casacore::String & | observation () const |
const casacore::String & | intent () const |
const casacore::String & | feed () const |
const casacore::String & | msselect () const |
const casacore::Int & | forceNew () const |
void | setField (const casacore::String &v) |
Convenience methods for setting the standard selection fields. More... | |
void | setSpw (const casacore::String &v) |
void | setTimerange (const casacore::String &v) |
void | setUvrange (const casacore::String &v) |
void | setAntenna (const casacore::String &v) |
void | setScan (const casacore::String &v) |
void | setCorr (const casacore::String &v) |
void | setArray (const casacore::String &v) |
void | setObservation (const casacore::String &v) |
void | setIntent (const casacore::String &v) |
void | setFeed (const casacore::String &v) |
void | setMsselect (const casacore::String &v) |
void | setForceNew (const casacore::Int &forcenew) |
bool | operator== (const PlotMSSelection &other) const |
Equality operators. More... | |
bool | operator!= (const PlotMSSelection &other) const |
bool | fieldsEqual (const PlotMSSelection &other) const |
bool | fieldsNotEqual (const PlotMSSelection &other) const |
PlotMSSelection & | operator= (const PlotMSSelection ©) |
Copy operator. More... | |
casacore::Vector< int > | getSelectedAntennas1 () |
Return lists of antennas that have been selected. More... | |
casacore::Vector< int > | getSelectedAntennas2 () |
bool | isEmpty () const |
Returns whether or not any selections have been made. More... | |
Static Public Member Functions | |
static msselect casacore::String | defaultValue (Field f) |
Returns the default value for the given selection field. More... | |
Public Attributes | |
fields | |
fieldStrings | |
field | |
spw | |
timerange | |
uvrange | |
antenna | |
scan | |
corr | |
array | |
observation | |
intent | |
feed | |
Private Member Functions | |
void | initDefaults () |
Initializes the values to their defaults. More... | |
casacore::String | getTaql (CalTable &ct) |
CalTable::select uses taql string for selection. More... | |
casacore::String | getAntTaql (casacore::MSSelection &mss, casacore::MeasurementSet &ms, casacore::String antExpr) |
handle negation More... | |
casacore::String | getMSName (CalTable &ct) |
For MS + MSSelection. More... | |
Private Attributes | |
std::map< Field, casacore::String > | itsValues_ |
Selection field values. More... | |
casacore::Int | forceNew_ |
Force appearance of new selection (even when not new) More... | |
casacore::Vector< int > | selAnts1 |
casacore::Vector< int > | selAnts2 |
Specifies an casacore::MS selection.
See the mssSetData method in ms/MSSel/MSSelectionTools.h for details.
Definition at line 50 of file PlotMSSelection.h.
casa::PlotMSSelection::PlotMSSelection | ( | ) |
Non-Static //.
Default constructor.
casa::PlotMSSelection::PlotMSSelection | ( | const PlotMSSelection & | copy | ) |
Copy constructor.
See operator=().
casa::PlotMSSelection::~PlotMSSelection | ( | ) |
Destructor.
|
inline |
Definition at line 124 of file PlotMSSelection.h.
References getValue().
void casa::PlotMSSelection::apply | ( | casacore::MeasurementSet & | ms, |
casacore::MeasurementSet & | selectedMS, | ||
casacore::Vector< casacore::Vector< casacore::Slice > > & | chansel, | ||
casacore::Vector< casacore::Vector< casacore::Slice > > & | corrsel | ||
) |
Applies this selection using the first casacore::MS into the second MS.
(See the mssSetData method in ms/MSSel/MSSelectionTools.h for details.)
void casa::PlotMSSelection::apply | ( | NewCalTable & | ct, |
NewCalTable & | selectedCT, | ||
casacore::Vector< casacore::Vector< casacore::Slice > > & | chansel, | ||
casacore::Vector< casacore::Vector< casacore::Slice > > & | corrsel | ||
) |
Applies this selection to a NewCalTable.
void casa::PlotMSSelection::apply | ( | CalTable & | ct, |
CalTable & | selectedCT, | ||
casacore::Vector< casacore::Vector< casacore::Slice > > & | chansel, | ||
casacore::Vector< casacore::Vector< casacore::Slice > > & | corrsel | ||
) |
Applies this selection to a Table.
|
inline |
Definition at line 127 of file PlotMSSelection.h.
References getValue().
|
inline |
Definition at line 126 of file PlotMSSelection.h.
References getValue().
|
static |
Returns the default value for the given selection field.
Returns an empty casacore::String except for FIELD which returns "2".
|
inline |
Definition at line 130 of file PlotMSSelection.h.
References getValue().
|
inline |
Convenience methods for returning the standard selection fields.
Definition at line 120 of file PlotMSSelection.h.
References getValue().
bool casa::PlotMSSelection::fieldsEqual | ( | const PlotMSSelection & | other | ) | const |
Referenced by fieldsNotEqual().
|
inline |
Definition at line 159 of file PlotMSSelection.h.
References fieldsEqual().
|
inline |
Definition at line 132 of file PlotMSSelection.h.
References forceNew_.
void casa::PlotMSSelection::fromRecord | ( | const casacore::RecordInterface & | record | ) |
Converts this object to/from a record.
The record keys are the values of the Field enum in casacore::String form, and the values are the casacore::String values.
|
private |
handle negation
|
private |
For MS + MSSelection.
casacore::Vector<int> casa::PlotMSSelection::getSelectedAntennas1 | ( | ) |
Return lists of antennas that have been selected.
casacore::Vector<int> casa::PlotMSSelection::getSelectedAntennas2 | ( | ) |
|
private |
CalTable::select uses taql string for selection.
const casacore::String& casa::PlotMSSelection::getValue | ( | Field | f | ) | const |
Gets/Sets the value for the given selection field.
Referenced by antenna(), array(), corr(), feed(), field(), intent(), msselect(), observation(), scan(), spw(), timerange(), and uvrange().
|
inline |
|
private |
Initializes the values to their defaults.
|
inline |
Definition at line 129 of file PlotMSSelection.h.
References getValue().
bool casa::PlotMSSelection::isEmpty | ( | ) | const |
Returns whether or not any selections have been made.
|
inline |
Definition at line 131 of file PlotMSSelection.h.
References getValue().
|
inline |
Definition at line 128 of file PlotMSSelection.h.
References getValue().
|
inline |
Definition at line 155 of file PlotMSSelection.h.
References operator==().
PlotMSSelection& casa::PlotMSSelection::operator= | ( | const PlotMSSelection & | copy | ) |
Copy operator.
bool casa::PlotMSSelection::operator== | ( | const PlotMSSelection & | other | ) | const |
Equality operators.
Referenced by operator!=().
casa::PlotMSSelection::PMS_ENUM1 | ( | Field | , |
fields | , | ||
fieldStrings | , | ||
field | , | ||
FIELD | , | ||
SPW | , | ||
TIMERANGE | , | ||
UVRANGE | , | ||
ANTENNA | , | ||
SCAN | , | ||
CORR | , | ||
ARRAY | , | ||
OBSERVATION | , | ||
INTENT | , | ||
FEED | , | ||
MSSELECT | |||
) |
Static //.
Enum and methods to define the different fields for an casacore::MS selection. If these are changed, also update: convenience methods below, xmlcasa/implement/plotms/plotms*, xmlcasa/tasks/plotms.xml, xmlcasa/scripts/task_plotms.py.**
|
inline |
Definition at line 125 of file PlotMSSelection.h.
References getValue().
|
inline |
Definition at line 141 of file PlotMSSelection.h.
References setValue().
|
inline |
Definition at line 144 of file PlotMSSelection.h.
References setValue().
|
inline |
Definition at line 143 of file PlotMSSelection.h.
References setValue().
|
inline |
Definition at line 147 of file PlotMSSelection.h.
References setValue().
|
inline |
Convenience methods for setting the standard selection fields.
Definition at line 137 of file PlotMSSelection.h.
References setValue().
|
inline |
Definition at line 149 of file PlotMSSelection.h.
References forceNew_.
|
inline |
Definition at line 146 of file PlotMSSelection.h.
References setValue().
|
inline |
Definition at line 148 of file PlotMSSelection.h.
References setValue().
|
inline |
Definition at line 145 of file PlotMSSelection.h.
References setValue().
|
inline |
Definition at line 142 of file PlotMSSelection.h.
References setValue().
|
inline |
Definition at line 138 of file PlotMSSelection.h.
References setValue().
|
inline |
Definition at line 139 of file PlotMSSelection.h.
References setValue().
|
inline |
Definition at line 140 of file PlotMSSelection.h.
References setValue().
void casa::PlotMSSelection::setValue | ( | Field | f, |
const casacore::String & | value | ||
) |
Referenced by setAntenna(), setArray(), setCorr(), setFeed(), setField(), setIntent(), setMsselect(), setObservation(), setScan(), setSpw(), setTimerange(), and setUvrange().
|
inline |
Definition at line 121 of file PlotMSSelection.h.
References getValue().
|
inline |
Definition at line 122 of file PlotMSSelection.h.
References getValue().
casacore::Record casa::PlotMSSelection::toRecord | ( | ) | const |
casacore::String casa::PlotMSSelection::toStringShort | ( | ) | const |
Print out an abbreviated summary of the selection.
|
inline |
Definition at line 123 of file PlotMSSelection.h.
References getValue().
casa::PlotMSSelection::antenna |
Definition at line 62 of file PlotMSSelection.h.
casa::PlotMSSelection::array |
Definition at line 62 of file PlotMSSelection.h.
casa::PlotMSSelection::corr |
Definition at line 62 of file PlotMSSelection.h.
casa::PlotMSSelection::feed |
Definition at line 62 of file PlotMSSelection.h.
casa::PlotMSSelection::field |
Definition at line 62 of file PlotMSSelection.h.
casa::PlotMSSelection::fields |
Definition at line 62 of file PlotMSSelection.h.
casa::PlotMSSelection::fieldStrings |
Definition at line 62 of file PlotMSSelection.h.
|
private |
Force appearance of new selection (even when not new)
Definition at line 179 of file PlotMSSelection.h.
Referenced by forceNew(), and setForceNew().
casa::PlotMSSelection::intent |
Definition at line 62 of file PlotMSSelection.h.
|
private |
Selection field values.
Definition at line 176 of file PlotMSSelection.h.
casa::PlotMSSelection::observation |
Definition at line 62 of file PlotMSSelection.h.
casa::PlotMSSelection::scan |
Definition at line 62 of file PlotMSSelection.h.
|
private |
Definition at line 180 of file PlotMSSelection.h.
|
private |
Definition at line 181 of file PlotMSSelection.h.
casa::PlotMSSelection::spw |
Definition at line 62 of file PlotMSSelection.h.
casa::PlotMSSelection::timerange |
Definition at line 62 of file PlotMSSelection.h.
casa::PlotMSSelection::uvrange |
Definition at line 62 of file PlotMSSelection.h.