casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
casa::FlagCalTableHandler Class Reference

Flag casacore::Data Handler class definition. More...

#include <FlagCalTableHandler.h>

Inheritance diagram for casa::FlagCalTableHandler:
casa::FlagDataHandler

Public Member Functions

 FlagCalTableHandler (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...
 
 ~FlagCalTableHandler ()
 Default destructor. More...
 
bool open ()
 Open CalTable. More...
 
bool close ()
 Close CalTable. More...
 
bool selectData ()
 Generate selected CalTable. More...
 
bool parseExpression (casacore::MSSelection &parser)
 Parse casacore::MSSelection expression. More...
 
bool generateIterator ()
 Generate CalIter. More...
 
bool nextChunk ()
 Move to next chunk. More...
 
bool nextBuffer ()
 Move to next buffer. More...
 
bool flushFlags ()
 Write flag cube into MS. More...
 
casacore::String getTableName ()
 Provide table name (for flag version) More...
 
bool checkIfColumnExists (casacore::String column)
 Check if a given column is available in the cal table. More...
 
bool summarySignal ()
 Signal true when a progress summary has to be printed. More...
 
- Public Member Functions inherited from 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. More...
 
virtual ~FlagDataHandler ()
 Default destructor. More...
 
virtual bool checkIfSourceModelColumnExists ()
 
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)
 
antennaPairMapgetAntennaPairMap ()
 Accessors for the mapping functions. More...
 
subIntegrationMapgetSubIntegrationMap ()
 
polarizationMapgetPolarizationMap ()
 
polarizationIndexMapgetPolarizationIndexMap ()
 
antennaPointingMapgetMapAntennaPointing ()
 
scanStartStopMapgetMapScanStartStop ()
 
lambdaMapgetLambdaMap ()
 
void setProfiling (casacore::Bool value)
 
casacore::Cube
< casacore::Complex > & 
weightVisCube ()
 Get a casacore::Float visCube and return a casacore::Complex one. More...
 

Private Member Functions

void generateScanStartStopMap ()
 Mapping functions. More...
 
casacore::Block< casacore::StringgetSortColumns (casacore::Block< casacore::Int > intCols)
 Convenient private methods for compatibility with casacore::MS-like interface. More...
 

Private Attributes

NewCalTableselectedCalTable_p
 CatTable selection objects. More...
 
NewCalTableoriginalCalTable_p
 
CTInterfacecalTableInterface_p
 
CTItercalIter_p
 Calibration casacore::Table iterator and buffer. More...
 
CTBuffercalBuffer_p
 

Additional Inherited Members

- Public Types inherited from casa::FlagDataHandler
enum  iteration {
  COMPLETE_SCAN_MAPPED,
  COMPLETE_SCAN_MAP_SUB_INTEGRATIONS_ONLY,
  COMPLETE_SCAN_MAP_ANTENNA_PAIRS_ONLY,
  COMPLETE_SCAN_UNMAPPED,
  COMBINE_SCANS_MAPPED,
  COMBINE_SCANS_MAP_SUB_INTEGRATIONS_ONLY,
  COMBINE_SCANS_MAP_ANTENNA_PAIRS_ONLY,
  COMBINE_SCANS_UNMAPPED,
  ANTENNA_PAIR,
  SUB_INTEGRATION,
  ARRAY_FIELD
}
 
enum  tableType {
  MEASUREMENT_SET,
  CALIBRATION_TABLE
}
 
- Public Attributes inherited from casa::FlagDataHandler
casacore::Cube< casacore::Complex > weight_spectrum_p
 
casacore::LogIOlogger_p
 Make the logger public to that we can use it from FlagAgentBase::create. More...
 
casacore::String tablename_p
 Measurement set section. More...
 
casacore::MSSelectionmeasurementSetSelection_p
 
casacore::Vector
< casacore::String > * 
antennaNames_p
 
