#include <PlotMSFlagging.h>
Collaboration diagram for casa::PlotMSFlagging:

Definition at line 43 of file PlotMSFlagging.h.
| fields | |
| fieldStrings | |
| field | |
| extend | |
| correlation | |
| correlation | __pad0__:all" |
| correlation | correlation:poln-dep" |
| correlation | channel |
| correlation | spw |
| correlation | antenna |
| correlation | time |
| correlation | scans |
| correlation | field |
| correlation | selection:selected" |
| PMS_ENUM1 (Field, fields, fieldStrings, field, EXTEND, CORR, CORR_ALL, CORR_POLN_DEP, CHANNEL, SPW, ANTENNA, ANTENNA_ANTENNA, ANTENNA_BASELINES, TIME, SCANS, FIELD, SEL_SELECTED, SEL_ALTERNATE) PMS_ENUM2(Field | |
| Static //. | |
| PlotMSFlagging () | |
| Non-Static //. | |
| PlotMSFlagging (MeasurementSet *ms, MeasurementSet *selectedMS, VisSet *visSet) | |
| Constructor which takes the MS, selected MS, and vis set. | |
| ~PlotMSFlagging () | |
| Destructor. | |
| MeasurementSet * | getMS () const |
| Gets the MS objects. | |
| MeasurementSet * | getSelectedMS () const |
| VisSet * | getVisSet () const |
| static bool | fieldHasSelectionValue (Field f) |
| Returns whether the given field has a PlotMSSelection value associated with it or not. | |
| static bool | fieldDefault (Field f) |
| Returns whether the given field is on or off by default. | |
| static const vector< Field > & | fieldMutuallyExclusiveGroup (Field f) |
| Returns the list of fields, NOT including the given, with which the given field is mutually exclusive. | |
| static bool | fieldIsInMutuallyExclusiveGroup (Field f) |
| Returns true if the given field is in a mutually exclusive group, false otherwise. | |
Public Member Functions | |
| void | setMS (MeasurementSet *ms, MeasurementSet *selectedMS, VisSet *visSet) |
| Sets the MS objects to the given. | |
| void | fromRecord (const RecordInterface &record) |
| Converts this object to/from a record. | |
| Record | toRecord (bool useStrings=false) const |
| bool | getFlag (Field f) const |
| Gets/Sets the on/off flag for the given field. | |
| void | getFlag (Field f, bool &flag) const |
| void | setFlag (Field f, bool on) |
| double | getValue (Field f) const |
| Gets/Sets the double value for the given field, if applicable. | |
| void | getValue (Field f, double &value) const |
| void | setValue (Field f, double value) |
| String | getValueStr (Field f) const |
| Gets/Sets the value for the given field as a String. | |
| void | getValue (Field f, String &value) const |
| void | setValue (Field f, const String &value) |
| PlotMSSelection | getSelectionValue (Field f) const |
| Gets/Sets the selection value for the given field, if applicable. | |
| void | getSelectionValue (Field f, PlotMSSelection &value) const |
| void | setSelectionValue (Field f, const PlotMSSelection &value) |
| bool | extend () const |
| Convenience methods for returning the standard field values. | |
| bool | corr () const |
| bool | corrAll () const |
| bool | corrPolnDep () const |
| String | corrStr () const |
| bool | channel () const |
| bool | spw () const |
| bool | antenna () const |
| bool | antennaAntennaBased () const |
| double | antennaAntennaBasedValue () const |
| bool | antennaBaselinesBased () const |
| String | antennaStr () const |
| bool | time () const |
| bool | scans () const |
| bool | field () const |
| bool | selectionSelected () const |
| bool | selectionAlternate () const |
| PlotMSSelection | selectionAlternateSelection () const |
| void | setExtend (bool flag) |
| Convenience methods for setting the standard field values. | |
| void | setCorr (bool flag) |
| void | setCorrAll (bool flag) |
| void | setCorrPolnDep (bool flag) |
| void | setCorr (const String &value) |
| void | setChannel (bool flag) |
| void | setSpw (bool flag) |
| void | setAntenna (bool flag) |
| void | setAntennaAntennaBased (bool flag) |
| void | setAntennaAntennaBasedValue (double value) |
| void | setAntennaBaselinesBased (bool flag) |
| void | setAntenna (const String &value) |
| void | setTime (bool flag) |
| void | setScans (bool flag) |
| void | setField (bool flag) |
| void | setSelectionSelected (bool flag) |
| void | setSelectionAlternate (bool flag) |
| void | setSelectionAlternateSelection (const PlotMSSelection &value) |
| bool | operator== (const PlotMSFlagging &other) const |
| Equality operators. | |
| bool | operator!= (const PlotMSFlagging &other) const |
Private Member Functions | |
| void | setDefaults () |
| Sets the default values. | |
Private Attributes | |
| map< Field, bool > | itsFlags_ |
| Flagging field flags. | |
| map< Field, double > | itsValues_ |
| Flagging field double values. | |
| map< Field, PlotMSSelection > | itsSelectionValues_ |
| Flagging field selection values. | |
| MeasurementSet * | itsMS_ |
| Pointers to measurement set objects (do not delete!). | |
| MeasurementSet * | itsSelectedMS_ |
| VisSet * | itsVisSet_ |
Static Private Attributes | |
| static const String | RKEY_VALUE |
| String constant for what to append to the enum name in the record to get the key for the value. | |
| static const String | RKEY_SELVALUE |
| casa::PlotMSFlagging::PlotMSFlagging | ( | ) |
Non-Static //.
Default constructor.
| casa::PlotMSFlagging::PlotMSFlagging | ( | MeasurementSet * | ms, | |
| MeasurementSet * | selectedMS, | |||
| VisSet * | visSet | |||
| ) |
Constructor which takes the MS, selected MS, and vis set.
| casa::PlotMSFlagging::~PlotMSFlagging | ( | ) |
Destructor.
| casa::PlotMSFlagging::PMS_ENUM1 | ( | Field | , | |
| fields | , | |||
| fieldStrings | , | |||
| field | , | |||
| EXTEND | , | |||
| CORR | , | |||
| CORR_ALL | , | |||
| CORR_POLN_DEP | , | |||
| CHANNEL | , | |||
| SPW | , | |||
| ANTENNA | , | |||
| ANTENNA_ANTENNA | , | |||
| ANTENNA_BASELINES | , | |||
| TIME | , | |||
| SCANS | , | |||
| FIELD | , | |||
| SEL_SELECTED | , | |||
| SEL_ALTERNATE | ||||
| ) |
Static //.
Enum and methods to define the different fields for an MS flagging. All fields have a bool flag for on/off, and some of them also have a double value (see fieldHasValue()) or a PlotMSSelection value (see fieldHasSelectionValue()). Most fields are off by default (see fieldDefault()), with a default double value of 0 or empty/default PlotMSSelection value if applicable. Some fields are in mutually exclusive groups (see fieldMutuallyExclusiveGroup()). If these are changed, also update: convenience methods below, xmlcasa/implement/plotms/plotms*, xmlcasa/tasks/plotms.xml, xmlcasa/scripts/task_plotms.py.**
| static bool casa::PlotMSFlagging::fieldHasSelectionValue | ( | Field | f | ) | [static] |
Returns whether the given field has a PlotMSSelection value associated with it or not.
| static bool casa::PlotMSFlagging::fieldDefault | ( | Field | f | ) | [static] |
Returns whether the given field is on or off by default.
This is important for mutually exclusive groups, which need to know which field in that group is on to begin with.
| static const vector<Field>& casa::PlotMSFlagging::fieldMutuallyExclusiveGroup | ( | Field | f | ) | [static] |
Returns the list of fields, NOT including the given, with which the given field is mutually exclusive.
In a mutually exclusive group, only and exactly one field can be turned on at a given time. NOTE: this is different from mutually exclusive groups in PlotMSAveraging, because here it is NOT allowed to have all fields in a group turned off.
Referenced by fieldIsInMutuallyExclusiveGroup().
| static bool casa::PlotMSFlagging::fieldIsInMutuallyExclusiveGroup | ( | Field | f | ) | [inline, static] |
Returns true if the given field is in a mutually exclusive group, false otherwise.
See fieldMutuallyExclusiveGroup().
Definition at line 92 of file PlotMSFlagging.h.
References fieldMutuallyExclusiveGroup().
| MeasurementSet* casa::PlotMSFlagging::getMS | ( | ) | const |
Gets the MS objects.
WARNING: could be NULL if they have not been set through the constructor or setMS().
| MeasurementSet* casa::PlotMSFlagging::getSelectedMS | ( | ) | const |
| VisSet* casa::PlotMSFlagging::getVisSet | ( | ) | const |
| void casa::PlotMSFlagging::setMS | ( | MeasurementSet * | ms, | |
| MeasurementSet * | selectedMS, | |||
| VisSet * | visSet | |||
| ) |
Sets the MS objects to the given.
| void casa::PlotMSFlagging::fromRecord | ( | const RecordInterface & | record | ) |
Converts this object to/from a record.
Each field will have a key that is its enum name, with a bool value for its flag value. Fields that also have double values will have an additional key that is its enum name + "Value" for double values, or its enum name + "SelectionValue" for PlotMSSelection values. PlotMSSelection values are stored in Record form (see PlotMSSelection::fromRecord()). The MS objects (the MS, the selected MS, and the vis set) are NOT included in the record.
| Record casa::PlotMSFlagging::toRecord | ( | bool | useStrings = false |
) | const |
| bool casa::PlotMSFlagging::getFlag | ( | Field | f | ) | const |
Gets/Sets the on/off flag for the given field.
Referenced by antenna(), antennaAntennaBased(), antennaBaselinesBased(), channel(), corr(), corrAll(), corrPolnDep(), extend(), field(), getFlag(), scans(), selectionAlternate(), selectionSelected(), spw(), and time().
| void casa::PlotMSFlagging::getFlag | ( | Field | f, | |
| bool & | flag | |||
| ) | const [inline] |
| void casa::PlotMSFlagging::setFlag | ( | Field | f, | |
| bool | on | |||
| ) |
| double casa::PlotMSFlagging::getValue | ( | Field | f | ) | const |
Gets/Sets the double value for the given field, if applicable.
Referenced by antennaAntennaBasedValue(), and getValue().
| void casa::PlotMSFlagging::getValue | ( | Field | f, | |
| double & | value | |||
| ) | const [inline] |
| void casa::PlotMSFlagging::setValue | ( | Field | f, | |
| double | value | |||
| ) |
Referenced by setAntenna(), setAntennaAntennaBasedValue(), and setCorr().
| String casa::PlotMSFlagging::getValueStr | ( | Field | f | ) | const |
Gets/Sets the value for the given field as a String.
Only applicable for special cases (correlation, antenna). Correlation: "", "all", or "poln-dep". Antenna: "", "all", or antenna-based value.
Referenced by antennaStr(), corrStr(), and getValue().
| void casa::PlotMSFlagging::getValue | ( | Field | f, | |
| String & | value | |||
| ) | const [inline] |
| void casa::PlotMSFlagging::setValue | ( | Field | f, | |
| const String & | value | |||
| ) |
| PlotMSSelection casa::PlotMSFlagging::getSelectionValue | ( | Field | f | ) | const |
Gets/Sets the selection value for the given field, if applicable.
Referenced by getSelectionValue(), and selectionAlternateSelection().
| void casa::PlotMSFlagging::getSelectionValue | ( | Field | f, | |
| PlotMSSelection & | value | |||
| ) | const [inline] |
| void casa::PlotMSFlagging::setSelectionValue | ( | Field | f, | |
| const PlotMSSelection & | value | |||
| ) |
Referenced by setSelectionAlternateSelection().
| bool casa::PlotMSFlagging::extend | ( | ) | const [inline] |
Convenience methods for returning the standard field values.
Definition at line 168 of file PlotMSFlagging.h.
References getFlag().
Referenced by antenna(), channel(), corr(), selectionAlternate(), selectionSelected(), spw(), and time().
| bool casa::PlotMSFlagging::corr | ( | ) | const [inline] |
Definition at line 169 of file PlotMSFlagging.h.
References extend(), and getFlag().
Referenced by corrAll(), and corrPolnDep().
| bool casa::PlotMSFlagging::corrAll | ( | ) | const [inline] |
| bool casa::PlotMSFlagging::corrPolnDep | ( | ) | const [inline] |
| String casa::PlotMSFlagging::corrStr | ( | ) | const [inline] |
| bool casa::PlotMSFlagging::channel | ( | ) | const [inline] |
| bool casa::PlotMSFlagging::spw | ( | ) | const [inline] |
| bool casa::PlotMSFlagging::antenna | ( | ) | const [inline] |
Definition at line 175 of file PlotMSFlagging.h.
References extend(), and getFlag().
Referenced by antennaAntennaBased(), and antennaBaselinesBased().
| bool casa::PlotMSFlagging::antennaAntennaBased | ( | ) | const [inline] |
| double casa::PlotMSFlagging::antennaAntennaBasedValue | ( | ) | const [inline] |
| bool casa::PlotMSFlagging::antennaBaselinesBased | ( | ) | const [inline] |
| String casa::PlotMSFlagging::antennaStr | ( | ) | const [inline] |
| bool casa::PlotMSFlagging::time | ( | ) | const [inline] |
| bool casa::PlotMSFlagging::scans | ( | ) | const [inline] |
| bool casa::PlotMSFlagging::field | ( | ) | const [inline] |
| bool casa::PlotMSFlagging::selectionSelected | ( | ) | const [inline] |
| bool casa::PlotMSFlagging::selectionAlternate | ( | ) | const [inline] |
| PlotMSSelection casa::PlotMSFlagging::selectionAlternateSelection | ( | ) | const [inline] |
| void casa::PlotMSFlagging::setExtend | ( | bool | flag | ) | [inline] |
Convenience methods for setting the standard field values.
Definition at line 191 of file PlotMSFlagging.h.
References setFlag().
| void casa::PlotMSFlagging::setCorr | ( | bool | flag | ) | [inline] |
| void casa::PlotMSFlagging::setCorrAll | ( | bool | flag | ) | [inline] |
| void casa::PlotMSFlagging::setCorrPolnDep | ( | bool | flag | ) | [inline] |
| void casa::PlotMSFlagging::setCorr | ( | const String & | value | ) | [inline] |
| void casa::PlotMSFlagging::setChannel | ( | bool | flag | ) | [inline] |
| void casa::PlotMSFlagging::setSpw | ( | bool | flag | ) | [inline] |
| void casa::PlotMSFlagging::setAntenna | ( | bool | flag | ) | [inline] |
| void casa::PlotMSFlagging::setAntennaAntennaBased | ( | bool | flag | ) | [inline] |
| void casa::PlotMSFlagging::setAntennaAntennaBasedValue | ( | double | value | ) | [inline] |
| void casa::PlotMSFlagging::setAntennaBaselinesBased | ( | bool | flag | ) | [inline] |
| void casa::PlotMSFlagging::setAntenna | ( | const String & | value | ) | [inline] |
| void casa::PlotMSFlagging::setTime | ( | bool | flag | ) | [inline] |
| void casa::PlotMSFlagging::setScans | ( | bool | flag | ) | [inline] |
| void casa::PlotMSFlagging::setField | ( | bool | flag | ) | [inline] |
| void casa::PlotMSFlagging::setSelectionSelected | ( | bool | flag | ) | [inline] |
| void casa::PlotMSFlagging::setSelectionAlternate | ( | bool | flag | ) | [inline] |
| void casa::PlotMSFlagging::setSelectionAlternateSelection | ( | const PlotMSSelection & | value | ) | [inline] |
| bool casa::PlotMSFlagging::operator== | ( | const PlotMSFlagging & | other | ) | const |
| bool casa::PlotMSFlagging::operator!= | ( | const PlotMSFlagging & | other | ) | const [inline] |
| void casa::PlotMSFlagging::setDefaults | ( | ) | [private] |
Sets the default values.
Definition at line 63 of file PlotMSFlagging.h.
Definition at line 63 of file PlotMSFlagging.h.
Definition at line 63 of file PlotMSFlagging.h.
Definition at line 63 of file PlotMSFlagging.h.
Definition at line 63 of file PlotMSFlagging.h.
Definition at line 63 of file PlotMSFlagging.h.
Definition at line 63 of file PlotMSFlagging.h.
Definition at line 63 of file PlotMSFlagging.h.
Definition at line 63 of file PlotMSFlagging.h.
Definition at line 63 of file PlotMSFlagging.h.
Definition at line 63 of file PlotMSFlagging.h.
Definition at line 63 of file PlotMSFlagging.h.
Definition at line 63 of file PlotMSFlagging.h.
Definition at line 63 of file PlotMSFlagging.h.
MeasurementSet* casa::PlotMSFlagging::itsMS_ [private] |
Pointers to measurement set objects (do not delete!).
Definition at line 224 of file PlotMSFlagging.h.
MeasurementSet* casa::PlotMSFlagging::itsSelectedMS_ [private] |
Definition at line 225 of file PlotMSFlagging.h.
VisSet* casa::PlotMSFlagging::itsVisSet_ [private] |
Definition at line 226 of file PlotMSFlagging.h.
map<Field, bool> casa::PlotMSFlagging::itsFlags_ [private] |
map<Field, double> casa::PlotMSFlagging::itsValues_ [private] |
map<Field, PlotMSSelection> casa::PlotMSFlagging::itsSelectionValues_ [private] |
const String casa::PlotMSFlagging::RKEY_VALUE [static, private] |
String constant for what to append to the enum name in the record to get the key for the value.
Definition at line 246 of file PlotMSFlagging.h.
const String casa::PlotMSFlagging::RKEY_SELVALUE [static, private] |
Definition at line 247 of file PlotMSFlagging.h.
1.5.1