casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
casa::GJonesSpline Class Reference

#include <GSpline.h>

Inheritance diagram for casa::GJonesSpline:
casa::GJones casa::SolvableVisJones casa::SolvableVisMueller casa::VisJones casa::SolvableVisCal casa::VisMueller casa::VisMueller casa::VisCal casa::VisCal casa::VisCal

List of all members.

Public Member Functions

 GJonesSpline (VisSet &vs)
 Construct from a visibility data set.
virtual ~GJonesSpline ()
 Destructor.
virtual Type type ()
 Return the type enum.
virtual String typeName ()
 Return type name as a string.
virtual String longTypeName ()
virtual Bool useGenericGatherForSolve ()
 GSpline gathers/solves for itself.
virtual Jones::JonesType jonesType ()
 Type of Jones matrix according to nPar() TBD:
virtual void setSolve (const Record &solvepar)
virtual void setApply (const Record &applypar)
virtual void selfGatherAndSolve (VisSet &vs, VisEquation &ve)
 Solve.
void setRawPhaseVisSet (VisSet &rawvs_p)
void setPhaseWrapHelp (const Int &numpoi, const Double &phaseWrap)
 Set parameters for phase wrapping resolution.

Protected Member Functions

virtual Int nPar ()
 GSPLINE has one trivial Complex parameter (single pol, for now) TBD:
virtual void calcPar ()
 Calc G pars from spline info.

Private Member Functions

void newCalBuffer (const Vector< Int > &fieldIdKeys, const Vector< Int > &antennaId)
 Create and fill an empty output calibration buffer.
Int getKnots (const Vector< Double > &times, Vector< Double > &knots)
 Compute the number of spline knots required and their location.
virtual void updateCalTable (const Vector< Int > &fieldIdKeys, const Vector< Int > &antennaId, const Vector< String > &freqGrpName, const Vector< String > &polyType, const Vector< String > &polyMode, const Vector< Complex > &scaleFactor, const Matrix< Double > &polyCoeffAmp, const Matrix< Double > &polyCoeffPhase, const Vector< String > &phaseUnits, const Vector< Double > &splineKnotsAmp, const Vector< Double > &splineKnotsPhase, const Vector< MFrequency > &refFreq, const Vector< Int > &refAnt)
 Update the output calibration table.
Double getSplineVal (Double x, Vector< Double > &knots, Vector< Double > &coeff)
 Compute a spline polynomial value.
void fillRawPhaseBuff ()
Double getRawPhase (Int ant1, Int ant2, Double time)
 return the rawphase of
*void plotsolve (const Vector< Double > &x, const Matrix< Double > &yall, const Matrix< Double > &weightall, const Vector< Double > &errall, Matrix< Double > &coeff, Bool phasesoln)
 Plot solutions as compare with data.
Vector< IntfieldIdRange ()
 Return all field id.
void writeAsciiLog (const String &filename, const Matrix< Double > &coeff, const Vector< Double > &rmsFit, Bool phasesoln)
 Logging solution and rms.

Private Attributes

VisSetvs_p
 The underlying VisSet.
Bool solveAmp_p
 Private variables containing the solver parameters.
Bool solvePhase_p
Double splinetime_p
Double cacheTimeValid_p
 Time for which the current calibration cache is valid.
GJonesSplineMBufcalBuffer_p
 Ptr to a calibration buffer associated with the calibration solutions which are to be interpolated and applied to the data.
VisSetrawvs_p
 Parameters for raw phase removal from another spw.
Bool rawPhaseRemoval_p
SimpleOrderedMap< String, InttimeValueMap_p
Matrix< DoublerawPhase_p
Double solTimeStamp_p
 Solution timestamp.
Int numpoint_p
Double phaseWrap_p

Detailed Description

Definition at line 75 of file GSpline.h.


Constructor & Destructor Documentation

Construct from a visibility data set.

virtual casa::GJonesSpline::~GJonesSpline ( ) [virtual]

Destructor.


Member Function Documentation

virtual void casa::GJonesSpline::calcPar ( ) [protected, virtual]

Calc G pars from spline info.

Reimplemented from casa::SolvableVisCal.

Return all field id.

's in the underlying MS

Int casa::GJonesSpline::getKnots ( const Vector< Double > &  times,
Vector< Double > &  knots 
) [private]

Compute the number of spline knots required and their location.

Double casa::GJonesSpline::getRawPhase ( Int  ant1,
Int  ant2,
Double  time 
) [private]

