casa
$Rev:20696$
|
Specifies an MS selection. More...
#include <PlotMSSelection.h>
Public Member Functions | |
PMS_ENUM1 (Field, fields, fieldStrings, field, FIELD, SPW, TIMERANGE, UVRANGE, ANTENNA, SCAN, CORR, ARRAY, OBSERVATION, MSSELECT) PMS_ENUM2(Field | |
Static //. | |
PlotMSSelection () | |
Non-Static //. | |
PlotMSSelection (const PlotMSSelection ©) | |
Copy constructor. | |
~PlotMSSelection () | |
Destructor. | |
void | fromRecord (const RecordInterface &record) |
Converts this object to/from a record. | |
Record | toRecord () const |
void | apply (MeasurementSet &ms, MeasurementSet &selectedMS, Vector< Vector< Slice > > &chansel, Vector< Vector< Slice > > &corrsel) const |
Applies this selection using the first MS into the second MS. | |
void | apply (NewCalTable &ct, NewCalTable &selectedCT, Vector< Vector< Slice > > &chansel, Vector< Vector< Slice > > &corrsel) const |
Applies this selection to a NewCaltable. | |
const String & | getValue (Field f) const |
Gets/Sets the value for the given selection field. | |
void | getValue (Field f, String &value) const |
void | setValue (Field f, const String &value) |
const String & | field () const |
Convenience methods for returning the standard selection fields. | |
const String & | spw () const |
const String & | timerange () const |
const String & | uvrange () const |
const String & | antenna () const |
const String & | scan () const |
const String & | corr () const |
const String & | array () const |
const String & | observation () const |
const String & | msselect () const |
const Int & | forceNew () const |
void | setField (const String &v) |
Convenience methods for setting the standard selection fields. | |
void | setSpw (const String &v) |
void | setTimerange (const String &v) |
void | setUvrange (const String &v) |
void | setAntenna (const String &v) |
void | setScan (const String &v) |
void | setCorr (const String &v) |
void | setArray (const String &v) |
void | setObservation (const String &v) |
void | setMsselect (const String &v) |
void | setForceNew (const Int &forcenew) |
bool | operator== (const PlotMSSelection &other) const |
Equality operators. | |
bool | operator!= (const PlotMSSelection &other) const |
bool | fieldsEqual (const PlotMSSelection &other) const |
bool | fieldsNotEqual (const PlotMSSelection &other) const |
PlotMSSelection & | operator= (const PlotMSSelection ©) |
Copy operator. | |
Static Public Member Functions | |
static msselect String | defaultValue (Field f) |
Returns the default value for the given selection field. | |
Public Attributes | |
fields | |
fieldStrings | |
field | |
spw | |
timerange | |
uvrange | |
antenna | |
scan | |
corr | |
array | |
observation | |
Private Member Functions | |
void | initDefaults () |
Initializes the values to their defaults. | |
Private Attributes | |
map< Field, String > | itsValues_ |
Selection field values. | |
Int | forceNew_ |
Force appearance of new selection (even when not new) |
Specifies an MS selection.
See the mssSetData method in ms/MeasurementSets/MSSelectionTools.h for details.
Definition at line 46 of file PlotMSSelection.h.
Non-Static //.
Default constructor.
casa::PlotMSSelection::PlotMSSelection | ( | const PlotMSSelection & | copy | ) |
Copy constructor.
See operator=().
Destructor.
const String& casa::PlotMSSelection::antenna | ( | ) | const [inline] |
Definition at line 111 of file PlotMSSelection.h.
void casa::PlotMSSelection::apply | ( | MeasurementSet & | ms, |
MeasurementSet & | selectedMS, | ||
Vector< Vector< Slice > > & | chansel, | ||
Vector< Vector< Slice > > & | corrsel | ||
) | const |
Applies this selection using the first MS into the second MS.
(See the mssSetData method in ms/MeasurementSets/MSSelectionTools.h for details.)
void casa::PlotMSSelection::apply | ( | NewCalTable & | ct, |
NewCalTable & | selectedCT, | ||
Vector< Vector< Slice > > & | chansel, | ||
Vector< Vector< Slice > > & | corrsel | ||
) | const |
Applies this selection to a NewCaltable.
const String& casa::PlotMSSelection::array | ( | ) | const [inline] |
Definition at line 114 of file PlotMSSelection.h.
const String& casa::PlotMSSelection::corr | ( | ) | const [inline] |
Definition at line 113 of file PlotMSSelection.h.
static msselect String casa::PlotMSSelection::defaultValue | ( | Field | f | ) | [static] |
Returns the default value for the given selection field.
Returns an empty String except for FIELD which returns "2".
const String& casa::PlotMSSelection::field | ( | ) | const [inline] |
Convenience methods for returning the standard selection fields.
Definition at line 107 of file PlotMSSelection.h.
bool casa::PlotMSSelection::fieldsEqual | ( | const PlotMSSelection & | other | ) | const |
bool casa::PlotMSSelection::fieldsNotEqual | ( | const PlotMSSelection & | other | ) | const [inline] |
Definition at line 142 of file PlotMSSelection.h.
const Int& casa::PlotMSSelection::forceNew | ( | ) | const [inline] |
Definition at line 117 of file PlotMSSelection.h.
void casa::PlotMSSelection::fromRecord | ( | const RecordInterface & | record | ) |
const String& casa::PlotMSSelection::getValue | ( | Field | f | ) | const |
Gets/Sets the value for the given selection field.
void casa::PlotMSSelection::getValue | ( | Field | f, |
String & | value | ||
) | const [inline] |
void casa::PlotMSSelection::initDefaults | ( | ) | [private] |
Initializes the values to their defaults.
const String& casa::PlotMSSelection::msselect | ( | ) | const [inline] |
Definition at line 116 of file PlotMSSelection.h.
const String& casa::PlotMSSelection::observation | ( | ) | const [inline] |
Definition at line 115 of file PlotMSSelection.h.
bool casa::PlotMSSelection::operator!= | ( | const PlotMSSelection & | other | ) | const [inline] |
Definition at line 138 of file PlotMSSelection.h.
References casa::operator==().
PlotMSSelection& casa::PlotMSSelection::operator= | ( | const PlotMSSelection & | copy | ) |
Copy operator.
bool casa::PlotMSSelection::operator== | ( | const PlotMSSelection & | other | ) | const |
Equality operators.
casa::PlotMSSelection::PMS_ENUM1 | ( | Field | , |
fields | , | ||
fieldStrings | , | ||
field | , | ||
FIELD | , | ||
SPW | , | ||
TIMERANGE | , | ||
UVRANGE | , | ||
ANTENNA | , | ||
SCAN | , | ||
CORR | , | ||
ARRAY | , | ||
OBSERVATION | , | ||
MSSELECT | |||
) |
Static //.
Enum and methods to define the different fields for an MS selection. If these are changed, also update: convenience methods below, xmlcasa/implement/plotms/plotms*, xmlcasa/tasks/plotms.xml, xmlcasa/scripts/task_plotms.py.
const String& casa::PlotMSSelection::scan | ( | ) | const [inline] |
Definition at line 112 of file PlotMSSelection.h.
void casa::PlotMSSelection::setAntenna | ( | const String & | v | ) | [inline] |
Definition at line 126 of file PlotMSSelection.h.
void casa::PlotMSSelection::setArray | ( | const String & | v | ) | [inline] |
Definition at line 129 of file PlotMSSelection.h.
void casa::PlotMSSelection::setCorr | ( | const String & | v | ) | [inline] |
Definition at line 128 of file PlotMSSelection.h.
void casa::PlotMSSelection::setField | ( | const String & | v | ) | [inline] |
Convenience methods for setting the standard selection fields.
Definition at line 122 of file PlotMSSelection.h.
void casa::PlotMSSelection::setForceNew | ( | const Int & | forcenew | ) | [inline] |
Definition at line 132 of file PlotMSSelection.h.
void casa::PlotMSSelection::setMsselect | ( | const String & | v | ) | [inline] |
Definition at line 131 of file PlotMSSelection.h.
void casa::PlotMSSelection::setObservation | ( | const String & | v | ) | [inline] |
Definition at line 130 of file PlotMSSelection.h.
void casa::PlotMSSelection::setScan | ( | const String & | v | ) | [inline] |
Definition at line 127 of file PlotMSSelection.h.
void casa::PlotMSSelection::setSpw | ( | const String & | v | ) | [inline] |
Definition at line 123 of file PlotMSSelection.h.
void casa::PlotMSSelection::setTimerange | ( | const String & | v | ) | [inline] |
Definition at line 124 of file PlotMSSelection.h.
void casa::PlotMSSelection::setUvrange | ( | const String & | v | ) | [inline] |
Definition at line 125 of file PlotMSSelection.h.
void casa::PlotMSSelection::setValue | ( | Field | f, |
const String & | value | ||
) |
const String& casa::PlotMSSelection::spw | ( | ) | const [inline] |
Definition at line 108 of file PlotMSSelection.h.
const String& casa::PlotMSSelection::timerange | ( | ) | const [inline] |
Definition at line 109 of file PlotMSSelection.h.
Record casa::PlotMSSelection::toRecord | ( | ) | const |
const String& casa::PlotMSSelection::uvrange | ( | ) | const [inline] |
Definition at line 110 of file PlotMSSelection.h.
Definition at line 58 of file PlotMSSelection.h.
Definition at line 58 of file PlotMSSelection.h.
Definition at line 58 of file PlotMSSelection.h.
Definition at line 58 of file PlotMSSelection.h.
Definition at line 58 of file PlotMSSelection.h.
Definition at line 58 of file PlotMSSelection.h.
Int casa::PlotMSSelection::forceNew_ [private] |
Force appearance of new selection (even when not new)
Definition at line 155 of file PlotMSSelection.h.
map<Field, String> casa::PlotMSSelection::itsValues_ [private] |
Selection field values.
Definition at line 152 of file PlotMSSelection.h.
Definition at line 58 of file PlotMSSelection.h.
Definition at line 58 of file PlotMSSelection.h.
Definition at line 58 of file PlotMSSelection.h.
Definition at line 58 of file PlotMSSelection.h.
Definition at line 58 of file PlotMSSelection.h.