casa
$Rev:20696$
|
#include <LJJones.h>
Public Member Functions | |
LJJones (VisSet &vs) | |
Constructor. | |
LJJones (VisSet &vs, MeasurementSet &ms) | |
{throw(AipsError("Use the constructor LJJones(VisSet&, MeasurementSet&) instead"));}; | |
virtual | ~LJJones () |
LJJones(const Int& nAnt); // NYI. | |
virtual Type | type () |
Return the type enum. | |
virtual String | typeName () |
Return type name as string. | |
virtual String | longTypeName () |
virtual Bool | freqDepPar () |
Frequency-dependent Parameters? Nominally not. | |
Jones::JonesType | jonesType () |
Type of Jones matrix according to nPar() | |
virtual VisCalEnum::VCParType | parType () |
Return the parameter type (nominally complex) | |
Cube< Complex > & | 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< Complex > & | solvePar () |
virtual void | setRPar (Cube< Complex > &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 *cs_;}; | |
virtual CalSet< Complex > & | cs () |
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< Complex > | getOffsets (const Int &spw) |
Array< Double > | getTime (const Int &spw) |
void | nearest (const Double time, Array< Complex > &vals) |
void | printRPar () |
void | setByPassMode (Int &b) |
void | getAvgVB (VisIter &vi, VisEquation &ve, VisBuffer &vb) |
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) |
void | reformVisibilities (const VisBuffer &vb, const Int whichChan, const Int whichPol, Array< Complex > &visArray, Array< Float > &visWts) |
inline virtual CalSet<Float> cs() {return *cs_;} | |
Int | getRefAnt (const Array< Float > &visWts) |
Private Attributes | |
Cube< Complex > | pointPar_ |
Local Matrix for referencing pointing pars in a convenient way. | |
GridFT * | pbwp_p |
MeasurementSet * | ms_p |
VisSet * | vs_p |
TempImage< Complex > | targetVisModel_ |
Array<Float> azOff, elOff;. | |
CalSet< Complex > * | cs_ |
Double | maxTimePerSolution |
Double | minTimePerSolution |
Double | avgTimePerSolution |
Timer | timer |
Vector< Int > | polMap_p |
Float | tolerance_p |
Float | gain_p |
Int | niter_p |
Int | byPass_p |
String | modelImageName_p |
casa::LJJones::LJJones | ( | VisSet & | vs | ) |
Constructor.
casa::LJJones::LJJones | ( | VisSet & | vs, |
MeasurementSet & | ms | ||
) |
{throw(AipsError("Use the constructor LJJones(VisSet&, MeasurementSet&) instead"));};
virtual casa::LJJones::~LJJones | ( | ) | [virtual] |
LJJones(const Int& nAnt); // NYI.
virtual void casa::LJJones::applyCal | ( | VisBuffer & | vb, |
Cube< Complex > & | Mout | ||
) | [virtual] |
Apply calibration to a VisBuffer.
virtual CalSet<Complex>& casa::LJJones::cs | ( | ) | [inline, virtual] |
Definition at line 137 of file LJJones.h.
References cs_.
Referenced by getOffsets(), and getTime().
virtual void casa::LJJones::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::LJJones::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.
virtual Bool casa::LJJones::freqDepPar | ( | ) | [inline, virtual] |
Frequency-dependent Parameters? Nominally not.
Reimplemented from casa::VisCal.
Definition at line 74 of file LJJones.h.
References casa::False.
void casa::LJJones::getAvgVB | ( | VisIter & | vi, |
VisEquation & | ve, | ||
VisBuffer & | vb | ||
) |
Array<Complex> casa::LJJones::getOffsets | ( | const Int & | spw | ) | [inline] |
Definition at line 151 of file LJJones.h.
References cs(), and casa::CalSet< T >::par().
Int casa::LJJones::getRefAnt | ( | const Array< Float > & | visWts | ) | [protected] |
Array<Double> casa::LJJones::getTime | ( | const Int & | spw | ) | [inline] |
Definition at line 152 of file LJJones.h.
References cs(), and casa::CalSet< T >::time().
virtual void casa::LJJones::guessPar | ( | VisBuffer & | vb | ) | [virtual] |
Guess (throws error because we don't yet solve for this)
Reimplemented from casa::SolvableVisMueller.
virtual void casa::LJJones::guessPar | ( | ) | [inline, virtual] |
virtual void casa::LJJones::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::LJJones::initSolve | ( | VisSet & | vs | ) |
void casa::LJJones::initSolvePar | ( | ) | [virtual] |
Initialize solve parameter shape Jones version: (nPar(),1,nAnt()) (one chan, all antennas)
Reimplemented from casa::SolvableVisJones.
Jones::JonesType casa::LJJones::jonesType | ( | ) | [inline, virtual] |
Type of Jones matrix according to nPar()
Implements casa::VisJones.
Definition at line 77 of file LJJones.h.
References casa::Jones::General.
virtual void casa::LJJones::keep | ( | const Int & | slot | ) | [virtual] |
virtual BaseCalSet& cs() {return *cs_;};
Cube<Complex>& casa::LJJones::loadPar | ( | ) |
Specialized access to pointing parameters (no chan axis)
virtual String casa::LJJones::longTypeName | ( | ) | [inline, virtual] |
Reimplemented from casa::VisCal.
virtual void casa::LJJones::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::LJJones::nearest | ( | const Double | time, |
Array< Complex > & | vals | ||
) | [virtual] |
Reimplemented from casa::SolvableVisJones.
virtual Bool casa::LJJones::normalizable | ( | ) | [inline, virtual] |
virtual void keep(const Int& slot);
Reimplemented from casa::SolvableVisJones.
Definition at line 132 of file LJJones.h.
References casa::False.
virtual Int casa::LJJones::nPar | ( | ) | [inline, protected, virtual] |
EP has a pair of real parameters per feed.
Implements casa::VisCal.
virtual VisCalEnum::VCParType casa::LJJones::parType | ( | ) | [inline, virtual] |
Return the parameter type (nominally complex)
Reimplemented from casa::VisCal.
Definition at line 79 of file LJJones.h.
References casa::VisCalEnum::COMPLEX, and casa::SolvableVisCal::setParType().
virtual void casa::LJJones::postSolveMassage | ( | const VisBuffer & | ) | [virtual] |
void casa::LJJones::printActivity | ( | const Int | slotNo, |
const Int | fieldId, | ||
const Int | spw, | ||
const Int | nSolutions | ||
) | [protected] |
virtual Float casa::LJJones::printFraction | ( | const Int & | ) | [inline, virtual] |
void casa::LJJones::printRPar | ( | ) |
void casa::LJJones::reformVisibilities | ( | const VisBuffer & | vb, |
const Int | whichChan, | ||
const Int | whichPol, | ||
Array< Complex > & | visArray, | ||
Array< Float > & | visWts | ||
) | [protected] |
inline virtual CalSet<Float> cs() {return *cs_;}
virtual void casa::LJJones::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::LJJones::setApply | ( | const Record & | applypar | ) | [virtual] |
Reimplemented from casa::SolvableVisCal.
void casa::LJJones::setByPassMode | ( | Int & | b | ) | [inline] |
virtual void casa::LJJones::setGain | ( | const Float & | gain | ) | [inline, virtual] |
virtual void casa::LJJones::setModel | ( | const String & | modelImage | ) | [virtual] |
Reimplemented from casa::SolvableVisCal.
virtual void casa::LJJones::setNiter | ( | const Int & | niter | ) | [inline, virtual] |
virtual void casa::LJJones::setRPar | ( | Cube< Complex > & | val | ) | [inline, virtual] |
Definition at line 127 of file LJJones.h.
References pointPar_, casa::Cube< T >::resize(), and casa::Cube< T >::shape().
virtual void casa::LJJones::setRPar | ( | Double | val | ) | [inline, virtual] |
virtual void casa::LJJones::setSolve | ( | ) | [virtual] |
Set the solving parameters.
Reimplemented from casa::SolvableVisCal.
virtual void casa::LJJones::setSolve | ( | const Record & | solve | ) | [virtual] |
Reimplemented from casa::SolvableVisCal.
virtual void casa::LJJones::setTolerance | ( | const Float & | tol | ) | [inline, virtual] |
Definition at line 89 of file LJJones.h.
References tolerance_p.
virtual Cube<Complex>& casa::LJJones::solvePar | ( | ) | [inline, virtual] |
void casa::LJJones::store | ( | ) |
void casa::LJJones::store | ( | const String & | table, |
const Bool & | append | ||
) |
virtual Bool casa::LJJones::trivialJonesElem | ( | ) | [inline, protected, virtual] |
Jones matrix elements are NOT trivial.
Implements casa::VisJones.
Definition at line 164 of file LJJones.h.
References casa::False.
virtual Type casa::LJJones::type | ( | ) | [inline, virtual] |
Return the type enum.
Implements casa::VisCal.
Definition at line 68 of file LJJones.h.
References casa::VisCal::E.
virtual String casa::LJJones::typeName | ( | ) | [inline, virtual] |
Return type name as string.
Reimplemented from casa::VisCal.
virtual Bool casa::LJJones::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 149 of file LJJones.h.
References casa::False.
Bool casa::LJJones::verifyForSolve | ( | VisBuffer & | vb | ) | [virtual] |
Reimplemented from casa::SolvableVisCal.
Double casa::LJJones::avgTimePerSolution [private] |
Int casa::LJJones::byPass_p [private] |
Definition at line 192 of file LJJones.h.
Referenced by setByPassMode().
CalSet<Complex>* casa::LJJones::cs_ [private] |
Float casa::LJJones::gain_p [private] |
Double casa::LJJones::maxTimePerSolution [private] |
Double casa::LJJones::minTimePerSolution [private] |
String casa::LJJones::modelImageName_p [private] |
MeasurementSet* casa::LJJones::ms_p [private] |
Int casa::LJJones::niter_p [private] |
Definition at line 192 of file LJJones.h.
Referenced by setNiter().
GridFT* casa::LJJones::pbwp_p [private] |
Cube<Complex> casa::LJJones::pointPar_ [private] |
Local Matrix for referencing pointing pars in a convenient way.
Definition at line 181 of file LJJones.h.
Referenced by guessPar(), setRPar(), and solvePar().
Vector<Int> casa::LJJones::polMap_p [private] |
TempImage<Complex> casa::LJJones::targetVisModel_ [private] |
Array<Float> azOff, elOff;.
Timer casa::LJJones::timer [private] |
Float casa::LJJones::tolerance_p [private] |
Definition at line 191 of file LJJones.h.
Referenced by setTolerance().
VisSet* casa::LJJones::vs_p [private] |