|
| AgentFlagger () |
| default constructor More...
|
|
| ~AgentFlagger () |
| destructor More...
|
|
void | done () |
| reset everything More...
|
|
bool | open (casacore::String msname, casacore::Double ntime) |
| configure the tool, open the MS More...
|
|
bool | selectData (casacore::Record selrec) |
| parse the data selection More...
|
|
bool | selectData (casacore::String field, casacore::String spw, casacore::String array, casacore::String feed, casacore::String scan, casacore::String antenna, casacore::String uvrange, casacore::String timerange, casacore::String correlation, casacore::String intent, casacore::String observation="") |
|
bool | parseAgentParameters (casacore::Record agent_params) |
| parse the parameters of the agent More...
|
|
casacore::String | getExpressionFunction (casacore::String expression) |
|
bool | isExpressionPolarizationAll (casacore::String expression) |
|
bool | initAgents () |
| initialize the agents list More...
|
|
casacore::Record | run (casacore::Bool writeflags, casacore::Bool sequential=true) |
| Run the tool and write the flags to the MS. More...
|
|
bool | printFlagSelections () |
| Flag backup methods. More...
|
|
bool | saveFlagVersion (casacore::String versionname, casacore::String comment, casacore::String merge) |
|
bool | restoreFlagVersion (casacore::Vector< casacore::String > versionname, casacore::String merge) |
|
bool | deleteFlagVersion (casacore::Vector< casacore::String > versionname) |
|
bool | getFlagVersionList (casacore::Vector< casacore::String > &verlist) |
|
bool | parseManualParameters (casacore::String field, casacore::String spw, casacore::String array, casacore::String feed, casacore::String scan, casacore::String antenna, casacore::String uvrange, casacore::String timerange, casacore::String correlation, casacore::String intent, casacore::String observation, casacore::Bool autocorr, casacore::Bool apply) |
| Agent's specific parsing methods (for convenience only) Parse parameters for manual. More...
|
|
bool | parseClipParameters (casacore::String field, casacore::String spw, casacore::String array, casacore::String feed, casacore::String scan, casacore::String antenna, casacore::String uvrange, casacore::String timerange, casacore::String correlation, casacore::String intent, casacore::String observation, casacore::String datacolumn, casacore::Vector< casacore::Double > clipminmax, casacore::Bool clipoutside, casacore::Bool channelavg, casac::variant chanbin, casacore::Bool timeavg, casacore::String timebin, casacore::Bool clipzeros, casacore::Bool apply) |
| Parse parameters for clip. More...
|
|
bool | parseQuackParameters (casacore::String field, casacore::String spw, casacore::String array, casacore::String feed, casacore::String scan, casacore::String antenna, casacore::String uvrange, casacore::String timerange, casacore::String correlation, casacore::String intent, casacore::String observation, casacore::String quackmode, casacore::Double quackinterval, casacore::Bool quackincrement, casacore::Bool apply) |
| Parse parameters for quack. More...
|
|
bool | parseElevationParameters (casacore::String field, casacore::String spw, casacore::String array, casacore::String feed, casacore::String scan, casacore::String antenna, casacore::String uvrange, casacore::String timerange, casacore::String correlation, casacore::String intent, casacore::String observation, casacore::Double lowerlimit, casacore::Double upperlimit, casacore::Bool apply) |
| Parse parameters for elevation. More...
|
|
bool | parseTfcropParameters (casacore::String field, casacore::String spw, casacore::String array, casacore::String feed, casacore::String scan, casacore::String antenna, casacore::String uvrange, casacore::String timerange, casacore::String correlation, casacore::String intent, casacore::String observation, casacore::Double ntime, casacore::Bool combinescans, casacore::String datacolumn, casacore::Double timecutoff, casacore::Double freqcutoff, casacore::String timefit, casacore::String freqfit, casacore::Int maxnpieces, casacore::String flagdimension, casacore::String usewindowstats, casacore::Int halfwin, casacore::Bool extendflags, casacore::Bool apply, casacore::Bool channelavg, casac::variant chanbin, casacore::Bool timeavg, casacore::String timebin) |
| Parse parameters for tfcrop. More...
|
|
bool | parseAntIntParameters (casacore::String field, casacore::String spw, casacore::String array, casacore::String feed, casacore::String scan, casacore::String antenna, casacore::String uvrange, casacore::String timerange, casacore::String correlation, casacore::String intent, casacore::String observation, casacore::String antint_ref_antenna, casacore::Double minchanfrac, casacore::Bool verbose, casacore::Bool apply) |
| Parse parameters for the 'antint' mode (antenna integrations) More...
|
|
bool | parseExtendParameters (casacore::String field="", casacore::String spw="", casacore::String array="", casacore::String feed="", casacore::String scan="", casacore::String antenna="", casacore::String uvrange="", casacore::String timerange="", casacore::String correlation="", casacore::String intent="", casacore::String observation="", casacore::Double ntime=0.0, casacore::Bool combinescans=false, casacore::Bool extendpols=true, casacore::Double growtime=50.0, casacore::Double growfreq=50.0, casacore::Bool growaround=false, casacore::Bool flagneartime=false, casacore::Bool flagnearfreq=false, casacore::Bool apply=true) |
| Parse parameters for extend. More...
|
|
bool | parseSummaryParameters (casacore::String field, casacore::String spw, casacore::String array, casacore::String feed, casacore::String scan, casacore::String antenna, casacore::String uvrange, casacore::String timerange, casacore::String correlation, casacore::String intent, casacore::String observation, casacore::Bool spwchan, casacore::Bool spwcorr, casacore::Bool basecnt, casacore::Bool fieldcnt, casacore::String name) |
| Parse parameters for summary. More...
|
|
AgentFlagger: high-performance automated flagging.
Intended use:
Prerequisite
Etymology
Synopsis
AgentFlagger performs automated flagging operations on a measurement set or calibration table. The class is constructed from an casacore::MS or cal table. After that, the run method may be used to run any number of flagging agents.
Example
selection.
define(
"scan", scan);
af->selectData(selection);
af->selectData(spw=spw, scan=scan);
agent_pars.
define(
"mode",
"clip");
agent_pars.
define(
"clipzeros",
true);
agent_pars.
define(
"apply",
true);
af->parseAgentParameters(agent_pars);
agent_pars.
define(
"mode",
"manual");
agent_pars.
define(
"autocorr",
true);
af->parseAgentParameters(agent_pars);
agent_pars.
define(
"mode",
"summary");
agent_pars.
define(
"basecnt",
true);
af->parseAgentParameters(agent_pars);
af->parseClipParameters(clipzeros=
true,
apply=
true);
af->parseManualParameters(autocorr=
true);
af->parseSummaryParameters(basecnt=
true);
af.saveflagversion(versionname=
'backup_before_manual_1',
comment='Backup of flags before running manual',merge='replace')
Motivation
To flag data using different algorithms.
Definition at line 212 of file AgentFlagger.h.