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

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

#include <FlagMSHandler.h>

Inheritance diagram for casa::FlagMSHandler:
casa::FlagDataHandler

Public Member Functions

 FlagMSHandler (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...
 
 ~FlagMSHandler ()
 Default destructor. More...
 
bool open ()
 Open Measurement Set. More...
 
bool close ()
 Close Measurement Set. More...
 
bool selectData ()
 Generate selected Measurement Set. More...
 
bool parseExpression (casacore::MSSelection &parser)
 Parse casacore::MSSelection expression. More...
 
bool generateIterator ()
 Generate Visibility Iterator. 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 MS (typically for checking existence of CORRECTED_DATA. More...
 
bool summarySignal ()
 Signal true when a progress summary has to be printed. More...
 
bool processorTable ()
 Get the casacore::MS PROCESSOR sub-table. More...
 
bool checkIfSourceModelColumnExists ()
 Check if SOURCE_MODEL column exists (Virtual MODEL column) More...
 
casacore::Cube
< casacore::Complex > & 
weightVisCube ()
 Get a casacore::Float visCube and return a casacore::Complex one. 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...
 
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...
 

Public Attributes

casacore::Cube< casacore::Complex > weight_spectrum_p
 
- 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
 

Private Member Functions

virtual void generateScanStartStopMap ()
 Mapping functions. More...
 
void preSweep ()
 Swap casacore::MS to check what is the maximum RAM memory needed. More...
 
void applyChannelSelection (vi::VisIterImpl2LayerFactory *viFactory)
 Apply channel selection for asyn or normal iterator NOTE: We always have to do this, even if there is no SPW:channel selection. More...
 

Private Attributes

casacore::MeasurementSetselectedMeasurementSet_p
 Measurement set section. More...
 
casacore::MeasurementSetoriginalMeasurementSet_p
 
vi::VisibilityIterator2preAveragingVI_p
 RO Visibility Iterator. More...
 
vi::VisibilityIterator2visibilityIterator_p
 
vi::FrequencySelectionUsingChannelschannelSelector_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
}
 
- 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 36 of file FlagMSHandler.h.

Constructor & Destructor Documentation

casa::FlagMSHandler::FlagMSHandler ( 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::FlagMSHandler::~FlagMSHandler ( )

Default destructor.

Member Function Documentation

void casa::FlagMSHandler::applyChannelSelection ( vi::VisIterImpl2LayerFactory *  viFactory)
private

Apply channel selection for asyn or normal iterator NOTE: We always have to do this, even if there is no SPW:channel selection.

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

Check if a given column is available in the MS (typically for checking existence of CORRECTED_DATA.

Reimplemented from casa::FlagDataHandler.

bool casa::FlagMSHandler::checkIfSourceModelColumnExists ( )
virtual

Check if SOURCE_MODEL column exists (Virtual MODEL column)

Reimplemented from casa::FlagDataHandler.

bool casa::FlagMSHandler::close ( )
virtual

Close Measurement Set.

Reimplemented from casa::FlagDataHandler.

bool casa::FlagMSHandler::flushFlags ( )
virtual

Write flag cube into MS.

Reimplemented from casa::FlagDataHandler.

bool casa::FlagMSHandler::generateIterator ( )
virtual

Generate Visibility Iterator.

Reimplemented from casa::FlagDataHandler.

virtual void casa::FlagMSHandler::generateScanStartStopMap ( )
privatevirtual

Mapping functions.

Reimplemented from casa::FlagDataHandler.

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

Provide table name (for flag version)

Reimplemented from casa::FlagDataHandler.

bool casa::FlagMSHandler::nextBuffer ( )
virtual

Move to next buffer.

Reimplemented from casa::FlagDataHandler.

bool casa::FlagMSHandler::nextChunk ( )
virtual

Move to next chunk.

Reimplemented from casa::FlagDataHandler.

bool casa::FlagMSHandler::open ( )
virtual

Open Measurement Set.

Reimplemented from casa::FlagDataHandler.

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

Parse casacore::MSSelection expression.

Reimplemented from casa::FlagDataHandler.

void casa::FlagMSHandler::preSweep ( )
private

Swap casacore::MS to check what is the maximum RAM memory needed.

bool casa::FlagMSHandler::processorTable ( )

Get the casacore::MS PROCESSOR sub-table.

bool casa::FlagMSHandler::selectData ( )
virtual

Generate selected Measurement Set.

Reimplemented from casa::FlagDataHandler.

bool casa::FlagMSHandler::summarySignal ( )
virtual

Signal true when a progress summary has to be printed.

Reimplemented from casa::FlagDataHandler.

casacore::Cube<casacore::Complex>& casa::FlagMSHandler::weightVisCube ( )

Get a casacore::Float visCube and return a casacore::Complex one.

Member Data Documentation

vi::FrequencySelectionUsingChannels* casa::FlagMSHandler::channelSelector_p
private

Definition at line 113 of file FlagMSHandler.h.

casacore::MeasurementSet* casa::FlagMSHandler::originalMeasurementSet_p
private

Definition at line 108 of file FlagMSHandler.h.

vi::VisibilityIterator2* casa::FlagMSHandler::preAveragingVI_p
private

RO Visibility Iterator.

Definition at line 111 of file FlagMSHandler.h.

casacore::MeasurementSet* casa::FlagMSHandler::selectedMeasurementSet_p
private

Measurement set section.

Definition at line 107 of file FlagMSHandler.h.

vi::VisibilityIterator2* casa::FlagMSHandler::visibilityIterator_p
private

Definition at line 112 of file FlagMSHandler.h.

casacore::Cube<casacore::Complex> casa::FlagMSHandler::weight_spectrum_p

Definition at line 91 of file FlagMSHandler.h.


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