|
| Flagger () |
| default constructor More...
|
|
| Flagger (casacore::MeasurementSet &ms) |
| construct and attach to a measurement set More...
|
|
| ~Flagger () |
|
bool | attach (casacore::MeasurementSet &ms, casacore::Bool setupAgentDefaults=true) |
| Change or set the casacore::MS this Flagger refers to. More...
|
|
casacore::Bool | selectdata (casacore::Bool useoriginalms=false, casacore::String field="", casacore::String spw="", casacore::String array="", casacore::String feed="", casacore::String scan="", casacore::String baseline="", casacore::String uvrange="", casacore::String time="", casacore::String correlation="", casacore::String intent="", casacore::String observation="") |
| Set the data selection parameters. More...
|
|
casacore::Bool | setdata (casacore::String field, casacore::String spw, casacore::String array, casacore::String feed, casacore::String scan, casacore::String baseline, casacore::String uvrange, casacore::String time, casacore::String correlation, casacore::String intent, casacore::String observation="") |
| Make a data selection. More...
|
|
casacore::Bool | setmanualflags (casacore::Bool autocorr, casacore::Bool unflag, casacore::String clipexpr, casacore::Vector< casacore::Double > cliprange, casacore::String clipcolumn, casacore::Bool outside, casacore::Bool channel_average, casacore::Double quackinterval=0.0, casacore::String quackmode=casacore::String("beg"), casacore::Bool quackincrement=casacore::Bool(false), casacore::String opmode=casacore::String("flag"), casacore::Double diameter=-1.0, casacore::Double lowerlimit=-1.0, casacore::Double upperlimit=91.0) |
| Make a selection for manual flagging. More...
|
|
casacore::Bool | clearflagselections (casacore::Int recordindex) |
| Clean up all agents of type "select". More...
|
|
casacore::Bool | printflagselections () |
|
casacore::Bool | fillSelections (casacore::Record &rec) |
| Fill the selection record to attach to the list of agents. More...
|
|
casacore::Bool | setautoflagparams (casacore::String algorithm, casacore::Record ¶meters) |
| Set autoflag params. More...
|
|
casacore::Record | getautoflagparams (casacore::String algorithm) |
| Get default autoflag params. More...
|
|
casacore::Bool | addAgent (casacore::RecordInterface &newAgent) |
|
void | detach () |
| Detaches from the casacore::MS. More...
|
|
casacore::Record | run (casacore::Bool trial, casacore::Bool reset) |
|
void | summary (const casacore::RecordInterface &agents) |
|
casacore::Bool | saveFlagVersion (casacore::String versionname, casacore::String comment, casacore::String merge) |
| flag version support. More...
|
|
casacore::Bool | restoreFlagVersion (casacore::Vector< casacore::String > versionname, casacore::String merge) |
|
casacore::Bool | deleteFlagVersion (casacore::Vector< casacore::String > versionname) |
|
casacore::Bool | getFlagVersionList (casacore::Vector< casacore::String > &verlist) |
|
const casacore::MeasurementSet & | measSet () const |
| returns current MS More...
|
|
casacore::uInt | numAnt () const |
| number of antennas in MS More...
|
|
casacore::uInt | numIfr () const |
| number of IFRs in MS More...
|
|
casacore::uInt | numFeed () const |
| number of feeds in MS More...
|
|
casacore::uInt | numFeedCorr () const |
| number of feed correlations in MS More...
|
|
const casacore::Vector
< casacore::String > & | antNames () const |
| names of antennas More...
|
|
casacore::uInt | ifrNumber (casacore::Int ant1, casacore::Int ant2) const |
| derives a flat IFR index from two antenna indices More...
|
|
casacore::Vector< casacore::Int > | ifrNumbers (casacore::Vector< casacore::Int > ant1, casacore::Vector< casacore::Int > ant2) const |
| vector version of above More...
|
|
void | ifrToAnt (casacore::uInt &ant1, casacore::uInt &ant2, casacore::uInt ifr) const |
| derives antenna indices from a flat IFR index More...
|
|
const casacore::RecordInterface & | defaultAgents () const |
| returns a record with all available agents and their default options More...
|
|
Flagger: high-performance automated flagging.
Intended use:
Prerequisite
Etymology
casacore::MSFlagger and plain flagger were already taken.
Synopsis
Flagger performs automated flagging operations on a measurement set. The class is constructed from an MS. After that, the run method may be used to run any number of flagging agents.
Example
construct casacore::MS and flagger casacore::MeasurementSet ms("test.MS2",casacore::Table::Update); Flagger flagger(ms); build record of global flagging options casacore::Record opt(casacore::Record::Variable); build record of flagging agents to be run casacore::Record selopt(flagger.defaultAgents().asRecord("select")); selopt.define(RF_POLICY,"RESET"); selopt.define(RF_AUTOCORR,true); casacore::Record agents(casacore::Record::Variable); agents.defineRecord("select",selopt); perform the flagging flagger.run(agents,opt);
Motivation
We need an automated flagging tool. Existing tools (casacore::MSFlagger and flagger.g) were too slow. Hence, Flagger was developed.
To Do
-
add this feature
-
fix this bug
-
start discussion of this possible extension
Definition at line 100 of file Flagger.h.