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

SolvableVisJonesMBuf: SolvableVisJones calibration main table buffer. More...

#include <SolvableVJMBuf.h>

Inheritance diagram for casa::SolvableVisJonesMBuf:
casa::TimeVarVisJonesMBuf casa::VisJonesMBuf casa::CalMainBuffer casa::BJonesMBuf casa::DJonesMBuf casa::GJonesMBuf casa::TJonesMBuf casa::BJonesPolyMBuf casa::GJonesPolyMBuf casa::TJonesPolyMBuf casa::GJonesSplineMBuf casa::TJonesSplineMBuf

Public Member Functions

 SolvableVisJonesMBuf ()
 Default constructor. More...
 
 SolvableVisJonesMBuf (const casacore::Vector< casacore::Int > &calIndices, const casacore::Block< casacore::Vector< casacore::Int > > &indexValues)
 Construct from a set of calibration buffer indices and their specified values. More...
 
 SolvableVisJonesMBuf (CalIterBase &calIter)
 Construct from a calibration table iterator. More...
 
virtual casacore::Int append (CalTable &calTable)
 Write the current buffer at the end of a specified cal table; returns the number of rows appended. More...
 
virtual casacore::Int nRow ()
 Maximum number of rows in the calibration buffer. More...
 
virtual casacore::Vector
< casacore::Bool > & 
totalSolnOk ()
 casacore::Data field accessors More...
 
virtual casacore::Vector
< casacore::Float > & 
totalFit ()
 
virtual casacore::Vector
< casacore::Float > & 
totalFitWgt ()
 
virtual casacore::Array
< casacore::Bool > & 
solnOk ()
 
virtual casacore::Array
< casacore::Float > & 
fit ()
 
virtual casacore::Array
< casacore::Float > & 
fitWgt ()
 
virtual casacore::Array
< casacore::Bool > & 
flag ()
 
virtual casacore::Array
< casacore::Float > & 
snr ()
 
- Public Member Functions inherited from casa::TimeVarVisJonesMBuf
 TimeVarVisJonesMBuf ()
 Default constructor. More...
 
 TimeVarVisJonesMBuf (const casacore::Vector< casacore::Int > &calIndices, const casacore::Block< casacore::Vector< casacore::Int > > &indexValues)
 Construct from a set of calibration buffer indices and their specified values. More...
 
 TimeVarVisJonesMBuf (CalIterBase &calIter)
 Construct from a calibration table iterator. More...
 
- Public Member Functions inherited from casa::VisJonesMBuf
 VisJonesMBuf ()
 Default constructor. More...
 
 VisJonesMBuf (const casacore::Vector< casacore::Int > &calIndices, const casacore::Block< casacore::Vector< casacore::Int > > &indexValues)
 Construct from a set of calibration buffer indices and their specified values. More...
 
 VisJonesMBuf (CalIterBase &calIter)
 Construct from a calibration table iterator. More...
 
- Public Member Functions inherited from casa::CalMainBuffer
 CalMainBuffer ()
 Default constructor. More...
 
 CalMainBuffer (const casacore::Vector< casacore::Int > &calIndices, const casacore::Block< casacore::Vector< casacore::Int > > &indexValues)
 Construct from a set of calibration buffer indices and their specified values. More...
 
 CalMainBuffer (CalIterBase &calIter)
 Construct from a calibration table iterator. More...
 
virtual ~CalMainBuffer ()
 Default destructor. More...
 
virtual void synchronize ()
 Synchronize the buffer (if attached to an iterator) More...
 
virtual void fillCache ()
 Force an explicit read to cache for all columns (if attached to an iterator) More...
 
virtual CalDescBuffercalDescBuffer ()
 Accessors for the contained cal_desc and cal_history buffers. More...
 
virtual CalHistoryBuffercalHistoryBuffer ()
 
virtual casacore::Vector
< casacore::MEpoch > & 
timeMeas ()
 casacore::Data field accessors More...
 
virtual casacore::Vector
< casacore::Quantity > & 
timeEPQuant ()
 
virtual casacore::Vector
< casacore::Quantity > & 
intervalQuant ()
 
virtual casacore::Vector
< casacore::Int > & 
antenna1 ()
 
virtual casacore::Vector
< casacore::Int > & 
feed1 ()
 
virtual casacore::Vector
< casacore::Int > & 
fieldId ()
 
virtual casacore::Vector
< casacore::Int > & 
arrayId ()
 
virtual casacore::Vector
< casacore::Int > & 
obsId ()
 
