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

#include <BPoly.h>

Inheritance diagram for casa::BJonesPoly:
casa::BJones 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

 BJonesPoly (VisSet &vs)
 Construct from a visibility data set.
virtual ~BJonesPoly ()
 Destructor.
virtual Type type ()
 Return the type enum.
virtual String typeName ()
 Return type name as string.
virtual String longTypeName ()
virtual Bool useGenericGatherForSolve ()
 BPOLY gathers generically...
virtual Bool useGenericSolveOne ()
 ...then solves for itself per solution:
virtual Jones::JonesType jonesType ()
 Type of Jones matrix according to nPar()
virtual void setSolve (const Record &solvepar)
virtual void setApply (const Record &applypar)
virtual void selfSolveOne (VisBuffGroupAcc &vbga)
 Solve (old self-directed gather and solve) virtual void selfGatherAndSolve(VisSet& vs, VisEquation& ve); (new per-solution self-solving inside generic gather)

Protected Member Functions

virtual Int nPar ()
 BPOLY has two trivial Complex parameter (formed at fill)
virtual void calcPar ()
 Calculate current parameters.
virtual void loadMemCalTable (String applyTable, String field)

Private Member Functions

Bool maskedChannel (const Int &chan, const Int &nChan)
 Determine if a given channel is masked.
void updateCalTable (const String &freqGrpName, const Vector< Int > &antennaId, const Vector< String > &polyType, const Vector< Complex > &scaleFactor, const Matrix< Double > &validDomain, const Matrix< Double > &polyCoeffAmp, const Matrix< Double > &polyCoeffPhase, const Vector< String > &phaseUnits, const Vector< Complex > &sideBandRef, const Vector< MFrequency > &refFreq, const Vector< Int > &refAnt)
 Update the output calibration table to include the current solution parameters.
Double getChebVal (const Vector< Double > &coeff, const Double &xinit, const Double &xfinal, const Double &x)
 Compute a Chebyshev polynomial using the CLIC library.
Double meanFrequency (const Vector< Int > &spwids)
 Load bandpass parameters from a calibration table and pre-compute the corrections (and their inverse) void load (const String& applyTable);.
String freqGrpName (const Int &spwId)
 Utility function to return the frequency group name for a given spw.
Vector< IntspwIdsInGroup (const String &freqGrpName)
 Utility function to return the spw id.
Vector< DoublefreqAxis (const Int &spwId)
 Utility function to return the frequency axis for a given spw.
void plotsolve2 (const Vector< Double > &x, const Matrix< Double > &ampdata, const Matrix< Double > &phadata, const Matrix< Double > &wtdata, const Vector< Int > &ant1idx, const Vector< Int > &ant2idx, const Vector< Double > &amperr, Matrix< Double > &ampcoeff, const Vector< Double > &phaerr, Matrix< Double > &phacoeff)

Private Attributes

VisSetvs_p
 The underlying VisSet.
Int degamp_p
 Private variables containing the solver parameters.
Int degphase_p
Bool visnorm_p
Int maskcenter_p
Float maskedge_p
Int maskcenterHalf_p
 Derived solver parameters Center mask half width (in channels)
Float maskedgeFrac_p
 Fractional edge mask.
Double solTimeStamp
 Some meta info.
Int solSpwId
Int solFldId
Vector< IntcalDescId_p
 CalDescId per spw.

Detailed Description

Definition at line 73 of file BPoly.h.


Constructor & Destructor Documentation

Construct from a visibility data set.

virtual casa::BJonesPoly::~BJonesPoly ( ) [inline, virtual]

Destructor.

Definition at line 80 of file BPoly.h.


Member Function Documentation

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

Calculate current parameters.

Reimplemented from casa::SolvableVisCal.

Vector<Double> casa::BJonesPoly::freqAxis ( const Int spwId) [private]

Utility function to return the frequency axis for a given spw.

id.

String casa::BJonesPoly::freqGrpName ( const Int spwId) [private]

Utility function to return the frequency group name for a given spw.

id.

Double casa::BJonesPoly::getChebVal ( const Vector< Double > &  coeff,
const Double xinit,
const Double xfinal,
const Double x 
) [private]