std::map< string, std::pair
< casacore::Int, casacore::Int > > 
baselineToAnt1Ant2_p
 
std::map< std::pair
< casacore::Int, casacore::Int >
, string > 
Ant1Ant2ToBaseline_p
 
casacore::ScalarMeasColumn
< casacore::MPosition > * 
antennaPositions_p
 
casacore::Vector
< casacore::Double > * 
antennaDiameters_p
 
casacore::Vector
< casacore::String > * 
fieldNames_p
 
std::vector< casacore::String > * corrProducts_p
 
VisBufferComponents2prefetchColumns_p
 RO Visibility Iterator. More...
 
casacore::uLong processedRows
 Iteration counters. More...
 
casacore::uShort chunkNo
 
casacore::uShort bufferNo
 
bool flushFlags_p
 FlagDataHanler-FlagAgents interaction. More...
 
bool flushFlagRow_p
 
casacore::uInt64 chunkCounts_p
 
casacore::uInt64 progressCounts_p
 
casacore::uInt64 msCounts_p
 
casacore::uShort summaryThreshold_p
 
bool printChunkSummary_p
 
casacore::uShort tableTye_p
 
casacore::Bool loadProcessorTable_p
 
casacore::Vector< bool > isCorrelatorType_p
 PROCESSOR sub-table section. More...
 
bool processorTableExist_p
 
vi::VisBuffer2visibilityBuffer_p
 Visibility Buffer WARNING: The attach mechanism only works with pointers or referenced variables. More...
 
bool groupTimeSteps_p
 Vis buffer characteristics (constant values) More...
 
casacore::Block< int > sortOrder_p
 
casacore::Bool enableTimeAvg_p
 casacore::Time average iterator parameters More...
 
casacore::Bool enableChanAvg_p
 
casacore::Double timeAverageBin_p
 
casacore::Vector< casacore::IntchanAverageBin_p
 
casacore::String dataColumnType_p
 
vi::AveragingOptions timeAvgOptions_p
 
casacore::Record chanAvgOptions_p
 
- Protected Member Functions inherited from casa::FlagDataHandler
virtual void generateAntennaPairMap ()
 Common casacore::MS/CalTables private interface. More...
 
virtual void generateSubIntegrationMap ()
 
virtual void generatePolarizationsMap ()
 
virtual void generateAntennaPointingMap ()
 
- Protected Attributes inherited from casa::FlagDataHandler
bool anySelection_p
 casacore::Data Selection ranges More...
 
bool inrowSelection_p
 
casacore::String arraySelection_p
 
casacore::String fieldSelection_p
 
casacore::String scanSelection_p
 
casacore::String timeSelection_p
 
casacore::String spwSelection_p
 
casacore::String baselineSelection_p
 
casacore::String uvwSelection_p
 
casacore::String polarizationSelection_p
 
casacore::String scanIntentSelection_p
 
casacore::String observationSelection_p
 
bool asyncio_enabled_p
 Async I/O stuff. More...
 
std::vector< VisBufferComponent2preLoadColumns_p
 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...
 
casacore::uShort iterationApproach_p
 Iteration parameters. More...
 
casacore::Double timeInterval_p
 
bool slurp_p
 Slurp flag. More...
 
bool chunksInitialized_p
 Iteration initialization parameters. More...
 
bool buffersInitialized_p
 
bool iteratorGenerated_p
 
bool stopIteration_p
 
casacore::Cube< casacore::BooloriginalFlagCube_p
 Flag Cubes. More...
 
casacore::Cube< casacore::BoolmodifiedFlagCube_p
 
casacore::Vector< casacore::BooloriginalFlagRow_p
 FlagRows. More...
 
casacore::Vector< casacore::BoolmodifiedFlagRow_p
 
antennaPairMapantennaPairMap_p
 Mapping members. More...
 
subIntegrationMapsubIntegrationMap_p
 
polarizationMappolarizationMap_p
 
polarizationIndexMappolarizationIndexMap_p
 