virtual casacore::Vector
< casacore::Int > & 
scanNo ()
 
virtual casacore::Vector
< casacore::Int > & 
processorId ()
 
virtual casacore::Vector
< casacore::Int > & 
stateId ()
 
virtual casacore::Vector
< casacore::Int > & 
phaseId ()
 
virtual casacore::Vector
< casacore::Int > & 
pulsarBin ()
 
virtual casacore::Vector
< casacore::Int > & 
pulsarGateId ()
 
virtual casacore::Vector
< casacore::Int > & 
freqGrp ()
 
virtual casacore::Vector
< casacore::String > & 
freqGrpName ()
 
virtual casacore::Vector
< casacore::String > & 
fieldName ()
 
virtual casacore::Vector
< casacore::String > & 
fieldCode ()
 
virtual casacore::Vector
< casacore::String > & 
sourceName ()
 
virtual casacore::Vector
< casacore::String > & 
sourceCode ()
 
virtual casacore::Vector
< casacore::Int > & 
calGrp ()
 
virtual casacore::Array
< casacore::Complex > & 
gain ()
 
virtual casacore::Array
< casacore::Int > & 
refAnt ()
 
virtual casacore::Array
< casacore::Int > & 
refFeed ()
 
virtual casacore::Array
< casacore::Int > & 
refReceptor ()
 
virtual casacore::Array
< casacore::MFrequency > & 
refFreqMeas ()
 
virtual casacore::Vector
< casacore::Int > & 
measFreqRef ()
 
virtual casacore::Array
< casacore::MDirection > & 
refDirMeas ()
 
virtual casacore::Vector
< casacore::Int > & 
measDirRef ()
 
virtual casacore::Vector
< casacore::Int > & 
calDescId ()
 
virtual casacore::Vector
< casacore::Int > & 
calHistoryId ()
 
virtual casacore::Vector
< casacore::Int > & 
asVecInt (const MSCalEnums::colDef &calEnum)
 Generic access to integer columns by MSCalEnums enumeration. More...
 
virtual casacore::Vector
< casacore::String > & 
asVecString (const MSCalEnums::colDef &calEnum)
 Generic access to string columns by MSCalEnums enumeration. More...
 
virtual casacore::Vector
< casacore::Int
matchAntenna1 (const casacore::Int &antennaId)
 Find the matching rows for a given antenna1 id. More...
 
virtual casacore::Vector
< casacore::Int
matchAntenna1AndFieldId (const casacore::Int &antennaId, const casacore::Int &fldId)
 Find the matching rows for a given antenna1 id. More...
 
virtual casacore::Vector
< casacore::Int
matchAntenna1AndFreqGrp (const casacore::Int &antennaId, const casacore::String &frqGrpName)
 Find the matching rows for a given antenna1 id. More...
 

Protected Member Functions

virtual SolvableVisJonesMColnewCalMainCol (CalTable &calTable)
 Factory method to create a columns accessor object of the appropriate type. More...
 
virtual SolvableVisJonesMColcalMainCol ()
 Calibration table columns accessor. More...
 
virtual void invalidate ()
 Invalidate the current cache. More...
 
virtual void fillAttributes (const casacore::Vector< casacore::Int > &, const VisBuffer &)
 Fill the cal buffer attribute columns in an empty cal buffer, after the cal indices have been set using fillIndices(). More...
 
virtual void fillAttributes (const casacore::Vector< casacore::Int > &calIndices)
 Set default attribute values. More...
 
- Protected Member Functions inherited from casa::CalMainBuffer
casacore::Bool connectedToIter ()
 Is the buffer connected to an underlying iterator ? More...
 
virtual void fillIndices (const casacore::Vector< casacore::Int > &calIndices, const VisBuffer &vb)
 Span an empty cal buffer by taking all permutations of the values of a specified set of cal indices, specified as enums from class MSCalEnums: More...
 
virtual void fillIndices (const casacore::Vector< casacore::Int > &calIndices, const casacore::Block< casacore::Vector< casacore::Int > > &indexValues)
 Define the index values directly. More...
 
casacore::Bool excluded (const MSCalEnums::colDef &calEnum, const casacore::Vector< casacore::Int > &excludeIndices)
 Utility function to test for membership in a list of calibration enums. More...
 

Private Attributes

casacore::Vector< casacore::BooltotalSolnOk_p
 Buffer fields. More...
 
casacore::Vector< casacore::FloattotalFit_p
 
casacore::Vector< casacore::FloattotalFitWgt_p
 
casacore::Array< casacore::BoolsolnOk_p
 
casacore::Array< casacore::Floatfit_p
 
casacore::Array< casacore::FloatfitWgt_p
 
casacore::Array< casacore::Boolflag_p
 
casacore::Array< casacore::Floatsnr_p
 
casacore::Bool totalSolnOkOK_p
 Buffer field status flags. More...
 
casacore::Bool totalFitOK_p
 
casacore::Bool totalFitWgtOK_p
 
casacore::Bool solnOkOK_p
 
casacore::Bool fitOK_p
 
casacore::Bool fitWgtOK_p
 
casacore::Bool flagOK_p
 
casacore::Bool snrOK_p
 

Detailed Description

SolvableVisJonesMBuf: SolvableVisJones calibration main table buffer.

Intended use:

Public interface

Prerequisite

Etymology

From "solvable visibility Jones matrix", "cal main table" and "buffer"

Synopsis

The SolvableVisJonesMBuf class holds a buffer, optionally connected to a SolvableVisJones calibration main table iterator (of base type CalIterBase). Specializations for different solvable Jones matrix types are provided through inheritance.

Example

Motivation

Encapsulate SolvableVisJones calibration main table data buffers.

Definition at line 75 of file SolvableVJMBuf.h.

Constructor & Destructor Documentation

casa::SolvableVisJonesMBuf::SolvableVisJonesMBuf ( )

Default constructor.

No connection to an underlying calibration table iterator in this case.

casa::SolvableVisJonesMBuf::SolvableVisJonesMBuf ( const casacore::Vector< casacore::Int > &  calIndices,
const casacore::Block< casacore::Vector< casacore::Int > > &  indexValues 
)

Construct from a set of calibration buffer indices and their specified values.

Non-index columns will be set to default values, and there is no connection to an underlying calibration table iterator in this case.

casa::SolvableVisJonesMBuf::SolvableVisJonesMBuf ( CalIterBase calIter)

Construct from a calibration table iterator.

The calibration buffer will remain synchronized with the iterator.

Member Function Documentation

virtual casacore::Int casa::SolvableVisJonesMBuf::append ( CalTable calTable)
virtual

Write the current buffer at the end of a specified cal table; returns the number of rows appended.

Reimplemented from casa::CalMainBuffer.

Reimplemented in casa::GJonesSplineMBuf, casa::TJonesSplineMBuf, casa::BJonesPolyMBuf, casa::GJonesPolyMBuf, and casa::TJonesPolyMBuf.

virtual SolvableVisJonesMCol* casa::SolvableVisJonesMBuf::calMainCol ( )
inlineprotectedvirtual

Calibration table columns accessor.

Reimplemented from casa::CalMainBuffer.

Reimplemented in casa::GJonesSplineMBuf, casa::TJonesSplineMBuf, casa::BJonesPolyMBuf, casa::GJonesPolyMBuf, and casa::TJonesPolyMBuf.

Definition at line 117 of file SolvableVJMBuf.h.

References casa::CalMainBuffer::calMainCol().

virtual void casa::SolvableVisJonesMBuf::fillAttributes ( const casacore::Vector< casacore::Int > &  ,
const VisBuffer  
)
inlineprotectedvirtual

Fill the cal buffer attribute columns in an empty cal buffer, after the cal indices have been set using fillIndices().

The cal indices, specified as enums from class MSCalEnums, are excluded as non-attribute columns

Use a visibility buffer to define the attribute values (NYI)

Reimplemented from casa::CalMainBuffer.

Reimplemented in casa::GJonesSplineMBuf, casa::TJonesSplineMBuf, casa::BJonesPolyMBuf, casa::GJonesPolyMBuf, and casa::TJonesPolyMBuf.

Definition at line 130 of file SolvableVJMBuf.h.

virtual void casa::SolvableVisJonesMBuf::fillAttributes ( const casacore::Vector< casacore::Int > &  calIndices)
protectedvirtual

Set default attribute values.

Reimplemented from casa::CalMainBuffer.

Reimplemented in casa::GJonesSplineMBuf, casa::TJonesSplineMBuf, casa::BJonesPolyMBuf, casa::GJonesPolyMBuf, and casa::TJonesPolyMBuf.

virtual casacore::Array<casacore::Float>& casa::SolvableVisJonesMBuf::fit ( )
virtual
virtual casacore::Array<casacore::Float>& casa::SolvableVisJonesMBuf::fitWgt ( )
virtual
virtual casacore::Array<casacore::Bool>& casa::SolvableVisJonesMBuf::flag ( )
virtual
virtual void casa::SolvableVisJonesMBuf::invalidate ( )
protectedvirtual

Invalidate the current cache.

Reimplemented from casa::CalMainBuffer.

Reimplemented in casa::GJonesSplineMBuf, casa::TJonesSplineMBuf, casa::BJonesPolyMBuf, casa::GJonesPolyMBuf, and casa::TJonesPolyMBuf.

virtual SolvableVisJonesMCol* casa::SolvableVisJonesMBuf::newCalMainCol ( CalTable calTable)
inlineprotectedvirtual

Factory method to create a columns accessor object of the appropriate type.

Reimplemented from casa::CalMainBuffer.

Reimplemented in casa::GJonesSplineMBuf, casa::TJonesSplineMBuf, casa::BJonesPolyMBuf, casa::GJonesPolyMBuf, and casa::TJonesPolyMBuf.

Definition at line 112 of file SolvableVJMBuf.h.

virtual casacore::Int casa::SolvableVisJonesMBuf::nRow ( )
virtual

Maximum number of rows in the calibration buffer.

Reimplemented from casa::CalMainBuffer.

Reimplemented in casa::GJonesSplineMBuf, casa::TJonesSplineMBuf, casa::BJonesPolyMBuf, casa::GJonesPolyMBuf, and casa::TJonesPolyMBuf.

virtual casacore::Array<casacore::Float>& casa::SolvableVisJonesMBuf::snr ( )
virtual
virtual casacore::Array<casacore::Bool>& casa::SolvableVisJonesMBuf::solnOk ( )
virtual
virtual casacore::Vector<casacore::Float>& casa::SolvableVisJonesMBuf::totalFit ( )
virtual
virtual casacore::Vector<casacore::Float>& casa::SolvableVisJonesMBuf::totalFitWgt ( )
virtual
virtual casacore::Vector<casacore::Bool>& casa::SolvableVisJonesMBuf::totalSolnOk ( )
virtual

casacore::Data field accessors

Member Data Documentation

casacore::Array<casacore::Float> casa::SolvableVisJonesMBuf::fit_p
private

Definition at line 143 of file SolvableVJMBuf.h.

casacore::Bool casa::SolvableVisJonesMBuf::fitOK_p
private

Definition at line 153 of file SolvableVJMBuf.h.

casacore::Array<casacore::Float> casa::SolvableVisJonesMBuf::fitWgt_p
private

Definition at line 144 of file SolvableVJMBuf.h.

casacore::Bool casa::SolvableVisJonesMBuf::fitWgtOK_p
private

Definition at line 154 of file SolvableVJMBuf.h.

casacore::Array<casacore::Bool> casa::SolvableVisJonesMBuf::flag_p
private

Definition at line 145 of file SolvableVJMBuf.h.

casacore::Bool casa::SolvableVisJonesMBuf::flagOK_p
private

Definition at line 155 of file SolvableVJMBuf.h.

casacore::Array<casacore::Float> casa::SolvableVisJonesMBuf::snr_p
private

Definition at line 146 of file SolvableVJMBuf.h.

casacore::Bool casa::SolvableVisJonesMBuf::snrOK_p
private

Definition at line 156 of file SolvableVJMBuf.h.

casacore::Array<casacore::Bool> casa::SolvableVisJonesMBuf::solnOk_p
private

Definition at line 142 of file SolvableVJMBuf.h.

casacore::Bool casa::SolvableVisJonesMBuf::solnOkOK_p
private

Definition at line 152 of file SolvableVJMBuf.h.

casacore::Vector<casacore::Float> casa::SolvableVisJonesMBuf::totalFit_p
private

Definition at line 140 of file SolvableVJMBuf.h.

casacore::Bool casa::SolvableVisJonesMBuf::totalFitOK_p
private

Definition at line 150 of file SolvableVJMBuf.h.

casacore::Vector<casacore::Float> casa::SolvableVisJonesMBuf::totalFitWgt_p
private

Definition at line 141 of file SolvableVJMBuf.h.

casacore::Bool casa::SolvableVisJonesMBuf::totalFitWgtOK_p
private

Definition at line 151 of file SolvableVJMBuf.h.

casacore::Vector<casacore::Bool> casa::SolvableVisJonesMBuf::totalSolnOk_p
private

Buffer fields.

Definition at line 139 of file SolvableVJMBuf.h.

casacore::Bool casa::SolvableVisJonesMBuf::totalSolnOkOK_p
private

Buffer field status flags.

Definition at line 149 of file SolvableVJMBuf.h.


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