casa
5.7.0-16
|
A top level class defining the data handling interface for the flagging module. More...
#include <FlagDataHandler.h>
Public Member Functions | |
FlagDataHandler (string msname, casacore::uShort iterationApproach=SUB_INTEGRATION, casacore::Double timeInterval=0) | |
Default constructor NOTE: casacore::Time interval 0 groups all time steps together in one chunk. More... | |
virtual | ~FlagDataHandler () |
Default destructor. More... | |
virtual bool | open () |
Common casacore::MS/CalTables public interface. More... | |
virtual bool | close () |
virtual bool | selectData () |
virtual bool | generateIterator () |
virtual bool | nextChunk () |
virtual bool | nextBuffer () |
virtual bool | flushFlags () |
virtual casacore::String | getTableName () |
virtual bool | parseExpression (casacore::MSSelection &) |
virtual bool | checkIfColumnExists (casacore::String) |
virtual bool | checkIfSourceModelColumnExists () |
virtual bool | summarySignal () |
void | setIterationApproach (casacore::uShort iterationApproach) |
Set the iteration approach. More... | |
bool | setDataSelection (casacore::Record record) |
Set casacore::Data Selection parameters. More... | |
void | setTimeInterval (casacore::Double timeInterval) |
Set time interval (also known as ntime) More... | |
void | enableAsyncIO (casacore::Bool enable) |
Methods to switch on/off async i/o. More... | |
void | preLoadColumn (VisBufferComponent2 column) |
Pre-Load columns (in order to avoid parallelism problems when not using async i/o, and also to know what columns to pre-fetch in async i/o mode) More... | |
void | preFetchColumns () |
void | stopIteration () |
Stop iterating. More... | |
casacore::Cube< casacore::Bool > * | getModifiedFlagCube () |
As requested by Urvashi R.V. More... | |
casacore::Cube< casacore::Bool > * | getOriginalFlagCube () |
casacore::Vector < casacore::Bool > * | getModifiedFlagRow () |
casacore::Vector < casacore::Bool > * | getOriginalFlagRow () |
void | setMapAntennaPairs (bool activated) |
Functions to switch on/off mapping functions. More... | |
void | setMapSubIntegrations (bool activated) |
void | setMapPolarizations (bool activated) |
void | setMapAntennaPointing (bool activated) |
void | setScanStartStopMap (bool activated) |
void | setScanStartStopFlaggedMap (bool activated) |
void | setTimeAverageIter (bool activated) |
void | setChanAverageIter (casacore::Vector< casacore::Int > chanbin) |
antennaPairMap * | getAntennaPairMap () |
Accessors for the mapping functions. More... | |
subIntegrationMap * | getSubIntegrationMap () |
polarizationMap * | getPolarizationMap () |
polarizationIndexMap * | getPolarizationIndexMap () |
antennaPointingMap * | getMapAntennaPointing () |
scanStartStopMap * | getMapScanStartStop () |
lambdaMap * | getLambdaMap () |
void | setProfiling (casacore::Bool value) |
casacore::Cube < casacore::Complex > & | weightVisCube () |
Get a casacore::Float visCube and return a casacore::Complex one. More... | |
Protected Member Functions | |
virtual void | generateAntennaPairMap () |
Common casacore::MS/CalTables private interface. More... | |
virtual void | generateSubIntegrationMap () |
virtual void | generatePolarizationsMap () |
virtual void | generateAntennaPointingMap () |
virtual void | generateScanStartStopMap () |
A top level class defining the data handling interface for the flagging module.
Public interface
FlagDataHandler stands for generic data handling (i.e. MSs, CalTables,...) specific to the flagging module
This is a top-level class defining the data handling interface for the flagging module. There are various methods (virtual) that must be re-implemented by the specific derived classes (e.g. FlagMSHandler, FlagCalTableHandler). These methods essentially cover:
Additionally there are public non-virtual methods to:
Also at this top level there are public members which are used by the FlagAgent classes, so that there is no dependency with the specific implementation classes (e.g. FlagMsHandler, FlagCalTableHandler), and thus no re-implementation is required at the FlagAgent level.
The motivation for the FlagDataHandler class is having all the data operations encapsulated in one single class, with a common interface for all types of tables (MSs, CalTables, SingleDish), so that no specific specific table type implementation has to be done at the FlagAgent level.
Definition at line 791 of file FlagDataHandler.h.
Definition at line 796 of file FlagDataHandler.h.
Enumerator | |
---|---|
MEASUREMENT_SET | |
CALIBRATION_TABLE |
Definition at line 811 of file FlagDataHandler.h.
casa::FlagDataHandler::FlagDataHandler | ( | string | msname, |
casacore::uShort | iterationApproach = SUB_INTEGRATION , |
||
casacore::Double | timeInterval = 0 |
||
) |
Default constructor NOTE: casacore::Time interval 0 groups all time steps together in one chunk.
|
virtual |
Default destructor.
|
inlinevirtual |
Reimplemented in casa::FlagCalTableHandler, and casa::FlagMSHandler.
Definition at line 834 of file FlagDataHandler.h.
|
inlinevirtual |
Reimplemented in casa::FlagMSHandler.
Definition at line 835 of file FlagDataHandler.h.
|
inlinevirtual |
Reimplemented in casa::FlagCalTableHandler, and casa::FlagMSHandler.
Definition at line 826 of file FlagDataHandler.h.
void casa::FlagDataHandler::enableAsyncIO | ( | casacore::Bool | enable | ) |
Methods to switch on/off async i/o.
|
inlinevirtual |
Reimplemented in casa::FlagCalTableHandler, and casa::FlagMSHandler.
Definition at line 831 of file FlagDataHandler.h.
|
protectedvirtual |
Common casacore::MS/CalTables private interface.
|
protectedvirtual |
|
inlinevirtual |
Reimplemented in casa::FlagCalTableHandler, and casa::FlagMSHandler.
Definition at line 828 of file FlagDataHandler.h.
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in casa::FlagCalTableHandler, and casa::FlagMSHandler.
|
protectedvirtual |
|
inline |
Accessors for the mapping functions.
Definition at line 875 of file FlagDataHandler.h.
References antennaPairMap_p.
|
inline |
Definition at line 881 of file FlagDataHandler.h.
References lambdaMap_p.
|
inline |
Definition at line 879 of file FlagDataHandler.h.
References antennaPointingMap_p.
|
inline |
Definition at line 880 of file FlagDataHandler.h.
References scanStartStopMap_p.
|
inline |
As requested by Urvashi R.V.
provide access to the original and modified flag cubes
Definition at line 859 of file FlagDataHandler.h.
References modifiedFlagCube_p.
|
inline |
Definition at line 861 of file FlagDataHandler.h.
References modifiedFlagRow_p.
|
inline |
Definition at line 860 of file FlagDataHandler.h.
References originalFlagCube_p.
|
inline |
Definition at line 862 of file FlagDataHandler.h.
References originalFlagRow_p.
|
inline |
Definition at line 878 of file FlagDataHandler.h.
References polarizationIndexMap_p.
|
inline |
Definition at line 877 of file FlagDataHandler.h.
References polarizationMap_p.
|
inline |
Definition at line 876 of file FlagDataHandler.h.
References subIntegrationMap_p.
|
inlinevirtual |
Reimplemented in casa::FlagCalTableHandler, and casa::FlagMSHandler.
Definition at line 832 of file FlagDataHandler.h.
|
inlinevirtual |
Reimplemented in casa::FlagCalTableHandler, and casa::FlagMSHandler.
Definition at line 830 of file FlagDataHandler.h.
|
inlinevirtual |
Reimplemented in casa::FlagCalTableHandler, and casa::FlagMSHandler.
Definition at line 829 of file FlagDataHandler.h.
|
inlinevirtual |
Common casacore::MS/CalTables public interface.
Reimplemented in casa::FlagCalTableHandler, and casa::FlagMSHandler.
Definition at line 825 of file FlagDataHandler.h.
|
inlinevirtual |
Reimplemented in casa::FlagCalTableHandler, and casa::FlagMSHandler.
Definition at line 833 of file FlagDataHandler.h.
void casa::FlagDataHandler::preFetchColumns | ( | ) |
void casa::FlagDataHandler::preLoadColumn | ( | VisBufferComponent2 | column | ) |
Pre-Load columns (in order to avoid parallelism problems when not using async i/o, and also to know what columns to pre-fetch in async i/o mode)
|
inlinevirtual |
Reimplemented in casa::FlagCalTableHandler, and casa::FlagMSHandler.
Definition at line 827 of file FlagDataHandler.h.
void casa::FlagDataHandler::setChanAverageIter | ( | casacore::Vector< casacore::Int > | chanbin | ) |
bool casa::FlagDataHandler::setDataSelection | ( | casacore::Record | record | ) |
Set casacore::Data Selection parameters.
void casa::FlagDataHandler::setIterationApproach | ( | casacore::uShort | iterationApproach | ) |
Set the iteration approach.
void casa::FlagDataHandler::setMapAntennaPairs | ( | bool | activated | ) |
Functions to switch on/off mapping functions.
void casa::FlagDataHandler::setMapAntennaPointing | ( | bool | activated | ) |
void casa::FlagDataHandler::setMapPolarizations | ( | bool | activated | ) |
void casa::FlagDataHandler::setMapSubIntegrations | ( | bool | activated | ) |
|
inline |
Definition at line 883 of file FlagDataHandler.h.
References profiling_p, and casacore::value().
void casa::FlagDataHandler::setScanStartStopFlaggedMap | ( | bool | activated | ) |
void casa::FlagDataHandler::setScanStartStopMap | ( | bool | activated | ) |
void casa::FlagDataHandler::setTimeAverageIter | ( | bool | activated | ) |
void casa::FlagDataHandler::setTimeInterval | ( | casacore::Double | timeInterval | ) |
Set time interval (also known as ntime)
|
inline |
|
inlinevirtual |
Reimplemented in casa::FlagCalTableHandler, and casa::FlagMSHandler.
Definition at line 836 of file FlagDataHandler.h.
casacore::Cube<casacore::Complex>& casa::FlagDataHandler::weightVisCube | ( | ) |
Get a casacore::Float visCube and return a casacore::Complex one.
std::map< std::pair<casacore::Int,casacore::Int>, string > casa::FlagDataHandler::Ant1Ant2ToBaseline_p |
Definition at line 897 of file FlagDataHandler.h.
casacore::Vector<casacore::Double>* casa::FlagDataHandler::antennaDiameters_p |
Definition at line 899 of file FlagDataHandler.h.
casacore::Vector<casacore::String>* casa::FlagDataHandler::antennaNames_p |
Definition at line 895 of file FlagDataHandler.h.
|
protected |
Mapping members.
Definition at line 995 of file FlagDataHandler.h.
Referenced by getAntennaPairMap().
|
protected |
Definition at line 999 of file FlagDataHandler.h.
Referenced by getMapAntennaPointing().
casacore::ScalarMeasColumn<casacore::MPosition>* casa::FlagDataHandler::antennaPositions_p |
Definition at line 898 of file FlagDataHandler.h.
|
protected |
casacore::Data Selection ranges
Definition at line 956 of file FlagDataHandler.h.
|
protected |
Definition at line 958 of file FlagDataHandler.h.
|
protected |
Async I/O stuff.
Definition at line 970 of file FlagDataHandler.h.
|
protected |
Definition at line 963 of file FlagDataHandler.h.
std::map< string, std::pair<casacore::Int,casacore::Int> > casa::FlagDataHandler::baselineToAnt1Ant2_p |
Definition at line 896 of file FlagDataHandler.h.
casacore::uShort casa::FlagDataHandler::bufferNo |
Definition at line 908 of file FlagDataHandler.h.
|
protected |
Definition at line 982 of file FlagDataHandler.h.
casacore::Vector<casacore::Int> casa::FlagDataHandler::chanAverageBin_p |
Definition at line 941 of file FlagDataHandler.h.
casacore::Record casa::FlagDataHandler::chanAvgOptions_p |
Definition at line 944 of file FlagDataHandler.h.
casacore::uInt64 casa::FlagDataHandler::chunkCounts_p |
Definition at line 913 of file FlagDataHandler.h.
casacore::uShort casa::FlagDataHandler::chunkNo |
Definition at line 907 of file FlagDataHandler.h.
|
protected |
Iteration initialization parameters.
Definition at line 981 of file FlagDataHandler.h.
std::vector<casacore::String>* casa::FlagDataHandler::corrProducts_p |
Definition at line 901 of file FlagDataHandler.h.
|
protected |
Definition at line 1011 of file FlagDataHandler.h.
|
protected |
Definition at line 1013 of file FlagDataHandler.h.
|
protected |
Definition at line 1012 of file FlagDataHandler.h.
|
protected |
Definition at line 1014 of file FlagDataHandler.h.
casacore::String casa::FlagDataHandler::dataColumnType_p |
Definition at line 942 of file FlagDataHandler.h.
casacore::Bool casa::FlagDataHandler::enableChanAvg_p |
Definition at line 939 of file FlagDataHandler.h.
casacore::Bool casa::FlagDataHandler::enableTimeAvg_p |
casacore::Time average iterator parameters
Definition at line 938 of file FlagDataHandler.h.
casacore::Vector<casacore::String>* casa::FlagDataHandler::fieldNames_p |
Definition at line 900 of file FlagDataHandler.h.
|
protected |
Definition at line 959 of file FlagDataHandler.h.
bool casa::FlagDataHandler::flushFlagRow_p |
Definition at line 912 of file FlagDataHandler.h.
bool casa::FlagDataHandler::flushFlags_p |
FlagDataHanler-FlagAgents interaction.
Definition at line 911 of file FlagDataHandler.h.
bool casa::FlagDataHandler::groupTimeSteps_p |
Vis buffer characteristics (constant values)
Definition at line 934 of file FlagDataHandler.h.
|
protected |
Definition at line 957 of file FlagDataHandler.h.
casacore::Vector<bool> casa::FlagDataHandler::isCorrelatorType_p |
PROCESSOR sub-table section.
Definition at line 922 of file FlagDataHandler.h.
|
protected |
Iteration parameters.
Definition at line 976 of file FlagDataHandler.h.
|
protected |
Definition at line 983 of file FlagDataHandler.h.
|
protected |
Definition at line 1001 of file FlagDataHandler.h.
Referenced by getLambdaMap().
casacore::Bool casa::FlagDataHandler::loadProcessorTable_p |
Definition at line 919 of file FlagDataHandler.h.
casacore::LogIO* casa::FlagDataHandler::logger_p |
Make the logger public to that we can use it from FlagAgentBase::create.
Definition at line 890 of file FlagDataHandler.h.
|
protected |
Definition at line 1002 of file FlagDataHandler.h.
|
protected |
Definition at line 1005 of file FlagDataHandler.h.
|
protected |
Definition at line 1004 of file FlagDataHandler.h.
|
protected |
Definition at line 1006 of file FlagDataHandler.h.
|
protected |
Definition at line 1007 of file FlagDataHandler.h.
|
protected |
Definition at line 1003 of file FlagDataHandler.h.
casacore::MSSelection* casa::FlagDataHandler::measurementSetSelection_p |
Definition at line 894 of file FlagDataHandler.h.
|
protected |
Definition at line 988 of file FlagDataHandler.h.
Referenced by getModifiedFlagCube().
|
protected |
Definition at line 992 of file FlagDataHandler.h.
Referenced by getModifiedFlagRow().
casacore::uInt64 casa::FlagDataHandler::msCounts_p |
Definition at line 915 of file FlagDataHandler.h.
|
protected |
Definition at line 967 of file FlagDataHandler.h.
|
protected |
|
protected |
|
protected |
Definition at line 998 of file FlagDataHandler.h.
Referenced by getPolarizationIndexMap().
|
protected |
Definition at line 997 of file FlagDataHandler.h.
Referenced by getPolarizationMap().
|
protected |
Definition at line 965 of file FlagDataHandler.h.
VisBufferComponents2* casa::FlagDataHandler::prefetchColumns_p |
RO Visibility Iterator.
Definition at line 904 of file FlagDataHandler.h.
|
protected |
Pre-Load columns (in order to avoid parallelism problems when not using async i/o, and also to know what columns to pre-fetch in async i/o mode)
Definition at line 973 of file FlagDataHandler.h.
bool casa::FlagDataHandler::printChunkSummary_p |
Definition at line 917 of file FlagDataHandler.h.
casacore::uLong casa::FlagDataHandler::processedRows |
Iteration counters.
Definition at line 906 of file FlagDataHandler.h.
bool casa::FlagDataHandler::processorTableExist_p |
Definition at line 923 of file FlagDataHandler.h.
|
protected |
casacore::uInt64 casa::FlagDataHandler::progressCounts_p |
Definition at line 914 of file FlagDataHandler.h.
|
protected |
Definition at line 966 of file FlagDataHandler.h.
|
protected |
Definition at line 960 of file FlagDataHandler.h.
|
protected |
Definition at line 1000 of file FlagDataHandler.h.
Referenced by getMapScanStartStop().
|
protected |
Slurp flag.
Definition at line 979 of file FlagDataHandler.h.
casacore::Block<int> casa::FlagDataHandler::sortOrder_p |
Definition at line 935 of file FlagDataHandler.h.
|
protected |
Definition at line 962 of file FlagDataHandler.h.
|
protected |
Stats members.
Definition at line 1010 of file FlagDataHandler.h.
|
protected |
Definition at line 984 of file FlagDataHandler.h.
Referenced by stopIteration().
|
protected |
Definition at line 996 of file FlagDataHandler.h.
Referenced by getSubIntegrationMap().
casacore::uShort casa::FlagDataHandler::summaryThreshold_p |
Definition at line 916 of file FlagDataHandler.h.
casacore::String casa::FlagDataHandler::tablename_p |
Measurement set section.
Definition at line 893 of file FlagDataHandler.h.
casacore::uShort casa::FlagDataHandler::tableTye_p |
Definition at line 918 of file FlagDataHandler.h.
casacore::Double casa::FlagDataHandler::timeAverageBin_p |
Definition at line 940 of file FlagDataHandler.h.
vi::AveragingOptions casa::FlagDataHandler::timeAvgOptions_p |
Definition at line 943 of file FlagDataHandler.h.
|
protected |
Definition at line 977 of file FlagDataHandler.h.
|
protected |
Definition at line 961 of file FlagDataHandler.h.
|
protected |
Definition at line 964 of file FlagDataHandler.h.
vi::VisBuffer2* casa::FlagDataHandler::visibilityBuffer_p |
Visibility Buffer WARNING: The attach mechanism only works with pointers or referenced variables.
Otherwise the VisBuffer is created and attached, but when it is assigned to the member it is detached because of the dynamically called destructor
Definition at line 931 of file FlagDataHandler.h.
casacore::Cube<casacore::Complex> casa::FlagDataHandler::weight_spectrum_p |
Definition at line 887 of file FlagDataHandler.h.