27 #ifndef FLAGGING_RFADIFFBASE_H
28 #define FLAGGING_RFADIFFBASE_H
89 virtual void startDry (
bool verbose);
casacore::Matrix< casacore::Float > sig0
casacore::Double row_clip_level
virtual RFlagWord newCorrMask()
computes a correlations mask.
Abstract RedFlagger Agent class with a flag cube.
void startDataRow(casacore::uInt ifr)
prepares for a pass over one data row
casacore::uInt RFlagWord
RFAs use bitwise flags.
virtual IterMode iterTime(casacore::uInt it)
Iteration methods for a data pass.
casacore::LogicalVector sigupdated
VisBuffer & visBuf()
accessor to VisBuffer
void endDataRow(casacore::uInt ifr)
ends pass over single data row
casacore::Bool clipping_rows
virtual void startData(bool verbose)
Called before starting a data pass on a chunk.
RFRowClipper: flags rows based on their noise level.
RFADiffBase(RFChunkStats &ch, const casacore::RecordInterface &parm)
virtual void startDry(bool verbose)
Called before starting a dry pass on a chunk.
void setVisBuffer(VisBuffer &vb)
point the datamapper at a visbuffer - called for every new buffer
virtual ~RFADiffMapBase()
casacore::Vector< casacore::Float > diffrow
RFADiffBase: abstract class for deviation-based flagging.
RFFloatLatice: a cubic lattice.
virtual RFlagWord newCorrMask()=0
computes a correlations mask.
RFlagWord corrMask(const VisibilityIterator &vi)
uses mapper to compute a correlations mask
casacore::Bool disable_row_clip
static const casacore::RecordInterface & getDefaults()
returns a casacore::Record of all available parameters and their default values
casacore::Float setDiff(casacore::uInt ich, casacore::uInt ifr, casacore::Float d, casacore::Bool &flagged=dummy_Bool)
updates the diff lattice with a value, and performs clipping
RFADiffMapBase(RFChunkStats &ch, const casacore::RecordInterface &parm)
casacore::Double clip_level
const int RFA_MIN_NAD
min number of deviations for which average is considered valid
virtual casacore::String getDesc()
called to obtain a short description of this RFA
bool Bool
Define the standard types used by Casacore.
casacore::Float updateSigma()
updates noise estimates (sih0), returns the max change
static casacore::Bool dummy_Bool
virtual void endChunk()
Called once finished with a chunk.
static const casacore::RecordInterface & getDefaults()
virtual casacore::Bool newChunk(casacore::Int &maxmem)
Called before iterating over a chunk.
const VisibilityIterator & visIter() const
accessors to VisIter
FlagCubeIterator * pflagiter
virtual casacore::uInt estimateMemoryUse()
This method is called before iterating over a chunk, to inquire the expected memory use...
virtual IterMode iterTime(casacore::uInt it)
Iteration methods for a data pass.
casacore::Matrix< casacore::Float > sig
virtual IterMode iterDry(casacore::uInt it)
Iteration method for a dry pass.
Abstract base class for deviation-based flagging with a data mapper.
virtual IterMode endData()
Called after a pass is completed successfully (i.e., not stopped by start or iter methods)...
virtual casacore::String getDesc()
called to obtain a short description of this RFA
String: the storage and methods of handling collections of characters.
RFChunkStats: vital information and flagging stats for a visibility chunk.
virtual IterMode endDry()
Called after a dry pass is complete.
Abstract base class for Record classes.
const casacore::Float RFA_AAD_CHANGE
significant change in accumulated average
RFDataMapper: maps complex visibilities to a single real value.