casa
$Rev:20696$
|
#include <BPoly.h>
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< Int > | spwIdsInGroup (const String &freqGrpName) |
Utility function to return the spw id. | |
Vector< Double > | freqAxis (const Int &spwId) |
Utility function to return the frequency axis for a given spw. | |
void | plotsolve2 (const Vector< Double > &x, const Matrix< Double > &data, const Matrix< Double > &phadata, const Matrix< Double > &wtdata, const Vector< Int > &ant1idx, const Vector< Int > &ant2idx, const Vector< Double > &err, Matrix< Double > &coeff, const Vector< Double > &phaerr, Matrix< Double > &phacoeff) |
Private Attributes | |
VisSet * | vs_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< Int > | calDescId_p |
CalDescId per spw. |
casa::BJonesPoly::BJonesPoly | ( | VisSet & | vs | ) |
Construct from a visibility data set.
virtual casa::BJonesPoly::~BJonesPoly | ( | ) | [inline, virtual] |
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.
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.
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] |
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.
Vector<Int> casa::BJonesPoly::calDescId_p [private] |
Int casa::BJonesPoly::degamp_p [private] |
Int casa::BJonesPoly::degphase_p [private] |
Int casa::BJonesPoly::maskcenter_p [private] |
Int casa::BJonesPoly::maskcenterHalf_p [private] |
Float casa::BJonesPoly::maskedge_p [private] |
Float casa::BJonesPoly::maskedgeFrac_p [private] |
Int casa::BJonesPoly::solFldId [private] |
Int casa::BJonesPoly::solSpwId [private] |
Double casa::BJonesPoly::solTimeStamp [private] |
Bool casa::BJonesPoly::visnorm_p [private] |
VisSet* casa::BJonesPoly::vs_p [private] |