|
| RFAFlagExaminer (RFChunkStats &ch, const casacore::RecordInterface &parm) |
| constructor. More...
|
|
virtual | ~RFAFlagExaminer () |
|
virtual void | iterFlag (casacore::uInt it) |
| Iteration method for a flag pass. More...
|
|
virtual IterMode | iterRow (casacore::uInt irow) |
| iterRow() is called once per each row in the VisBuffer. More...
|
|
virtual casacore::Bool | newChunk (casacore::Int &maxmem) |
| Called before iterating over a chunk. More...
|
|
virtual void | endChunk () |
| Called once finished with a chunk. More...
|
|
virtual void | startData (bool verbose) |
| Called before starting a data pass on a chunk. More...
|
|
virtual void | startFlag (bool verbose) |
| Called before starting the fetch-flags pass. More...
|
|
virtual void | endFlag () |
| Called after a flag pass is complete. More...
|
|
virtual void | finalize () |
|
virtual void | initialize () |
| Initialize chunk. More...
|
|
virtual void | initializeIter (casacore::uInt it) |
|
virtual void | finalizeIter (casacore::uInt it) |
|
virtual casacore::String | getID () |
|
virtual casacore::Record | getResult () |
|
| RFASelector (RFChunkStats &ch, const casacore::RecordInterface &parm) |
| constructor. More...
|
|
virtual | ~RFASelector () |
|
virtual casacore::uInt | estimateMemoryUse () |
| This method is called before iterating over a chunk, to inquire the expected memory use. More...
|
|
virtual IterMode | iterTime (casacore::uInt it) |
| Iteration methods for a data pass. More...
|
|
virtual void | endRows (casacore::uInt itime) |
| Called at end of time chunk. More...
|
|
virtual casacore::String | getDesc () |
| called to obtain a short description of this RFA More...
|
|
casacore::Bool | fortestingonly_parseMinMax (casacore::Float &vmin, casacore::Float &vmax, const casacore::RecordInterface &spec, casacore::uInt f0) |
|
void | fortestingonly_parseClipField (const casacore::RecordInterface &spec, casacore::Bool clip) |
|
| RFAFlagCubeBase (RFChunkStats &ch, const casacore::RecordInterface &parm) |
|
virtual | ~RFAFlagCubeBase () |
|
virtual void | startDry (bool verbose) |
| Called before starting a dry pass on a chunk. More...
|
|
virtual IterMode | iterDry (casacore::uInt it) |
| Iteration method for a dry pass. More...
|
|
virtual IterMode | endData () |
| Called after a pass is completed successfully (i.e., not stopped by start or iter methods). More...
|
|
virtual IterMode | endDry () |
| Called after a dry pass is complete. More...
|
|
virtual casacore::String | getStats () |
| called (before endChunk()) to obtain a statistics report More...
|
|
| RFABase (RFChunkStats &ch, const casacore::RecordInterface &parm) |
| An agent is always constructed from a chunk stats accessor, and a record of parameters. More...
|
|
virtual | ~RFABase () |
| Destructor. More...
|
|
virtual void | init () |
| This method is called after constructing the agent. More...
|
|
virtual void | printFlaggingReport () |
|
const casacore::String & | name () |
| returns the name of this RFA (set in myname) More...
|
|
casacore::Bool | isActive () |
| returns the active status More...
|
|
casacore::LogIO & | logSink () |
| accessor to a casacore::LogIO for this agent More...
|
|
virtual void | setNAgent (casacore::uInt n) |
|
virtual void | setOnlySelector (bool only_sel) |
|
|
enum | IterMode {
STOP,
DRY,
DATA,
CONT
} |
| iteration modes More...
|
|
enum | StatEnums {
POLZN,
POL,
CORR,
CHAN,
IFR,
TIME,
ROW,
ANT,
FEED,
FEEDCORR,
NONE,
Num_StatEnums
} |
|
enum | PreFlagPolicy {
FL_HONOR,
FL_IGNORE,
FL_RESET
} |
|
static const
casacore::RecordInterface & | getDefaults () |
|
static const
casacore::RecordInterface & | getDefaults () |
|
static void | setIndexingBase (casacore::uInt base) |
| static method for setting the indexing base for agent arguments More...
|
|
typedef struct
casa::RFASelector::ClipInfo | ClipInfo |
|
template<class T > |
casacore::Bool | reformRange (casacore::Matrix< T > &rng, const casacore::Array< T > &arr) |
|
template<class T > |
casacore::Bool | parseRange (casacore::Matrix< T > &rng, const casacore::RecordInterface &parm, const casacore::String &id) |
|
template<class T > |
casacore::Bool | find (casacore::uInt &index, const T &obj, const casacore::Vector< T > &arr) |
|
casacore::Bool | parseTimes (casacore::Array< casacore::Double > ×, const casacore::RecordInterface &parm, const casacore::String &id, casacore::Bool secs=false) |
|
void | addString (casacore::String &str, const casacore::String &s1, const char *sep=" ") |
|
casacore::Bool | parseMinMax (casacore::Float &vmin, casacore::Float &vmax, const casacore::RecordInterface &spec, casacore::uInt f0) |
|
void | addClipInfo (const casacore::Vector< casacore::String > &expr, casacore::Float vmin, casacore::Float vmax, casacore::Bool clip, casacore::Bool channel_average) |
|
void | parseClipField (const casacore::RecordInterface &spec, casacore::Bool clip) |
|
void | addClipInfoDesc (const casacore::Block< ClipInfo > &clip) |
|
casacore::uInt | num (StatEnums which) |
|
RFlagWord | corrMask () |
|
static casacore::uInt | indexingBase () |
| global flag indicates that Glish (1-based) indexing is in use for agent arguments More...
|
|
casacore::Double | diameter |
| shadow mode More...
|
|
casacore::Vector
< casacore::Double > | diameters |
|
casacore::ROMSAntennaColumns * | ac |
|
double | lowerlimit |
| elevation More...
|
|
double | upperlimit |
|
casacore::String | desc_str |
| description of agent More...
|
|
casacore::Matrix
< casacore::Double > | sel_freq |
| selection arguments More...
|
|
casacore::Matrix
< casacore::Double > | sel_time |
|
casacore::Matrix
< casacore::Double > | sel_timerng |
|
casacore::Matrix
< casacore::Double > | sel_uvrange |
|
casacore::Matrix< casacore::Int > | sel_chan |
|
casacore::Vector< casacore::Int > | sel_corr |
|
casacore::Vector< casacore::Int > | sel_spwid |
|
casacore::Vector< casacore::Int > | sel_fieldid |
|
casacore::Vector< casacore::Int > | sel_stateid |
|
casacore::Vector
< casacore::String > | sel_fieldnames |
|
casacore::LogicalVector | sel_ifr |
|
casacore::LogicalVector | flagchan |
|
casacore::LogicalVector | sel_feed |
|
casacore::Bool | sel_autocorr |
|
casacore::Bool | unflag |
|
casacore::Block< ClipInfo > | sel_clip |
|
casacore::Block< ClipInfo > | sel_clip_row |
|
casacore::LogicalVector | sel_clip_active |
|
casacore::Bool | sum_sel_clip_active |
|
casacore::Double | quack_si |
|
casacore::Double | quack_dt |
|
casacore::String | quack_mode |
|
casacore::Bool | quack_increment |
|
casacore::Vector< casacore::Int > | sel_scannumber |
|
casacore::Vector< casacore::Int > | sel_arrayid |
|
casacore::Vector< casacore::Int > | sel_observation |
|
casacore::String | sel_column |
|
casacore::Bool | select_fullrow |
|
casacore::Bool | flag_everything |
|
casacore::Bool | shadow |
|
casacore::Bool | elevation |
|
RFlagWord | corrmask |
| mask of active correlations. More...
|
|
RFFlagCube | flag |
| flag cube lattice More...
|
|
casacore::uInt | nAgent |
|
RFChunkStats & | chunk |
|
casacore::Record | params |
|
casacore::String | myname |
|
bool | only_selector |
|
RFlagWord | corrmask |
| Bit mask of correlations which are used & flagged by this RFA. More...
|
|
casacore::Bool | active |
| flag: agent is active for this chunk (set in newChunk) More...
|
|
casacore::LogIO | os |
|
RFAFlagExaminer: Examine the flags and get statistics. perform extensions too.
Intended use:
Internal
Prerequisite
Etymology
RedFlaggerAgent Selector
Synopsis
RFAFlagExaminer accepts a whole bunch of options to select a subset of the casacore::MS (by time, antenna, baseline, channel/frequency, etc.), and to flag/unflag the whole selection, or specific parts of it (autocorrelations, specific time slots, VLA quacks, etc.)
To Do
-
add this feature
-
fix this bug
-
start discussion of this possible extension
Definition at line 67 of file RFAFlagExaminer.h.
Called before iterating over a chunk.
Returns true if agent will process this chunk, or false if this the agent is unable to process it. (this can happen if, e.g., the requisite correlations are not present). The casacore::Int & maxmem argument is the number of MB memory which is still available in the memory pool. The agent class should plan its memory use accordingly, and subtract its expected memory use from maxmem. In effect, the agent "reserves" some amount of memory. This is used by RedFlagger to contain the total memory footprint. Note that only a rough reckoning is sufficient, so only bother estimating the biggest data structures. See implementations in RFADiffBase and RFATimeMedian for good examples. nAgent is the total number of agents.
Reimplemented from casa::RFASelector.
std::map<std::string, std::map<std::string, casacore::uInt64> > casa::RFAFlagExaminer::accumflags |
|
private |
Statistics per antenna, baseline, spw, etc.
These maps of maps is used e.g. like:
accumflags["baseline"]["2&&7"] == 42 accumflags["spw" ]["0" ] == 17
which means that there were 42 flags on baseline 2 - 7, etc.
Definition at line 115 of file RFAFlagExaminer.h.