23 #ifndef FlagAgentAntennaIntegrations_H_
24 #define FlagAgentAntennaIntegrations_H_
27 #include <unordered_map>
A top level class defining the data handling interface for the flagging module.
FlagAgentAntennaIntegrations(FlagDataHandler *dh, casacore::Record config, casacore::Bool writePrivateFlagCube=false, casacore::Bool flag=true)
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
bool computeRowFlags(const vi::VisBuffer2 &visBuffer, FlagMapper &flags, casacore::uInt row)
Compute flags afor a given mapped visibility point.
A flag agent that implements the 'antint' flagdata mode.
casacore::Double minChanThreshold_p
what fraction of channels need to be flagged to consider a polarization product flagged ...
std::vector< std::vector< bool > > TableFlagPerBaselinePerChannel
void preProcessBuffer(const vi::VisBuffer2 &visBuffer)
To use iteration approach FlagAgentBase::ROWS_PREPROCESS_BUFFER.
A top level class defining the interface for flagging agents.
~FlagAgentAntennaIntegrations()=default
casacore::Int antIdx_p
The antenna of interest.
void checkAnyPolarizationFlagged(const casacore::Cube< casacore::Bool > &polChanRowFlags, TableFlagPerBaselinePerChannel &flagPerBaselinePerChannel, casacore::uInt row, casacore::uInt baselineIdx)
void doPreProcessingTimePoint(FlaggedTimesMap &flaggedTimes, casacore::Double rowTime, TableFlagPerBaselinePerChannel &flagPerBaselinePerChannel)
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
void setAgentParameters(casacore::Record config, casacore::Vector< casacore::String > *antennaNames)
FlaggedTimesMap doFlagTime_p
Time points that should be flagged.
void doPreProcessingTimePointSingleChannel(FlaggedTimesMap &flaggedTimes, casacore::Double rowTime, const TableFlagPerBaselinePerChannel &flagPerBaselinePerChannel)
VisBuffer2s encapsulate one chunk of visibility data for processing.
String: the storage and methods of handling collections of characters.
std::unordered_map< casacore::Double, bool > FlaggedTimesMap
casacore::uInt findAntennaID(const casacore::String &name, const casacore::Vector< casacore::String > *antennaNames)
void doPreProcessingTimePointMultiChannel(FlaggedTimesMap &flaggedTimes, casacore::Double rowTime, const TableFlagPerBaselinePerChannel &flagPerBaselinePerChannel)