return the rawphase of

Double casa::GJonesSpline::getSplineVal ( Double  x,
Vector< Double > &  knots,
Vector< Double > &  coeff 
) [private]

Compute a spline polynomial value.

virtual Jones::JonesType casa::GJonesSpline::jonesType ( ) [inline, virtual]

Type of Jones matrix according to nPar() TBD:

Reimplemented from casa::GJones.

Definition at line 97 of file GSpline.h.

References casa::Jones::Diagonal.

virtual String casa::GJonesSpline::longTypeName ( ) [inline, virtual]

Reimplemented from casa::GJones.

Definition at line 89 of file GSpline.h.

void casa::GJonesSpline::newCalBuffer ( const Vector< Int > &  fieldIdKeys,
const Vector< Int > &  antennaId 
) [private]

Create and fill an empty output calibration buffer.

virtual Int casa::GJonesSpline::nPar ( ) [inline, protected, virtual]

GSPLINE has one trivial Complex parameter (single pol, for now) TBD:

Reimplemented from casa::GJones.

Definition at line 122 of file GSpline.h.

* void casa::GJonesSpline::plotsolve ( const Vector< Double > &  x,
const Matrix< Double > &  yall,
const Matrix< Double > &  weightall,
const Vector< Double > &  errall,
Matrix< Double > &  coeff,
Bool  phasesoln 
) [private]

Plot solutions as compare with data.

virtual void casa::GJonesSpline::selfGatherAndSolve ( VisSet vs,
VisEquation ve 
) [virtual]

Solve.

Reimplemented from casa::SolvableVisCal.

virtual void casa::GJonesSpline::setApply ( const Record applypar) [virtual]

Reimplemented from casa::SolvableVisCal.

void casa::GJonesSpline::setPhaseWrapHelp ( const Int numpoi,
const Double phaseWrap 
)

Set parameters for phase wrapping resolution.

virtual void casa::GJonesSpline::setSolve ( const Record solvepar) [virtual]

Reimplemented from casa::SolvableVisCal.

virtual Type casa::GJonesSpline::type ( ) [inline, virtual]

Return the type enum.

Reimplemented from casa::GJones.

Definition at line 85 of file GSpline.h.

References casa::VisCal::G.

virtual String casa::GJonesSpline::typeName ( ) [inline, virtual]

Return type name as a string.

Reimplemented from casa::GJones.

Definition at line 88 of file GSpline.h.

virtual void casa::GJonesSpline::updateCalTable ( const Vector< Int > &  fieldIdKeys,
const Vector< Int > &  antennaId,
const Vector< String > &  freqGrpName,
const Vector< String > &  polyType,
const Vector< String > &  polyMode,
const Vector< Complex > &  scaleFactor,
const Matrix< Double > &  polyCoeffAmp,
const Matrix< Double > &  polyCoeffPhase,
const Vector< String > &  phaseUnits,
const Vector< Double > &  splineKnotsAmp,
const Vector< Double > &  splineKnotsPhase,
const Vector< MFrequency > &  refFreq,
const Vector< Int > &  refAnt 
) [private, virtual]

Update the output calibration table.

virtual Bool casa::GJonesSpline::useGenericGatherForSolve ( ) [inline, virtual]

GSpline gathers/solves for itself.

Reimplemented from casa::SolvableVisCal.

Definition at line 93 of file GSpline.h.

References casa::False.

void casa::GJonesSpline::writeAsciiLog ( const String filename,
const Matrix< Double > &  coeff,
const Vector< Double > &  rmsFit,
Bool  phasesoln 
) [private]

Logging solution and rms.


Member Data Documentation

Time for which the current calibration cache is valid.

Definition at line 137 of file GSpline.h.

Ptr to a calibration buffer associated with the calibration solutions which are to be interpolated and applied to the data.

Definition at line 141 of file GSpline.h.

Definition at line 203 of file GSpline.h.

Definition at line 204 of file GSpline.h.

Definition at line 148 of file GSpline.h.

Definition at line 146 of file GSpline.h.

Parameters for raw phase removal from another spw.

Definition at line 145 of file GSpline.h.

Solution timestamp.

Definition at line 151 of file GSpline.h.

Private variables containing the solver parameters.

Definition at line 133 of file GSpline.h.

Definition at line 133 of file GSpline.h.

Definition at line 134 of file GSpline.h.

Definition at line 147 of file GSpline.h.

The underlying VisSet.

Definition at line 130 of file GSpline.h.


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