casa
5.7.0-16
|
Specifies flagging parameters (including possibly flag extension) for an MS. More...
#include <PlotMSFlagging.h>
Public Member Functions | |
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 //. More... | |
PlotMSFlagging () | |
Non-Static //. More... | |
~PlotMSFlagging () | |
Destructor. More... | |
void | fromRecord (const casacore::RecordInterface &record) |
Converts this object to/from a record. More... | |
casacore::Record | toRecord (bool useStrings=false) const |
bool | getFlag (Field f) const |
Gets/Sets the on/off flag for the given field. More... | |
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. More... | |
void | getValue (Field f, double &value) const |
void | setValue (Field f, double value) |
casacore::String | getValueStr (Field f) const |
Gets/Sets the value for the given field as a String. More... | |
void | getValue (Field f, casacore::String &value) const |
void | setValue (Field f, const casacore::String &value) |
PlotMSSelection | getSelectionValue (Field f) const |
Gets/Sets the selection value for the given field, if applicable. More... | |
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. More... | |
bool | corr () const |
bool | corrAll () const |
bool | corrPolnDep () const |
casacore::String | corrStr () const |
bool | channel () const |
bool | spw () const |
bool | antenna () const |
bool | antennaAntennaBased () const |
double | antennaAntennaBasedValue () const |
bool | antennaBaselinesBased () const |
casacore::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. More... | |
void | setCorr (bool flag) |
void | setCorrAll (bool flag) |
void | setCorrPolnDep (bool flag) |
void | setCorr (const casacore::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 casacore::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. More... | |
bool | operator!= (const PlotMSFlagging &other) const |
Static Public Member Functions | |
static bool | fieldHasSelectionValue (Field f) |
Returns whether the given field has a PlotMSSelection value associated with it or not. More... | |
static bool | fieldDefault (Field f) |
Returns whether the given field is on or off by default. More... | |
static const std::vector< Field > & | fieldMutuallyExclusiveGroup (Field f) |
Returns the list of fields, NOT including the given, with which the given field is mutually exclusive. More... | |
static bool | fieldIsInMutuallyExclusiveGroup (Field f) |
Returns true if the given field is in a mutually exclusive group, false otherwise. More... | |
Public Attributes | |
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" |
Private Member Functions | |
void | setDefaults () |
Sets the default values. More... | |
Private Attributes | |
std::map< Field, bool > | itsFlags_ |
Flagging field flags. More... | |
std::map< Field, double > | itsValues_ |
Flagging field double values. More... | |
std::map< Field, PlotMSSelection > | itsSelectionValues_ |
Flagging field selection values. More... | |
Static Private Attributes | |
static const casacore::String | RKEY_VALUE |
casacore::String constant for what to append to the enum name in the record to get the key for the value. More... | |
static const casacore::String | RKEY_SELVALUE |
Specifies flagging parameters (including possibly flag extension) for an MS.
Definition at line 36 of file PlotMSFlagging.h.
casa::PlotMSFlagging::PlotMSFlagging | ( | ) |
Non-Static //.
Default constructor.
casa::PlotMSFlagging::~PlotMSFlagging | ( | ) |
Destructor.
|
inline |
Definition at line 151 of file PlotMSFlagging.h.
References extend(), and getFlag().
Referenced by antennaAntennaBased(), and antennaBaselinesBased().
|
inline |
Definition at line 152 of file PlotMSFlagging.h.
|
inline |
Definition at line 153 of file PlotMSFlagging.h.
References getValue().
|
inline |
Definition at line 154 of file PlotMSFlagging.h.
|
inline |
Definition at line 155 of file PlotMSFlagging.h.
References getValueStr().
|
inline |
Definition at line 149 of file PlotMSFlagging.h.
|
inline |
Definition at line 145 of file PlotMSFlagging.h.
References extend(), and getFlag().
Referenced by corrAll(), and corrPolnDep().
|
inline |
Definition at line 146 of file PlotMSFlagging.h.
|
inline |
Definition at line 147 of file PlotMSFlagging.h.
|
inline |
Definition at line 148 of file PlotMSFlagging.h.
References getValueStr().
|
inline |
Convenience methods for returning the standard field values.
Definition at line 144 of file PlotMSFlagging.h.
References getFlag().
Referenced by antenna(), channel(), corr(), selectionAlternate(), selectionSelected(), spw(), and time().
|
inline |
Definition at line 158 of file PlotMSFlagging.h.
|
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 |
Returns whether the given field has a PlotMSSelection value associated with it or not.
|
inlinestatic |
Returns true if the given field is in a mutually exclusive group, false otherwise.
See fieldMutuallyExclusiveGroup().
Definition at line 85 of file PlotMSFlagging.h.
References fieldMutuallyExclusiveGroup().
|
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().
void casa::PlotMSFlagging::fromRecord | ( | const casacore::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 casacore::MS objects (the casacore::MS, the selected casacore::MS, and the vis set) are NOT included in the record.
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(), scans(), selectionAlternate(), selectionSelected(), spw(), and time().
|
inline |
PlotMSSelection casa::PlotMSFlagging::getSelectionValue | ( | Field | f | ) | const |
Gets/Sets the selection value for the given field, if applicable.
Referenced by getSelectionValue(), and selectionAlternateSelection().
|
inline |
Definition at line 136 of file PlotMSFlagging.h.
References getSelectionValue().
double casa::PlotMSFlagging::getValue | ( | Field | f | ) | const |
Gets/Sets the double value for the given field, if applicable.
Referenced by antennaAntennaBasedValue().
|
inline |
|
inline |
Definition at line 129 of file PlotMSFlagging.h.
References getValueStr().
casacore::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().
|
inline |
Definition at line 193 of file PlotMSFlagging.h.
References operator==().
bool casa::PlotMSFlagging::operator== | ( | const PlotMSFlagging & | other | ) | const |
Equality operators.
Referenced by operator!=().
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 casacore::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.**
|
inline |
Definition at line 157 of file PlotMSFlagging.h.
|
inline |
Definition at line 160 of file PlotMSFlagging.h.
|
inline |
Definition at line 161 of file PlotMSFlagging.h.
References getSelectionValue().
|
inline |
Definition at line 159 of file PlotMSFlagging.h.
|
inline |
Definition at line 174 of file PlotMSFlagging.h.
References setFlag().
|
inline |
Definition at line 179 of file PlotMSFlagging.h.
References setValue().
|
inline |
Definition at line 175 of file PlotMSFlagging.h.
References setFlag().
|
inline |
Definition at line 176 of file PlotMSFlagging.h.
References setValue().
|
inline |
Definition at line 178 of file PlotMSFlagging.h.
References setFlag().
|
inline |
Definition at line 172 of file PlotMSFlagging.h.
References setFlag().
|
inline |
Definition at line 168 of file PlotMSFlagging.h.
References setFlag().
|
inline |
Definition at line 171 of file PlotMSFlagging.h.
References setValue().
|
inline |
Definition at line 169 of file PlotMSFlagging.h.
References setFlag().
|
inline |
Definition at line 170 of file PlotMSFlagging.h.
References setFlag().
|
private |
Sets the default values.
|
inline |
Convenience methods for setting the standard field values.
Definition at line 167 of file PlotMSFlagging.h.
References setFlag().
|
inline |
Definition at line 182 of file PlotMSFlagging.h.
References setFlag().
void casa::PlotMSFlagging::setFlag | ( | Field | f, |
bool | on | ||
) |
|
inline |
Definition at line 181 of file PlotMSFlagging.h.
References setFlag().
|
inline |
Definition at line 184 of file PlotMSFlagging.h.
References setFlag().
|
inline |
Definition at line 185 of file PlotMSFlagging.h.
References setSelectionValue().
|
inline |
Definition at line 183 of file PlotMSFlagging.h.
References setFlag().
void casa::PlotMSFlagging::setSelectionValue | ( | Field | f, |
const PlotMSSelection & | value | ||
) |
Referenced by setSelectionAlternateSelection().
|
inline |
Definition at line 173 of file PlotMSFlagging.h.
References setFlag().
|
inline |
Definition at line 180 of file PlotMSFlagging.h.
References setFlag().
void casa::PlotMSFlagging::setValue | ( | Field | f, |
double | value | ||
) |
Referenced by setAntenna(), setAntennaAntennaBasedValue(), and setCorr().
void casa::PlotMSFlagging::setValue | ( | Field | f, |
const casacore::String & | value | ||
) |
|
inline |
Definition at line 150 of file PlotMSFlagging.h.
|
inline |
casacore::Record casa::PlotMSFlagging::toRecord | ( | bool | useStrings = false | ) | const |
correlation casa::PlotMSFlagging::__pad0__ |
Definition at line 56 of file PlotMSFlagging.h.
correlation casa::PlotMSFlagging::antenna |
Definition at line 56 of file PlotMSFlagging.h.
correlation casa::PlotMSFlagging::channel |
Definition at line 56 of file PlotMSFlagging.h.
casa::PlotMSFlagging::correlation |
Definition at line 56 of file PlotMSFlagging.h.
correlation casa::PlotMSFlagging::correlation |
Definition at line 56 of file PlotMSFlagging.h.
casa::PlotMSFlagging::extend |
Definition at line 56 of file PlotMSFlagging.h.
casa::PlotMSFlagging::field |
Definition at line 56 of file PlotMSFlagging.h.
correlation casa::PlotMSFlagging::field |
Definition at line 56 of file PlotMSFlagging.h.
casa::PlotMSFlagging::fields |
Definition at line 56 of file PlotMSFlagging.h.
casa::PlotMSFlagging::fieldStrings |
Definition at line 56 of file PlotMSFlagging.h.
|
private |
Flagging field flags.
Definition at line 200 of file PlotMSFlagging.h.
|
private |
Flagging field selection values.
Definition at line 206 of file PlotMSFlagging.h.
|
private |
Flagging field double values.
Definition at line 203 of file PlotMSFlagging.h.
|
staticprivate |
Definition at line 217 of file PlotMSFlagging.h.
|
staticprivate |
casacore::String constant for what to append to the enum name in the record to get the key for the value.
Definition at line 216 of file PlotMSFlagging.h.
correlation casa::PlotMSFlagging::scans |
Definition at line 56 of file PlotMSFlagging.h.
correlation casa::PlotMSFlagging::selection |
Definition at line 56 of file PlotMSFlagging.h.
correlation casa::PlotMSFlagging::spw |
Definition at line 56 of file PlotMSFlagging.h.
correlation casa::PlotMSFlagging::time |
Definition at line 56 of file PlotMSFlagging.h.