antennaPointingMapantennaPointingMap_p
 
scanStartStopMapscanStartStopMap_p
 
lambdaMaplambdaMap_p
 
bool mapAntennaPairs_p
 
bool mapSubIntegrations_p
 
bool mapPolarizations_p
 
bool mapAntennaPointing_p
 
bool mapScanStartStop_p
 
bool mapScanStartStopFlagged_p
 
bool stats_p
 Stats members. More...
 
casacore::uLong cubeAccessCounter_p
 
double cubeAccessTime_p
 
casacore::uLong cubeAccessCounterTotal_p
 
double cubeAccessTimeTotal_p
 
bool profiling_p
 Profiling. More...
 

Detailed Description

Flag casacore::Data Handler class definition.

Definition at line 403 of file FlagCalTableHandler.h.

Constructor & Destructor Documentation

casa::FlagCalTableHandler::FlagCalTableHandler ( 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.

casa::FlagCalTableHandler::~FlagCalTableHandler ( )

Default destructor.

Member Function Documentation

bool casa::FlagCalTableHandler::checkIfColumnExists ( casacore::String  column)
virtual

Check if a given column is available in the cal table.

Reimplemented from casa::FlagDataHandler.

bool casa::FlagCalTableHandler::close ( )
virtual

Close CalTable.

Reimplemented from casa::FlagDataHandler.

bool casa::FlagCalTableHandler::flushFlags ( )
virtual

Write flag cube into MS.

Reimplemented from casa::FlagDataHandler.

bool casa::FlagCalTableHandler::generateIterator ( )
virtual

Generate CalIter.

Reimplemented from casa::FlagDataHandler.

void casa::FlagCalTableHandler::generateScanStartStopMap ( )
privatevirtual

Mapping functions.

Reimplemented from casa::FlagDataHandler.

casacore::Block<casacore::String> casa::FlagCalTableHandler::getSortColumns ( casacore::Block< casacore::Int intCols)
private

Convenient private methods for compatibility with casacore::MS-like interface.

casacore::String casa::FlagCalTableHandler::getTableName ( )
virtual

Provide table name (for flag version)

Reimplemented from casa::FlagDataHandler.

bool casa::FlagCalTableHandler::nextBuffer ( )
virtual

Move to next buffer.

Reimplemented from casa::FlagDataHandler.

bool casa::FlagCalTableHandler::nextChunk ( )
virtual

Move to next chunk.

Reimplemented from casa::FlagDataHandler.

bool casa::FlagCalTableHandler::open ( )
virtual

Open CalTable.

Reimplemented from casa::FlagDataHandler.

bool casa::FlagCalTableHandler::parseExpression ( casacore::MSSelection parser)
virtual

Parse casacore::MSSelection expression.

Reimplemented from casa::FlagDataHandler.

bool casa::FlagCalTableHandler::selectData ( )
virtual

Generate selected CalTable.

Reimplemented from casa::FlagDataHandler.

bool casa::FlagCalTableHandler::summarySignal ( )
virtual

Signal true when a progress summary has to be printed.

Reimplemented from casa::FlagDataHandler.

Member Data Documentation

CTBuffer* casa::FlagCalTableHandler::calBuffer_p
private

Definition at line 463 of file FlagCalTableHandler.h.

CTIter* casa::FlagCalTableHandler::calIter_p
private

Calibration casacore::Table iterator and buffer.

Definition at line 462 of file FlagCalTableHandler.h.

CTInterface* casa::FlagCalTableHandler::calTableInterface_p
private

Definition at line 459 of file FlagCalTableHandler.h.

NewCalTable* casa::FlagCalTableHandler::originalCalTable_p
private

Definition at line 458 of file FlagCalTableHandler.h.

NewCalTable* casa::FlagCalTableHandler::selectedCalTable_p
private

CatTable selection objects.

Definition at line 457 of file FlagCalTableHandler.h.


The documentation for this class was generated from the following file: