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::GJonesPolyMBuf Class Reference

GJonesPolyMBuf: GJonesPoly calibration main table buffer. More...

#include <GJonesMBuf.h>

Inheritance diagram for casa::GJonesPolyMBuf:
casa::GJonesMBuf casa::SolvableVisJonesMBuf casa::TimeVarVisJonesMBuf casa::VisJonesMBuf casa::CalMainBuffer casa::GJonesSplineMBuf

Public Member Functions

 GJonesPolyMBuf ()
 Default constructor. More...
 
 GJonesPolyMBuf (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...
 
 GJonesPolyMBuf (CalIterBase &calIter)
 Construct from a calibration table iterator. More...
 
virtual void invalidate ()
 Invalidate the current calibration buffer. More...
 
virtual casacore::Int append (CalTable &calTable)
 Write the current buffer at the end of a specified cal table. More...
 
virtual casacore::Int nRow ()
 Maximum number of rows in the calibration buffer. More...
 
virtual casacore::Bool fillMatchingRows (const casacore::Vector< casacore::Int > &matchingRows, const casacore::String &sFreqGrpName, const casacore::String &sPolyType, const casacore::String &sPolyMode, const casacore::Complex &sScaleFactor, const casacore::Int &sNPolyAmp, const casacore::Int &sNPolyPhase, const casacore::Vector< casacore::Double > &sPolyCoeffAmp, const casacore::Vector< casacore::Double > &sPolyCoeffPhase, const casacore::String &sPhaseUnits, const casacore::MFrequency &sRefFreq, const casacore::Int &sRefAnt)
 Update the parametrized solution in each of a set of buffer rows. More...
 
virtual casacore::Vector
< casacore::String > & 
polyType ()
 casacore::Data field accessors More...
 
virtual casacore::Vector
< casacore::String > & 
polyMode ()
 
virtual casacore::Vector
< casacore::Complex > & 
scaleFactor ()
 
virtual casacore::Vector
< casacore::Int > & 
nPolyAmp ()
 
virtual casacore::Vector
< casacore::Int > & 
nPolyPhase ()
 
virtual casacore::Array
< casacore::Double > & 
polyCoeffAmp ()
 
virtual casacore::Array
< casacore::Double > & 
polyCoeffPhase ()
 
virtual casacore::Vector
< casacore::String > & 
phaseUnits ()
 
- Public Member Functions inherited from casa::GJonesMBuf
 GJonesMBuf ()
 Default constructor. More...
 
 GJonesMBuf (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...
 
 GJonesMBuf (CalIterBase &calIter)
 Construct from a calibration table iterator. More...
 
virtual casacore::Bool fillMatchingRows (const casacore::Vector< casacore::Int > &matchingRows, const casacore::String &sFreqGrpName, const casacore::Complex &sGain, const casacore::MFrequency &sRefFreq, const casacore::Int &sRefAnt)
 Update the calibration solution in each of a set of buffer rows. More...
 
- Public Member Functions inherited from casa::SolvableVisJonesMBuf
 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::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 GJonesPolyMColnewCalMainCol (CalTable &calTable)
 Factory method to create a columns accessor object of the appropriate type. More...
 
virtual GJonesPolyMColcalMainCol ()
 Access to the columns accessor object. More...
 
virtual void fillAttributes (const casacore::Vector< casacore::Int > &, const VisBuffer &)
 Fill the GJonesPoly cal buffer attribute columns in an empty cal buffer, to extend the inherited method fillAttributes. 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::String
polyType_p
 Buffer fields. More...
 
casacore::Vector
< casacore::String
polyMode_p
 
casacore::Vector
< casacore::Complex > 
scaleFactor_p
 
casacore::Vector< casacore::IntnPolyAmp_p
 
casacore::Vector< casacore::IntnPolyPhase_p
 
casacore::Array< casacore::DoublepolyCoeffAmp_p
 
casacore::Array< casacore::DoublepolyCoeffPhase_p
 
casacore::Vector
< casacore::String
phaseUnits_p
 
casacore::Bool polyTypeOK_p
 Buffer field status flags. More...
 
casacore::Bool polyModeOK_p
 
casacore::Bool scaleFactorOK_p
 
casacore::Bool nPolyAmpOK_p
 
casacore::Bool nPolyPhaseOK_p
 
casacore::Bool polyCoeffAmpOK_p
 
casacore::Bool polyCoeffPhaseOK_p
 
casacore::Bool phaseUnitsOK_p
 

Detailed Description

GJonesPolyMBuf: GJonesPoly calibration main table buffer.

Intended use:

Public interface

Prerequisite

Etymology

From "GJonesPoly matrix", "cal main table" and "buffer"

Synopsis

The GJonesPolyMBuf class holds a buffer, optionally connected to a GJonesPoly calibration main table iterator (of base type CalIterBase). The GJonesPoly matrix contains electronic gains expressed as polynomials over time.

Example

Motivation

Encapsulate GJonesPoly calibration main table data buffers.

Definition at line 77 of file GJonesMBuf.h.

Constructor & Destructor Documentation

casa::GJonesPolyMBuf::GJonesPolyMBuf ( )

Default constructor.

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

casa::GJonesPolyMBuf::GJonesPolyMBuf ( 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::GJonesPolyMBuf::GJonesPolyMBuf ( CalIterBase calIter)

Construct from a calibration table iterator.

The calibration buffer will remain synchronized with the iterator.

Member Function Documentation

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

Write the current buffer at the end of a specified cal table.

Reimplemented from casa::SolvableVisJonesMBuf.

Reimplemented in casa::GJonesSplineMBuf.

virtual GJonesPolyMCol* casa::GJonesPolyMBuf::calMainCol ( )
inlineprotectedvirtual

Access to the columns accessor object.

Reimplemented from casa::SolvableVisJonesMBuf.

Reimplemented in casa::GJonesSplineMBuf.

Definition at line 135 of file GJonesMBuf.h.

References casa::CalMainBuffer::calMainCol().

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

Fill the GJonesPoly cal buffer attribute columns in an empty cal buffer, to extend the inherited method fillAttributes.

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::SolvableVisJonesMBuf.

Reimplemented in casa::GJonesSplineMBuf.

Definition at line 145 of file GJonesMBuf.h.

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

Set default attribute values.

Reimplemented from casa::SolvableVisJonesMBuf.

Reimplemented in casa::GJonesSplineMBuf.

virtual casacore::Bool casa::GJonesPolyMBuf::fillMatchingRows ( const casacore::Vector< casacore::Int > &  matchingRows,
const casacore::String sFreqGrpName,
const casacore::String sPolyType,
const casacore::String sPolyMode,
const casacore::Complex &  sScaleFactor,
const casacore::Int sNPolyAmp,
const casacore::Int sNPolyPhase,
const casacore::Vector< casacore::Double > &  sPolyCoeffAmp,
const casacore::Vector< casacore::Double > &  sPolyCoeffPhase,
const casacore::String sPhaseUnits,
const casacore::MFrequency sRefFreq,
const casacore::Int sRefAnt 
)
virtual

Update the parametrized solution in each of a set of buffer rows.

virtual void casa::GJonesPolyMBuf::invalidate ( )
virtual

Invalidate the current calibration buffer.

This signals that a re-read is required as the iterator has advanced

Reimplemented from casa::SolvableVisJonesMBuf.

Reimplemented in casa::GJonesSplineMBuf.

virtual GJonesPolyMCol* casa::GJonesPolyMBuf::newCalMainCol ( CalTable calTable)
inlineprotectedvirtual

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

Reimplemented from casa::SolvableVisJonesMBuf.

Reimplemented in casa::GJonesSplineMBuf.

Definition at line 131 of file GJonesMBuf.h.

virtual casacore::Vector<casacore::Int>& casa::GJonesPolyMBuf::nPolyAmp ( )
virtual
virtual casacore::Vector<casacore::Int>& casa::GJonesPolyMBuf::nPolyPhase ( )
virtual
virtual casacore::Int casa::GJonesPolyMBuf::nRow ( )
virtual

Maximum number of rows in the calibration buffer.

Reimplemented from casa::SolvableVisJonesMBuf.

Reimplemented in casa::GJonesSplineMBuf.

virtual casacore::Vector<casacore::String>& casa::GJonesPolyMBuf::phaseUnits ( )
virtual
virtual casacore::Array<casacore::Double>& casa::GJonesPolyMBuf::polyCoeffAmp ( )
virtual
virtual casacore::Array<casacore::Double>& casa::GJonesPolyMBuf::polyCoeffPhase ( )
virtual
virtual casacore::Vector<casacore::String>& casa::GJonesPolyMBuf::polyMode ( )
virtual
virtual casacore::Vector<casacore::String>& casa::GJonesPolyMBuf::polyType ( )
virtual

casacore::Data field accessors

virtual casacore::Vector<casacore::Complex>& casa::GJonesPolyMBuf::scaleFactor ( )
virtual

Member Data Documentation

casacore::Vector<casacore::Int> casa::GJonesPolyMBuf::nPolyAmp_p
private

Definition at line 157 of file GJonesMBuf.h.

casacore::Bool casa::GJonesPolyMBuf::nPolyAmpOK_p
private

Definition at line 167 of file GJonesMBuf.h.

casacore::Vector<casacore::Int> casa::GJonesPolyMBuf::nPolyPhase_p
private

Definition at line 158 of file GJonesMBuf.h.

casacore::Bool casa::GJonesPolyMBuf::nPolyPhaseOK_p
private

Definition at line 168 of file GJonesMBuf.h.

casacore::Vector<casacore::String> casa::GJonesPolyMBuf::phaseUnits_p
private

Definition at line 161 of file GJonesMBuf.h.

casacore::Bool casa::GJonesPolyMBuf::phaseUnitsOK_p
private

Definition at line 171 of file GJonesMBuf.h.

casacore::Array<casacore::Double> casa::GJonesPolyMBuf::polyCoeffAmp_p
private

Definition at line 159 of file GJonesMBuf.h.

casacore::Bool casa::GJonesPolyMBuf::polyCoeffAmpOK_p
private

Definition at line 169 of file GJonesMBuf.h.

casacore::Array<casacore::Double> casa::GJonesPolyMBuf::polyCoeffPhase_p
private

Definition at line 160 of file GJonesMBuf.h.

casacore::Bool casa::GJonesPolyMBuf::polyCoeffPhaseOK_p
private

Definition at line 170 of file GJonesMBuf.h.

casacore::Vector<casacore::String> casa::GJonesPolyMBuf::polyMode_p
private

Definition at line 155 of file GJonesMBuf.h.

casacore::Bool casa::GJonesPolyMBuf::polyModeOK_p
private

Definition at line 165 of file GJonesMBuf.h.

casacore::Vector<casacore::String> casa::GJonesPolyMBuf::polyType_p
private

Buffer fields.

Definition at line 154 of file GJonesMBuf.h.

casacore::Bool casa::GJonesPolyMBuf::polyTypeOK_p
private

Buffer field status flags.

Definition at line 164 of file GJonesMBuf.h.

casacore::Vector<casacore::Complex> casa::GJonesPolyMBuf::scaleFactor_p
private

Definition at line 156 of file GJonesMBuf.h.

casacore::Bool casa::GJonesPolyMBuf::scaleFactorOK_p
private

Definition at line 166 of file GJonesMBuf.h.


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