Compute a Chebyshev polynomial using the CLIC library.

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

Type of Jones matrix according to nPar()

Reimplemented from casa::GJones.

Definition at line 95 of file BPoly.h.

References casa::Jones::Diagonal.

virtual void casa::BJonesPoly::loadMemCalTable ( String  applyTable,
String  field 
) [protected, virtual]

Reimplemented from casa::SolvableVisCal.

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

Reimplemented from casa::BJones.

Definition at line 87 of file BPoly.h.

Bool casa::BJonesPoly::maskedChannel ( const Int chan,
const Int nChan 
) [private]

Determine if a given channel is masked.

Double casa::BJonesPoly::meanFrequency ( const Vector< Int > &  spwids) [private]

Load bandpass parameters from a calibration table and pre-compute the corrections (and their inverse) void load (const String& applyTable);.

Utility function to return the bandwidth-weighted average frequency for a set of spectral window id.'s

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

BPOLY has two trivial Complex parameter (formed at fill)

Reimplemented from casa::GJones.

Definition at line 115 of file BPoly.h.

void casa::BJonesPoly::plotsolve2 ( const Vector< Double > &  x,
const Matrix< Double > &  ampdata,
const Matrix< Double > &  phadata,
const Matrix< Double > &  wtdata,
const Vector< Int > &  ant1idx,
const Vector< Int > &  ant2idx,
const Vector< Double > &  amperr,
Matrix< Double > &  ampcoeff,
const Vector< Double > &  phaerr,
Matrix< Double > &  phacoeff 
) [private]
virtual void casa::BJonesPoly::selfSolveOne ( VisBuffGroupAcc vbga) [virtual]

Solve (old self-directed gather and solve) virtual void selfGatherAndSolve(VisSet& vs, VisEquation& ve); (new per-solution self-solving inside generic gather)

Reimplemented from casa::SolvableVisCal.

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

Reimplemented from casa::SolvableVisCal.

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

Reimplemented from casa::BJones.

Vector<Int> casa::BJonesPoly::spwIdsInGroup ( const String freqGrpName) [private]

Utility function to return the spw id.

's in a given freq. group

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

Return the type enum.

Reimplemented from casa::BJones.

Definition at line 83 of file BPoly.h.

References casa::VisCal::B.

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

Return type name as string.

Reimplemented from casa::BJones.

Definition at line 86 of file BPoly.h.

void casa::BJonesPoly::updateCalTable ( const String freqGrpName,
const Vector< Int > &  antennaId,
const Vector< String > &  polyType,
const Vector< Complex > &  scaleFactor,
const Matrix< Double > &  validDomain,
const Matrix< Double > &  polyCoeffAmp,
const Matrix< Double > &  polyCoeffPhase,
const Vector< String > &  phaseUnits,
const Vector< Complex > &  sideBandRef,
const Vector< MFrequency > &  refFreq,
const Vector< Int > &  refAnt 
) [private]

Update the output calibration table to include the current solution parameters.

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

BPOLY gathers generically...

Reimplemented from casa::SolvableVisCal.

Definition at line 90 of file BPoly.h.

References casa::True.

virtual Bool casa::BJonesPoly::useGenericSolveOne ( ) [inline, virtual]

...then solves for itself per solution:

Reimplemented from casa::SolvableVisCal.

Definition at line 92 of file BPoly.h.

References casa::False.


Member Data Documentation

CalDescId per spw.

Definition at line 145 of file BPoly.h.

Private variables containing the solver parameters.

Definition at line 128 of file BPoly.h.

Definition at line 128 of file BPoly.h.

Definition at line 130 of file BPoly.h.

Derived solver parameters Center mask half width (in channels)

Definition at line 135 of file BPoly.h.

Definition at line 131 of file BPoly.h.

Fractional edge mask.

Definition at line 137 of file BPoly.h.

Definition at line 142 of file BPoly.h.

Definition at line 141 of file BPoly.h.

Some meta info.

Definition at line 140 of file BPoly.h.

Definition at line 129 of file BPoly.h.

The underlying VisSet.

Definition at line 125 of file BPoly.h.


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