BJonesMBuf.h

Classes

BJonesMBuf -- BJonesMBuf: BJones calibration main table buffer (full description)
BJonesPolyMBuf -- BJonesPolyMBuf: BJonesPoly calibration main table buffer (full description)

class BJonesMBuf : public SolvableVisJonesMBuf

Interface

Public Members
BJonesMBuf()
BJonesMBuf (const Vector<Int>& calIndices, const Block<Vector<Int> >& indexValues)
BJonesMBuf (CalIterBase& calIter)

Description

Prerequisite

Etymology

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

Synopsis

The BJonesMBuf class holds a buffer, optionally connected to a BJones calibration main table iterator (of base type CalIterBase). The BJones matrix contains bandpass correction terms.

Example


 

Motivation

Encapsulate BJones calibration main table data buffers.

To Do

Member Description

BJonesMBuf()

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

BJonesMBuf (const Vector<Int>& calIndices, const Block<Vector<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.

BJonesMBuf (CalIterBase& calIter)

Construct from a calibration table iterator. The calibration buffer will remain synchronized with the iterator.


class BJonesPolyMBuf : public BJonesMBuf

Interface

BJonesPolyMBuf()
BJonesPolyMBuf (const Vector<Int>& calIndices, const Block<Vector<Int> >& indexValues)
BJonesPolyMBuf (CalIterBase& calIter)
virtual Int append (CalTable& calTable)
virtual Int nRow()
virtual Bool putAntGain (const Int& antennaId, const String& sFreqGrpName, const String& sPolyType, const Complex& sScaleFactor, const Vector<Double>& sValidDomain, const Int& sNPolyAmp, const Int& sNPolyPhase, const Vector<Double>& sPolyCoeffAmp, const Vector<Double>& sPolyCoeffPhase, const String& sPhaseUnits, const Complex& sSideBandRef, const Vector& sRefFreq, const Int& sRefAnt)
Vector<String>& polyType()
Vector<String>& polyMode()
Vector<Complex>& scaleFactor()
Array<Double>& validDomain()
Vector<Int>& nPolyAmp()
Vector<Int>& nPolyPhase()
Array<Double>& polyCoeffAmp()
Array<Double>& polyCoeffPhase()
Vector<String>& phaseUnits()
Vector<Complex>& sideBandRef()
Protected Members
virtual BJonesPolyMCol* newCalMainCol (CalTable& calTable)
virtual BJonesPolyMCol* calMainCol()
virtual void invalidate()
virtual void fillAttributes(const Vector<Int>& calIndices, const VisBuffer& vb)
virtual void fillAttributes(const Vector<Int>& calIndices)

Description

Prerequisite

Etymology

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

Synopsis

The BJonesPolyMBuf class holds a buffer, optionally connected to a BJonesPoly calibration main table iterator (of base type CalIterBase). The BJonesPoly matrix contains bandpass correction terms.

Example


 

Motivation

Encapsulate BJonesPoly calibration main table data buffers.

To Do

Member Description

BJonesPolyMBuf()

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

BJonesPolyMBuf (const Vector<Int>& calIndices, const Block<Vector<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.

BJonesPolyMBuf (CalIterBase& calIter)

Construct from a calibration table iterator. The calibration buffer will remain synchronized with the iterator.

virtual Int append (CalTable& calTable)

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

virtual Int nRow()

Maximum number of rows in the calibration buffer

virtual Bool putAntGain (const Int& antennaId, const String& sFreqGrpName, const String& sPolyType, const Complex& sScaleFactor, const Vector<Double>& sValidDomain, const Int& sNPolyAmp, const Int& sNPolyPhase, const Vector<Double>& sPolyCoeffAmp, const Vector<Double>& sPolyCoeffPhase, const String& sPhaseUnits, const Complex& sSideBandRef, const Vector& sRefFreq, const Int& sRefAnt)

Update the parametrized solution for a given antenna id.

Vector<String>& polyType()

Data field accessors

Vector<String>& polyMode()

Vector<Complex>& scaleFactor()

Array<Double>& validDomain()

Vector<Int>& nPolyAmp()

Vector<Int>& nPolyPhase()

Array<Double>& polyCoeffAmp()

Array<Double>& polyCoeffPhase()

Vector<String>& phaseUnits()

Vector<Complex>& sideBandRef()

virtual BJonesPolyMCol* newCalMainCol (CalTable& calTable)

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

virtual BJonesPolyMCol* calMainCol()

Access to the columns accessor object

virtual void invalidate()

Invalidate the current cache.

virtual void fillAttributes(const Vector<Int>& calIndices, const VisBuffer& vb)

Fill the BJonesPoly 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)

virtual void fillAttributes(const Vector<Int>& calIndices)

Set default attribute values