27 #ifndef FLAGGING_FLAGGER_H
28 #define FLAGGING_FLAGGER_H
42 class FlagAgentSummary;
43 class FlagDataHandler;
45 #if ! defined(WITHOUT_DBUS)
46 class FlagAgentDisplay;
250 #if ! defined(WITHOUT_DBUS)
AgentFlagger(const AgentFlagger &)
AgentFlagger()
default constructor
casacore::uShort iterationApproach_p
bool restoreFlagVersion(casacore::Vector< casacore::String > versionname, casacore::String merge)
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.
bool printFlagSelections()
Flag backup methods.
casacore::Double timeInterval_p
bool saveFlagVersion(casacore::String versionname, casacore::String comment, casacore::String merge)
A top level class defining the data handling interface for the flagging module.
bool deleteFlagVersion(casacore::Vector< casacore::String > versionname)
void apply(const Jones &j1, VisVector &v, const Jones &j2)
Apply a pair of Jones to a VisVector:
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
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)
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.
bool initAgents()
initialize the agents list
AgentFlagger & operator=(const AgentFlagger &)
ostream-like interface to creating log messages.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
FlagDataHandler * fdh_p
variables for initAgents
casacore::String mode_p
agent's members
casacore::String uvrange_p
std::vector< casacore::Record > agents_config_list_p
bool selectData(casacore::Record selrec)
parse the data selection
bool isExpressionPolarizationAll(casacore::String expression)
void getMax(casacore::Double value)
Maximum between two numbers.
bool open(casacore::String msname, casacore::Double ntime)
configure the tool, open the MS
casacore::Bool combinescans_p
casacore::Bool validateDataColumn(casacore::String datacol)
casa::FlagAgentDisplay * displayAgent_p
Display agent parameters.
casacore::Record run(casacore::Bool writeflags, casacore::Bool sequential=true)
Run the tool and write the flags to the MS.
bool getFlagVersionList(casacore::Vector< casacore::String > &verlist)
~AgentFlagger()
destructor
casacore::String antenna_p
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.
casacore::String timerange_p
bool isModeValid(casacore::String mode)
Check if mode is valid against a list of known modes.
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.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
casacore::LogSink logSink_p
Sink used to store history.
AgentFlagger: high-performance automated flagging.
bool parseAgentParameters(casacore::Record agent_params)
parse the parameters of the agent
FlagAgentSummary * summaryAgent_p
casacore::Double max_p
Store the temporary maximum value.
casacore::Record agentParams_p
void done()
reset everything
casacore::String spw_p
members to parse to selectData
casacore::String getExpressionFunction(casacore::String expression)
static const bool dbg
Debug message flag.
casacore::String intent_p
casacore::Bool extendflags_p
casacore::String observation_p
Distribute LogMessages to their destination(s)
casacore::Record dataselection_p
String: the storage and methods of handling collections of characters.
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.
casacore::String msname_p
variables used to initialize the FlagDataHandler
casacore::Bool mixed_p
true if there are apply and unapply parameters in the list
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.
FlagAgentList agents_list_p
casacore::Bool timeAvg_p
casacore::Time average parameter in clip mode
casacore::Bool timeset_p
Helper members.
casacore::String correlation_p
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
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.
std::vector< casacore::Record > agents_config_list_copy_p
static casacore::LogIO os