27 #ifndef FLAGGING_FLAGGER_H
28 #define FLAGGING_FLAGGER_H
117 std::vector<std::shared_ptr<RFABase> >
acc;
casacore::Bool nullSelect_p
casacore::uInt ifrNumber(casacore::Int ant1, casacore::Int ant2) const
derives a flat IFR index from two antenna indices
Flagger()
default constructor
casacore::Record * opts_p
casacore::List of extra options
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.
casacore::Vector< casacore::Double > spwfreqs
casacore::Vector< casacore::Int > datafieldids_p
const casacore::RecordInterface & defaultAgents() const
returns a record with all available agents and their default options
casacore::Record agent_defaults
virtual void reset()
Overrides PlotTool::reset().
casacore::Vector< casacore::String > correlations_p
casacore::Vector<casacore::Int> dataEnd_p; casacore::Vector<casacore::Int> dataStart_p, dataStep_p; casacore::Vector<casacore::Int> dataspectralwindowids_p; casacore::Vector<casacore::Int> spwidnchans_p;
casacore::Bool selectdata_p
casacore::LogSink logSink_p
Sink used to store history.
casacore::Bool getFlagVersionList(casacore::Vector< casacore::String > &verlist)
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
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.
ABSTRACT TOOL CLASSES A PlotTool is a higher level event handler for a PlotCanvas The idea is to take common tasks which may require multiple events and put them in one place PlotTools also provide additional functionality in that they can be active and blocking non blocking The PlotCanvas will only send events to active and will not send events to later tools or event handlers if the latest tool was blocking In this way a single tool can be used to handle ALL user interaction via the GUI at one time
casacore::Bool addAgent(casacore::RecordInterface &newAgent)
casacore::Bool saveFlagVersion(casacore::String versionname, casacore::String comment, casacore::String merge)
flag version support.
const casacore::Vector< casacore::String > & antNames() const
names of antennas
ostream-like interface to creating log messages.
A Measure: radial velocity.
casacore::uInt numFeedCorr() const
number of feed correlations in MS
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
static const casacore::RecordInterface & defaultOptions()
returns a record of available options
static casacore::LogIO os
casacore::Bool fillSelections(casacore::Record &rec)
Fill the selection record to attach to the list of agents.
casacore::Vector< casacore::Int > datadescids_p
casacore::MeasurementSet * mssel_p
new added
void detach()
Detaches from the casacore::MS.
casacore::Vector< casacore::String > antnames
void ifrToAnt(casacore::uInt &ant1, casacore::uInt &ant2, casacore::uInt ifr) const
derives antenna indices from a flat IFR index
casacore::Record run(casacore::Bool trial, casacore::Bool reset)
casacore::uInt numFeed() const
number of feeds in MS
std::shared_ptr< RFABase > createAgent(const casacore::String &name, RFChunkStats &chunk, const casacore::RecordInterface &parms, bool &only_selector)
creates an agent by name
casacore::Int agentCount_p
casacore::MeasurementSet ms
casacore::MSSelection * msselection_p
casacore::MS Selection
casacore::Vector< casacore::Int > ifr2ant1
std::vector< std::shared_ptr< RFABase > > acc
casacore::Vector< casacore::Int > ifr2ant2
casacore::String dataMode_p
const casacore::RecordInterface & setupAgentDefaults()
sets up record of agents and default parameters
casacore::Bool setautoflagparams(casacore::String algorithm, casacore::Record ¶meters)
Set autoflag params.
void printSummaryReport(RFChunkStats &chunk)
casacore::Bool printflagselections()
MSSelection: Class to represent a selection on an MS.
Flagger: high-performance automated flagging.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
casacore::Bool clearflagselections(casacore::Int recordindex)
Clean up all agents of type "select".
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.
casacore::uInt numAnt() const
number of antennas in MS
static void reform_baselinelist(casacore::Matrix< casacore::Int > &baselinelist, unsigned nant)
casacore::Record * agents_p
casacore::List of Agents
A Table intended to hold astronomical data (a set of Measurements).
casacore::String msname_p
FlaggerEnums: collection of enums for various flagger classes.
casacore::Bool restoreFlagVersion(casacore::Vector< casacore::String > versionname, casacore::String merge)
static const bool dbg
Debug Message flag.
void printAgentReports()
print flagging reports from individual agents
static casacore::LogIO & logSink()
returns the log sink
Flagger & operator=(const Flagger &)
static int my_aipspp_sum(const casacore::Array< casacore::Bool > &a)
const casacore::MeasurementSet & measSet() const
returns current MS
Distribute LogMessages to their destination(s)
casacore::Record getautoflagparams(casacore::String algorithm)
Get default autoflag params.
String: the storage and methods of handling collections of characters.
casacore::Bool deleteFlagVersion(casacore::Vector< casacore::String > versionname)
RFChunkStats: vital information and flagging stats for a visibility chunk.
casacore::MeasurementSet * originalms_p
Hold the original ms.
casacore::Vector< casacore::Int > ifrNumbers(casacore::Vector< casacore::Int > ant1, casacore::Vector< casacore::Int > ant2) const
vector version of above
bool attach(casacore::MeasurementSet &ms, casacore::Bool setupAgentDefaults=true)
Change or set the casacore::MS this Flagger refers to.
Abstract base class for Record classes.
Subchunk class Provides the ordered pair identifying the current subchunk The first component is the chunk(goes from 0 to nChunks-1 during the outer loop iteration).The second component is the subchunk number which is zero after VisibilityIterator
void summary(const casacore::RecordInterface &agents)
casacore::Bool selectDataChannel()
casacore::Bool quack_agent_exists
casacore::uInt numIfr() const
number of IFRs in MS
casacore::MeasurementSet originalms
casacore::MRadialVelocity mDataStart_p
casacore::MRadialVelocity mDataStep_p
void printAgentRecord(casacore::String &, casacore::uInt, const casacore::RecordInterface &)