27 #ifndef FLAGGING_RFCHUNKSTATS_H
28 #define FLAGGING_RFCHUNKSTATS_H
46 class VisibilityIterator;
256 #ifndef AIPS_NO_TEMPLATE_SRC
257 #include <flagging/Flagging/RFChunkStats.tcc>
258 #endif //# AIPS_NO_TEMPLATE_SRC
A Vector of integers, for indexing into Array<T> objects.
const casacore::Vector< casacore::uInt > & nrowPerIfr() const
VisibilityIterator & visiter
casacore::uInt RFlagWord
RFAs use bitwise flags.
const casacore::Matrix< casacore::uInt > & nfChanIfr() const
VisBuffer & visBuf()
accessor to VisBuffer
double get_scan_end(unsigned scan) const
std::vector< double > scan_start_flag
casacore::Int iTime() const
returns current time slot
virtual Type type()
Return the type enum.
casacore::Vector< casacore::uInt > nrf_ifr
std::vector< double > scan_start
casacore::Matrix<casacore::uInt> nf_corr_ifr, nf_chan_corr, nf_chan_time, nf_corr_time; ...
casacore::Double start_time
casacore::Double end_time
const casacore::MeasurementSet & measSet() const
accessor to MS
casacore::String corr_string
casacore::IPosition visshape
casacore::Matrix< casacore::uInt > & nfChanIfr()
casacore::uInt num(StatEnums which) const
returns a data dimension (POL, CHAN, IFR, etc.)
StokesTypes
The Stokes types are defined by this enum.
const casacore::uInt num_active_stats
casacore::uInt nchunk() const
returns current chunk number
void ifrToAnt(casacore::uInt &ant1, casacore::uInt &ant2, casacore::uInt ifr)
converts IFR index back to antenna numbers
const casacore::Vector< casacore::Int > & feedNums()
returns FEED index corresponding to current VisBuffer rows
const casacore::Vector< casacore::Int > & ifrNums()
returns IFR index corresponding to current VisBuffer rows
std::vector< double > scan_end
void newChunk(bool init_quack)
loads data for new chunk, resets all flag stat counters
casacore::Vector< casacore::Double > freq
casacore::Int findCorrType(casacore::Stokes::StokesTypes type, const casacore::Vector< casacore::Int > &corr)
global function for finding polarization by index
double get_scan_start(unsigned scan) const
scan start/end times
casacore::Vector< casacore::uInt > rows_per_ifr
casacore::Matrix< casacore::uInt > nf_chan_ifr
casacore::Vector< casacore::Int > feed_nums
casacore::Vector< casacore::uInt > nrf_time
const casacore::String & getCorrString()
returns string of correlations
casacore::uInt npass() const
returns current pass number
casacore::Double endMJD() const
return last time slot in chunk
casacore::uInt & nrfTime(casacore::uInt i)
casacore::uInt nrowPerIfr(casacore::uInt ifr)
data availability stats, per IFR
Flagger: high-performance automated flagging.
casacore::uInt & nrfIfr(casacore::uInt i)
const casacore::Matrix< casacore::uInt > & nfIfrTime() const
const casacore::Vector< casacore::String > & antNames() const
returns antenna names
casacore::Vector< casacore::Int > corrtypes
const casacore::Vector< casacore::Double > & frequency()
returns vector of frequencies (one per channel)
RFChunkStats(VisibilityIterator &vi, VisBuffer &vb, Flagger &rf)
constructor
casacore::Vector< casacore::Int > ifr_nums
double get_scan_start_unflagged(unsigned scan) const
scan start/end times for unflagged data
const VisibilityIterator & visIter() const
accessors to VisIter
std::vector< double > scan_end_flag
casacore::uInt antToIfr(casacore::uInt ant1, casacore::uInt ant2)
converts antenna indices into IFR index
casacore::Double currentMJD() const
returns time of currently iterated time slot
A Table intended to hold astronomical data (a set of Measurements).
VisibilityIterator & visIter()
FlaggerEnums: collection of enums for various flagger classes.
Abstract RedFlagger Agent base class.
casacore::uInt ifrNum(casacore::uInt nr)
returns IFR index corresponding to current VisBuffer rows
casacore::uInt & nfIfrTime(casacore::uInt ifr, casacore::uInt itime)
accessors to various flagging stats
const casacore::String msName() const
accessor to MS
double get_scan_end_unflagged(unsigned scan) const
casacore::Double startMJD() const
return first time slot in chunk
casacore::Matrix< casacore::uInt > nf_ifr_time
const casacore::Vector< casacore::uInt > & nrfTime() const
void newTime()
loads data for new iteration
void newPass(casacore::uInt npass)
loads data for new pass
String: the storage and methods of handling collections of characters.
casacore::uInt & nfChanIfr(casacore::uInt ich, casacore::uInt ifr)
casacore::uInt feedNum(casacore::uInt nr)
returns FEED index corresponding to current VisBuffer rows
void printStats()
casacore::Matrix<casacore::uInt> nf_corr_ifr, nf_chan_corr, nf_chan_time, nf_corr_time; casacore::uIn...
RFChunkStats: vital information and flagging stats for a visibility chunk.
casacore::Double current_time
VisBuffers encapsulate one chunk of visibility data for processing.
VisibilityIterator iterates through one or more writable MeasurementSets.
casacore::uInt counts[Num_StatEnums]
casacore::String ifrString(casacore::uInt ifr)
converts IFR index to standard ID string
RFlagWord fullCorrMask()
returns mask with all correlations
const RFChunkStats::StatEnums active_stats[]
enums for which stats are actually collected
const casacore::Vector< casacore::uInt > & nrfIfr() const
RFlagWord getCorrMask(const casacore::Vector< T > &corrspec)
returns corr mask corresponding to specified casacore::Stokes types (templated, but only casacore::St...
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.