casa
$Rev:20696$
|
#include <EPJones.h>
Public Member Functions | |
EPJones (VisSet &vs) | |
Constructor. | |
EPJones (VisSet &vs, MeasurementSet &ms) | |
{throw(AipsError("Use the constructor EPJones(VisSet&, MeasurementSet&) instead"));}; | |
virtual | ~EPJones () |
EPJones(const Int& nAnt); // NYI. | |
virtual Type | type () |
Return the type enum. | |
virtual String | typeName () |
Return type name as string. | |
virtual String | longTypeName () |
Jones::JonesType | jonesType () |
Type of Jones matrix according to nPar() | |
virtual VisCalEnum::VCParType | parType () |
Return the parameter type (nominally complex) | |
Cube< Float > & | loadPar () |
Specialized access to pointing parameters (no chan axis) | |
virtual void | setModel (const String &modelImage) |
virtual void | setSolve () |
Set the solving parameters. | |
virtual void | setSolve (const Record &solve) |
virtual void | setNiter (const Int &niter) |
virtual void | setTolerance (const Float &tol) |
virtual void | setGain (const Float &gain) |
virtual void | setApply (const Record &applypar) |
virtual void | applyCal (VisBuffer &vb, Cube< Complex > &Mout) |
Apply calibration to a VisBuffer. | |
virtual void | differentiate (VisBuffer &vb, Cube< Complex > &Mout, Array< Complex > &dMout, Matrix< Bool > &Mflg) |
Differentiate a VisBuffer w.r.t. | |
virtual void | differentiate (VisBuffer &vb, VisBuffer &dvb0, VisBuffer &dvb1, Matrix< Bool > &Mflg) |
Differentiate a VisBuffer w.r.t. | |
virtual void | diffResiduals (VisIter &vi, VisEquation &ve, VisBuffer &residuals, VisBuffer &dVr1, VisBuffer &dVr2, Matrix< Bool > &flags) |
This one averages the residuals and the derivatives in time. | |
virtual void | guessPar (VisBuffer &vb) |
Guess (throws error because we don't yet solve for this) | |
virtual void | guessPar () |
virtual Cube< Float > & | solveRPar () |
virtual void | setRPar (Cube< Float > &val) |
virtual void | setRPar (Double val) |
virtual Bool | normalizable () |
virtual void keep(const Int& slot); | |
virtual void | keep (const Int &slot) |
virtual BaseCalSet& cs() {return *rcs_;}; | |
virtual CalSet< Float > & | rcs () |
virtual void | inflate (const Vector< Int > &nChan, const Vector< Int > &startChan, const Vector< Int > &nSlot) |
Inflate the pristine CalSet (generically) | |
void | initSolve (VisSet &vs) |
void | initSolvePar () |
Initialize solve parameter shape Jones version: (nPar(),1,nAnt()) (one chan, all antennas) | |
void | store () |
void | store (const String &table, const Bool &append) |
Bool | verifyForSolve (VisBuffer &vb) |
virtual void | postSolveMassage (const VisBuffer &) |
virtual void | selfGatherAndSolve (VisSet &vs, VisEquation &ve) |
Self- gather and/or solve prototypes (triggered by useGenericGatherForSolve=F or useGenericSolveOne=F; must be overridden in derived specializations) | |
virtual Bool | useGenericGatherForSolve () |
Report if calibration available for specified spw (if no CalInterp available, assume True) | |
virtual Float | printFraction (const Int &) |
Array< Float > | getOffsets (const Int &spw) |
Array< Double > | getTime (const Int &spw) |
void | nearest (const Double time, Array< Float > &vals) |
void | printRPar () |
Protected Member Functions | |
virtual Int | nPar () |
EP has a pair of real parameters per feed. | |
virtual Bool | trivialJonesElem () |
Jones matrix elements are NOT trivial. | |
virtual void | makeComplexGrid (TempImage< Complex > &Grid, PagedImage< Float > &ModelImage, VisBuffer &vb) |
Fill-in a complex grid with the image values in prepration for computing it's FT. | |
void | printActivity (const Int slotNo, const Int fieldId, const Int spw, const Int nSolutions) |
Private Attributes | |
Cube< Float > | pointPar_ |
inline virtual CalSet<Float> rcs() {return *cs_;} | |
nPBWProjectFT * | pbwp_p |
MeasurementSet * | ms_p |
PBMosaicFT *pbwp_p;. | |
VisSet * | vs_p |
TempImage< Complex > | targetVisModel_ |
Array<Float> azOff, elOff;. | |
CalSet< Float > * | rcs_ |
Double | maxTimePerSolution |
Double | minTimePerSolution |
Double | avgTimePerSolution |
Timer | timer |
Vector< Int > | polMap_p |
Float | tolerance_p |
Float | gain_p |
Int | niter_p |
casa::EPJones::EPJones | ( | VisSet & | vs | ) |
Constructor.
casa::EPJones::EPJones | ( | VisSet & | vs, |
MeasurementSet & | ms | ||
) |
{throw(AipsError("Use the constructor EPJones(VisSet&, MeasurementSet&) instead"));};
virtual casa::EPJones::~EPJones | ( | ) | [virtual] |
EPJones(const Int& nAnt); // NYI.
virtual void casa::EPJones::applyCal | ( | VisBuffer & | vb, |
Cube< Complex > & | Mout | ||
) | [virtual] |
Apply calibration to a VisBuffer.
virtual void casa::EPJones::differentiate | ( | VisBuffer & | vb, |
Cube< Complex > & | Mout, | ||
Array< Complex > & | dMout, | ||
Matrix< Bool > & | Mflg | ||
) | [virtual] |
Differentiate a VisBuffer w.r.t.
pointng parameters
These effectively compute residuals and derivatives for a time-averaged VisBuffer
Reimplemented from casa::SolvableVisJones.
virtual void casa::EPJones::diffResiduals | ( | VisIter & | vi, |
VisEquation & | ve, | ||
VisBuffer & | residuals, | ||
VisBuffer & | dVr1, | ||
VisBuffer & | dVr2, | ||
Matrix< Bool > & | flags | ||
) | [virtual] |
This one averages the residuals and the derivatives in time.
Array<Float> casa::EPJones::getOffsets | ( | const Int & | spw | ) | [inline] |
Definition at line 149 of file EPJones.h.
References casa::CalSet< T >::par(), and rcs().
Array<Double> casa::EPJones::getTime | ( | const Int & | spw | ) | [inline] |
Definition at line 150 of file EPJones.h.
References rcs(), and casa::CalSet< T >::time().
virtual void casa::EPJones::guessPar | ( | VisBuffer & | vb | ) | [virtual] |
Guess (throws error because we don't yet solve for this)
Reimplemented from casa::SolvableVisMueller.
virtual void casa::EPJones::guessPar | ( | ) | [inline, virtual] |
virtual void casa::EPJones::inflate | ( | const Vector< Int > & | nChanDat, |
const Vector< Int > & | startChanDat, | ||
const Vector< Int > & | nSlot | ||
) | [virtual] |
Inflate the pristine CalSet (generically)
Reimplemented from casa::SolvableVisCal.
void casa::EPJones::initSolve | ( | VisSet & | vs | ) |
void casa::EPJones::initSolvePar | ( | ) | [virtual] |
Initialize solve parameter shape Jones version: (nPar(),1,nAnt()) (one chan, all antennas)
Reimplemented from casa::SolvableVisJones.
Jones::JonesType casa::EPJones::jonesType | ( | ) | [inline, virtual] |
Type of Jones matrix according to nPar()
Implements casa::VisJones.
Definition at line 75 of file EPJones.h.
References casa::Jones::Diagonal.
virtual void casa::EPJones::keep | ( | const Int & | slot | ) | [virtual] |
virtual BaseCalSet& cs() {return *rcs_;};
Cube<Float>& casa::EPJones::loadPar | ( | ) |
Specialized access to pointing parameters (no chan axis)
virtual String casa::EPJones::longTypeName | ( | ) | [inline, virtual] |
Reimplemented from casa::VisCal.
virtual void casa::EPJones::makeComplexGrid | ( | TempImage< Complex > & | Grid, |
PagedImage< Float > & | ModelImage, | ||
VisBuffer & | vb | ||
) | [protected, virtual] |
Fill-in a complex grid with the image values in prepration for computing it's FT.
void casa::EPJones::nearest | ( | const Double | time, |
Array< Float > & | vals | ||
) | [virtual] |
Reimplemented from casa::SolvableVisJones.
virtual Bool casa::EPJones::normalizable | ( | ) | [inline, virtual] |
virtual void keep(const Int& slot);
Reimplemented from casa::SolvableVisJones.
Definition at line 130 of file EPJones.h.
References casa::False.
virtual Int casa::EPJones::nPar | ( | ) | [inline, protected, virtual] |
EP has a pair of real parameters per feed.
Implements casa::VisCal.
virtual VisCalEnum::VCParType casa::EPJones::parType | ( | ) | [inline, virtual] |
Return the parameter type (nominally complex)
Reimplemented from casa::VisCal.
Definition at line 77 of file EPJones.h.
References casa::VisCalEnum::REAL, and casa::SolvableVisCal::setParType().
virtual void casa::EPJones::postSolveMassage | ( | const VisBuffer & | ) | [virtual] |
void casa::EPJones::printActivity | ( | const Int | slotNo, |
const Int | fieldId, | ||
const Int | spw, | ||
const Int | nSolutions | ||
) | [protected] |
virtual Float casa::EPJones::printFraction | ( | const Int & | ) | [inline, virtual] |
void casa::EPJones::printRPar | ( | ) |
virtual CalSet<Float>& casa::EPJones::rcs | ( | ) | [inline, virtual] |
Definition at line 135 of file EPJones.h.
References rcs_.
Referenced by getOffsets(), and getTime().
virtual void casa::EPJones::selfGatherAndSolve | ( | VisSet & | vs, |
VisEquation & | ve | ||
) | [virtual] |
Self- gather and/or solve prototypes (triggered by useGenericGatherForSolve=F or useGenericSolveOne=F; must be overridden in derived specializations)
Reimplemented from casa::SolvableVisCal.
virtual void casa::EPJones::setApply | ( | const Record & | applypar | ) | [virtual] |
Reimplemented from casa::SolvableVisCal.
virtual void casa::EPJones::setGain | ( | const Float & | gain | ) | [inline, virtual] |
virtual void casa::EPJones::setModel | ( | const String & | modelImage | ) | [virtual] |
Reimplemented from casa::SolvableVisCal.
virtual void casa::EPJones::setNiter | ( | const Int & | niter | ) | [inline, virtual] |
virtual void casa::EPJones::setRPar | ( | Cube< Float > & | val | ) | [inline, virtual] |
Definition at line 125 of file EPJones.h.
References pointPar_, casa::Cube< T >::resize(), and casa::Cube< T >::shape().
virtual void casa::EPJones::setRPar | ( | Double | val | ) | [inline, virtual] |
virtual void casa::EPJones::setSolve | ( | ) | [virtual] |
Set the solving parameters.
Reimplemented from casa::SolvableVisCal.
virtual void casa::EPJones::setSolve | ( | const Record & | solve | ) | [virtual] |
Reimplemented from casa::SolvableVisCal.
virtual void casa::EPJones::setTolerance | ( | const Float & | tol | ) | [inline, virtual] |
Definition at line 87 of file EPJones.h.
References tolerance_p.
virtual Cube<Float>& casa::EPJones::solveRPar | ( | ) | [inline, virtual] |
Reimplemented from casa::SolvableVisCal.
Definition at line 124 of file EPJones.h.
References pointPar_.
void casa::EPJones::store | ( | ) |
void casa::EPJones::store | ( | const String & | table, |
const Bool & | append | ||
) |
virtual Bool casa::EPJones::trivialJonesElem | ( | ) | [inline, protected, virtual] |
Jones matrix elements are NOT trivial.
Implements casa::VisJones.
Definition at line 160 of file EPJones.h.
References casa::False.
virtual Type casa::EPJones::type | ( | ) | [inline, virtual] |
Return the type enum.
Implements casa::VisCal.
Definition at line 68 of file EPJones.h.
References casa::VisCal::E.
virtual String casa::EPJones::typeName | ( | ) | [inline, virtual] |
Return type name as string.
Reimplemented from casa::VisCal.
virtual Bool casa::EPJones::useGenericGatherForSolve | ( | ) | [inline, virtual] |
Report if calibration available for specified spw (if no CalInterp available, assume True)
Use generic data gathering mechanism for solve
Reimplemented from casa::SolvableVisCal.
Definition at line 147 of file EPJones.h.
References casa::False.
Bool casa::EPJones::verifyForSolve | ( | VisBuffer & | vb | ) | [virtual] |
Reimplemented from casa::SolvableVisCal.
Double casa::EPJones::avgTimePerSolution [private] |
Float casa::EPJones::gain_p [private] |
Double casa::EPJones::maxTimePerSolution [private] |
Double casa::EPJones::minTimePerSolution [private] |
MeasurementSet* casa::EPJones::ms_p [private] |
PBMosaicFT *pbwp_p;.
Int casa::EPJones::niter_p [private] |
Definition at line 185 of file EPJones.h.
Referenced by setNiter().
nPBWProjectFT* casa::EPJones::pbwp_p [private] |
Cube<Float> casa::EPJones::pointPar_ [private] |
inline virtual CalSet<Float> rcs() {return *cs_;}
Local Matrix for referencing pointing pars in a convenient way
Definition at line 173 of file EPJones.h.
Referenced by guessPar(), setRPar(), and solveRPar().
Vector<Int> casa::EPJones::polMap_p [private] |
CalSet<Float>* casa::EPJones::rcs_ [private] |
TempImage<Complex> casa::EPJones::targetVisModel_ [private] |
Array<Float> azOff, elOff;.
Timer casa::EPJones::timer [private] |
Float casa::EPJones::tolerance_p [private] |
Definition at line 184 of file EPJones.h.
Referenced by setTolerance().
VisSet* casa::EPJones::vs_p [private] |