casa
$Rev:20696$
|
#include <SolvableVisCal.h>
Classes | |
struct | fluxScaleStruct |
Public Types | |
typedef struct casa::SolvableVisCal::fluxScaleStruct | fluxScaleStruct |
Public Member Functions | |
SolvableVisCal (VisSet &vs) | |
SolvableVisCal (const Int &nAnt) | |
virtual | ~SolvableVisCal () |
String & | calTableName () |
Access to user-supplied parameters. | |
String & | calTableSelect () |
Bool & | append () |
String & | tInterpType () |
String & | fInterpType () |
Vector< Int > & | spwMap () |
Int & | refant () |
Vector< Int > & | refantlist () |
Int & | minblperant () |
String & | apmode () |
String & | solint () |
String & | fsolint () |
Double & | preavg () |
Bool & | solnorm () |
Float & | minSNR () |
String & | combine () |
Bool | combspw () |
Bool | combfld () |
Bool | combscan () |
Bool | combobs () |
virtual Int | nTotalPar ()=0 |
Total number of (complex) parameters per solve (specialize to jive with ant- or bln-basedness, etc.) | |
virtual Bool | useGenericGatherForSolve () |
Report if calibration available for specified spw (if no CalInterp available, assume True) | |
virtual Bool | useGenericSolveOne () |
Use generic solution engine for a single solve (usually inside the generic gathering mechanism) | |
virtual Int | solvePol () |
Solve for point-source X or Q,U? nominally no (0) | |
virtual Bool | normalizable ()=0 |
Does normalization by MODEL_DATA commute with this VisCal? (if so, permits pre-solve time-averaging) | |
virtual Bool | accumulatable () |
Is this type capable of accumulation? (nominally no) | |
virtual Bool | smoothable () |
Is this type capable of smoothing? (nominally no) | |
virtual Bool | phandonly () |
Should only parallel-hands be used in solving? (generally no (default=False), but GJones and related will override, and eventually this will be a user-set-able parameter) | |
Int & | focusChan () |
Access to focus channel. | |
Bool | isSolved () |
Is this ready to solve? | |
virtual Bool | isSolvable () |
Is this solveable? (via this interface, nominally yes) | |
virtual void | setApply () |
Set the application parameters. | |
virtual void | setApply (const Record &apply) |
virtual void | setModel (const String &) |
virtual String | applyinfo () |
Report apply info/params, e.g. | |
virtual void | setSolve () |
Set the solving parameters. | |
virtual void | setSolve (const Record &solve) |
virtual String | solveinfo () |
Report solve info/params, e.g., for logging. | |
virtual void | setAccumulate (VisSet &vs, const String &table, const String &select, const Double &t, const Int &refAnt=-1) |
Arrange for accumulation. | |
virtual Complex | defaultPar () |
Default value for parameters. | |
virtual Float | defaultRPar () |
virtual Complex | defaultCPar () |
virtual void | setSpecify (const Record &specify) |
Arrange to build a cal table from specified values. | |
virtual void | specify (const Record &specify) |
Fill a caltable with specified values. | |
virtual Int | sizeUpSolve (VisSet &vs, Vector< Int > &nChunkPerSol) |
Size up the solving arrays, etc. | |
void | inflate (VisSet &vs, const Bool &fillMeta=False) |
These inflate methods soon to deprecate (gmoellen, 20121212) Inflate the pristine CalSet (from VisSet info) | |
virtual void | inflate (const Vector< Int > &nChanDat, const Vector< Int > &startChanDat, const Vector< Int > &nSlot) |
Inflate the pristine CalSet (generically) | |
virtual void | guessPar (VisBuffer &vb)=0 |
Hazard a guess at the parameters (solveCPar) given the data. | |
Double & | fintervalHz () |
Freq-dep solint values. | |
Double & | fintervalCh () |
Matrix< Int > | chanAveBounds () |
Matrix< Int > | chanAveBounds (Int spw) |
virtual Cube< Complex > & | solveCPar () |
Access to current solution parameters and matrices. | |
virtual Cube< Float > & | solveRPar () |
virtual Cube< Bool > & | solveParOK () |
virtual Cube< Float > & | solveParErr () |
virtual Cube< Float > & | solveParSNR () |
virtual Cube< Complex > & | solveAllCPar () |
virtual Cube< Float > & | solveAllRPar () |
virtual Cube< Bool > & | solveAllParOK () |
virtual Cube< Float > & | solveAllParErr () |
virtual Cube< Float > & | solveAllParSNR () |
Vector< Complex > & | srcPolPar () |
Access to source pol parameters. | |
Bool | syncSolveMeta (VisBuffer &vb, const Int &fieldId) |
Synchronize the meta data with a solvable VisBuffer (returns False if VisBuffer has no valid data) | |
Bool | syncSolveMeta (VisBuffGroupAcc &vbga) |
void | overrideObsScan (Int obs, Int scan) |
Provide for override of currScan and currObs. | |
virtual void | enforceAPonData (VisBuffer &vb) |
If apmode() is "A", convert vb's visibilities to amp + 0i. | |
virtual Bool | verifyConstraints (VisBuffGroupAcc &vbag) |
Verify VisBuffer data sufficient for solving (wts, etc.) | |
virtual Bool | verifyForSolve (VisBuffer &vb) |
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 void | selfSolveOne (VisBuffGroupAcc &vs) |
void | setUpForPolSolve (VisBuffer &vb) |
Set up data and model for pol solve. | |
virtual void | differentiate (CalVisBuffer &cvb)=0 |
Differentiate VB model w.r.t. | |
virtual void | differentiate (VisBuffer &vb, Cube< Complex > &V, Array< Complex > &dV, Matrix< Bool > &Vflg)=0 |
virtual void | differentiate (VisBuffer &, VisBuffer &, VisBuffer &, Matrix< Bool > &) |
virtual void | diffSrc (VisBuffer &vb, Array< Complex > &dV)=0 |
Differentiate VB model w.r.t. | |
virtual void | updatePar (const Vector< Complex > dCalPar, const Vector< Complex > dSrcPar) |
Update solve parameters incrementally (additive) | |
virtual void | formSolveSNR () |
Form solution SNR. | |
virtual void | applySNRThreshold () |
Apply SNR threshold. | |
virtual void | reReference ()=0 |
Apply refant (implemented in SVJ) | |
virtual Record | actionRec () |
Retrieve the cal flag info as a record. | |
virtual void | accumulate (SolvableVisCal *incr, const Vector< Int > &fields)=0 |
Accumulate another VisCal onto this one. | |
virtual void | smooth (Vector< Int > &fields, const String &smtype, const Double &smtime) |
virtual void | reportSolvedQU () |
Report solved-for QU. | |
virtual void | createMemCalTable () |
New CalTable handling. | |
virtual void | keep1 (Int ichan) |
virtual void | keepNCT () |
virtual void | storeNCT () |
void | storeNCT (const String &tableName, const Bool &append) |
virtual void | loadMemCalTable (String ctname, String field="") |
virtual Bool | spwOK (Int ispw) |
New spwOK. | |
virtual void | globalPostSolveTinker () |
Post solve tinkering (generic version) | |
virtual void | enforceAPonSoln () |
Divide all solutions by their amplitudes. | |
virtual void | normalize () |
Normalize a solution (generic implementation) | |
virtual void | fluxscale (const String &outfile, const Vector< Int > &refFieldIn, const Vector< Int > &tranFieldIn, const Vector< Int > &inRefSpwMap, const Vector< String > &fldNames, fluxScaleStruct &oFluxScaleStruct, const String &oListFile, const Bool &incremental, const Int &fitorder)=0 |
Determine and apply flux density scaling. | |
virtual void | state () |
Report state: | |
virtual VisCalEnum::VCParType | setParType (VisCalEnum::VCParType type) |
virtual void | currMetaNote () |
virtual void | listCal (const Vector< Int > ufldids, const Vector< Int > uantids, const Matrix< Int > uchanids, const String &listfile="", const Int &pagerows=50)=0 |
void | setChanMask (PtrBlock< Vector< Bool > * > &chanmask) |
Handle external channel mask. | |
void | clearChanMask () |
void | applyChanMask (VisBuffer &vb) |
virtual void | printActivity (const Int nSlots, const Int slotNo, const Int fieldId, const Int spw, const Int nSolutions) |
Log periodic solver activity. | |
virtual void | markTimer () |
virtual void | setSimulate (VisSet &vs, Record &simpar, Vector< Double > &solTimes) |
Set the simulation parameters | |
virtual void | createCorruptor (const VisIter &vi, const Record &simpar, const int nSim) |
make a corruptor in a VC-specific way | |
String & | simint () |
access to simulation variables that are general to all VisCals | |
virtual String | siminfo () |
Simulation info/params, suitable for logging. | |
Bool | isSimulated () |
Is this calibration simulated? | |
Int | sizeUpSim (VisSet &vs, Vector< Int > &nChunkPerSol, Vector< Double > &solTimes) |
calculate # required slots to simulate this SVC | |
Public Attributes | |
CalCorruptor * | corruptor_p |
object that can simulate the corruption terms | |
Protected Member Functions | |
void | setSolved (const Bool &flag) |
Set to-be-solved-for flag. | |
virtual void | initSolvePar ()=0 |
Initialize solve parameters (shape) | |
virtual void | invalidateDiffCalMat ()=0 |
Invalidate diff cal matrices generically. | |
virtual void | setSolveChannelization (VisSet &vs) |
Set matrix channelization according to a VisSet. | |
virtual void | setFracChanAve () |
Calculate chan averaging bounds. | |
void | inflateNCTwithMetaData (VisSet &vs) |
Inflate an NCT w/ meta-data according to a VisSet (for accum) | |
void | syncSolveCal () |
Synchronize calibration for solve context. | |
void | syncSolvePar () |
Synchronize parameters for solve context. | |
virtual void | calcPar () |
Calculate parameters by some means (e.g., interpolation from a CalSet) | |
virtual void | syncDiffMat ()=0 |
Synchronize the differentiated calibration. | |
virtual void | stateSVC (const Bool &doVC) |
Report the SVC-specific state, w/ option for VC::state() | |
void | normSolnArray (Array< Complex > &sol, const Array< Bool > &solOK, const Bool doPhase=False) |
Normalize a (complex) solution array (generic) | |
LogIO & | logSink () |
Logger. | |
void | verifyCalTable (const String &caltablename) |
Check if a cal table is appropriate. | |
void | sortVisSet (VisSet &vs, const Bool verbose=False) |
void | setSimulated (const Bool &flag) |
Set state flag to simulate cal terms. | |
Bool & | simOnTheFly () |
RI todo implement calcOneJones like calcAllMueller calculate terms during apply, or up front during setSim? | |
Protected Attributes | |
Int | parType_ |
NewCalTable * | ct_ |
New CalTable. | |
CTPatchedInterp * | ci_ |
Vector< Bool > | spwOK_ |
CalSetMetaInfo | csmi |
Double | maxTimePerSolution_p |
Double | minTimePerSolution_p |
Double | avgTimePerSolution_p |
Float | userPrintActivityInterval_p |
Float | userPrintActivityFraction_p |
uInt | caiRC_p |
uInt | cafRC_p |
Timer | timer_p |
Private Member Functions | |
SolvableVisCal () | |
Default ctor is private. | |
void | initSVC () |
Initialize pointers, etc. | |
void | deleteSVC () |
Delete pointers. | |
Private Attributes | |
String | calTableName_ |
Cal table name. | |
String | calTableSelect_ |
Bool | append_ |
String | tInterpType_ |
Interpolation types. | |
String | fInterpType_ |
Vector< Int > | spwMap_ |
Spw mapping. | |
Vector< Int > | urefantlist_ |
Refant. | |
Int | minblperant_ |
Min baselines per ant for solve. | |
Bool | solved_ |
Solved-for flag. | |
String | apmode_ |
Solving mode. | |
String | solint_ |
User-specified time-dep solint (string) | |
String | fsolint_ |
User-specified freq-dep solint info. | |
Double | fintervalHz_ |
Vector< Double > | fintervalCh_ |
Vector< Matrix< Int > > | chanAveBounds_ |
Channel averaging bounds. | |
Double | preavg_ |
Preavering interval. | |
Bool | solnorm_ |
Do solution normalization after a solve. | |
Float | minSNR_ |
SNR threshold. | |
String | combine_ |
axes to combine for solve | |
Int | focusChan_ |
In-focus channel for single-chan solves on multi-chan data. | |
Double | dataInterval_ |
Solving meta-data. | |
Double | fitWt_ |
Double | fit_ |
PtrBlock< Cube< Complex > * > | solveCPar_ |
Current parameters. | |
PtrBlock< Cube< Float > * > | solveRPar_ |
PtrBlock< Cube< Bool > * > | solveParOK_ |
PtrBlock< Cube< Float > * > | solveParErr_ |
PtrBlock< Cube< Float > * > | solveParSNR_ |
PtrBlock< Cube< Complex > * > | solveAllCPar_ |
PtrBlock< Cube< Float > * > | solveAllRPar_ |
PtrBlock< Cube< Bool > * > | solveAllParOK_ |
PtrBlock< Cube< Float > * > | solveAllParErr_ |
PtrBlock< Cube< Float > * > | solveAllParSNR_ |
Vector< Complex > | srcPolPar_ |
PtrBlock< Vector< Bool > * > * | chanmask_ |
A pointer to the external channel mask. | |
LogIO | logsink_p |
LogIO. | |
Bool | simulated_ |
Simulation flag. | |
String | simint_ |
simulation interval | |
Bool | onthefly_ |
Definition at line 67 of file SolvableVisCal.h.
casa::SolvableVisCal::SolvableVisCal | ( | const Int & | nAnt | ) |
virtual casa::SolvableVisCal::~SolvableVisCal | ( | ) | [virtual] |
casa::SolvableVisCal::SolvableVisCal | ( | ) | [private] |
Default ctor is private.
virtual Bool casa::SolvableVisCal::accumulatable | ( | ) | [inline, virtual] |
Is this type capable of accumulation? (nominally no)
Reimplemented in casa::GJones, casa::TJones, and casa::KJones.
Definition at line 132 of file SolvableVisCal.h.
References casa::False.
virtual void casa::SolvableVisCal::accumulate | ( | SolvableVisCal * | incr, |
const Vector< Int > & | fields | ||
) | [pure virtual] |
Accumulate another VisCal onto this one.
Implemented in casa::SolvableVisJones, and casa::SolvableVisMueller.
virtual Record casa::SolvableVisCal::actionRec | ( | ) | [virtual] |
Retrieve the cal flag info as a record.
Reimplemented from casa::VisCal.
String& casa::SolvableVisCal::apmode | ( | ) | [inline] |
Definition at line 96 of file SolvableVisCal.h.
References apmode_.
Bool& casa::SolvableVisCal::append | ( | ) | [inline] |
Definition at line 89 of file SolvableVisCal.h.
References append_.
void casa::SolvableVisCal::applyChanMask | ( | VisBuffer & | vb | ) |
virtual String casa::SolvableVisCal::applyinfo | ( | ) | [virtual] |
Report apply info/params, e.g.
for logging
Reimplemented from casa::VisCal.
Reimplemented in casa::TOpac.
virtual void casa::SolvableVisCal::applySNRThreshold | ( | ) | [virtual] |
Apply SNR threshold.
virtual void casa::SolvableVisCal::calcPar | ( | ) | [protected, virtual] |
Calculate parameters by some means (e.g., interpolation from a CalSet)
Reimplemented from casa::VisCal.
Reimplemented in casa::TOpac, casa::GJonesSpline, casa::BJonesPoly, casa::EGainCurve, and casa::StandardTsys.
String& casa::SolvableVisCal::calTableName | ( | ) | [inline] |
Access to user-supplied parameters.
Definition at line 87 of file SolvableVisCal.h.
References calTableName_.
String& casa::SolvableVisCal::calTableSelect | ( | ) | [inline] |
Definition at line 88 of file SolvableVisCal.h.
References calTableSelect_.
Matrix<Int> casa::SolvableVisCal::chanAveBounds | ( | ) | [inline] |
Definition at line 205 of file SolvableVisCal.h.
References chanAveBounds_, and casa::VisCal::currSpw().
Matrix<Int> casa::SolvableVisCal::chanAveBounds | ( | Int | spw | ) | [inline] |
Definition at line 206 of file SolvableVisCal.h.
References chanAveBounds_.
void casa::SolvableVisCal::clearChanMask | ( | ) | [inline] |
Definition at line 337 of file SolvableVisCal.h.
References chanmask_.
Bool casa::SolvableVisCal::combfld | ( | ) | [inline] |
Definition at line 105 of file SolvableVisCal.h.
References combine_, and casa::upcase().
String& casa::SolvableVisCal::combine | ( | ) | [inline] |
Definition at line 103 of file SolvableVisCal.h.
References combine_.
Bool casa::SolvableVisCal::combobs | ( | ) | [inline] |
Definition at line 107 of file SolvableVisCal.h.
References combine_, and casa::upcase().
Bool casa::SolvableVisCal::combscan | ( | ) | [inline] |
Definition at line 106 of file SolvableVisCal.h.
References combine_, and casa::upcase().
Bool casa::SolvableVisCal::combspw | ( | ) | [inline] |
Definition at line 104 of file SolvableVisCal.h.
References combine_, and casa::upcase().
virtual void casa::SolvableVisCal::createCorruptor | ( | const VisIter & | vi, |
const Record & | simpar, | ||
const int | nSim | ||
) | [virtual] |
make a corruptor in a VC-specific way
Reimplemented in casa::MMueller, casa::GJones, casa::ANoise, casa::TJones, and casa::DJones.
virtual void casa::SolvableVisCal::createMemCalTable | ( | ) | [virtual] |
New CalTable handling.
virtual void casa::SolvableVisCal::currMetaNote | ( | ) | [virtual] |
Reimplemented from casa::VisCal.
virtual Complex casa::SolvableVisCal::defaultCPar | ( | ) | [inline, virtual] |
Definition at line 178 of file SolvableVisCal.h.
virtual Complex casa::SolvableVisCal::defaultPar | ( | ) | [inline, virtual] |
Default value for parameters.
Reimplemented in casa::KJones.
Definition at line 176 of file SolvableVisCal.h.
virtual Float casa::SolvableVisCal::defaultRPar | ( | ) | [inline, virtual] |
Definition at line 177 of file SolvableVisCal.h.
void casa::SolvableVisCal::deleteSVC | ( | ) | [private] |
Delete pointers.
virtual void casa::SolvableVisCal::differentiate | ( | CalVisBuffer & | cvb | ) | [pure virtual] |
Differentiate VB model w.r.t.
Cal parameters (no 2nd derivative yet)
Implemented in casa::SolvableVisJones, and casa::SolvableVisMueller.
virtual void casa::SolvableVisCal::differentiate | ( | VisBuffer & | vb, |
Cube< Complex > & | V, | ||
Array< Complex > & | dV, | ||
Matrix< Bool > & | Vflg | ||
) | [pure virtual] |
Implemented in casa::SolvableVisJones, casa::SolvableVisMueller, casa::LJJones, and casa::EPJones.
virtual void casa::SolvableVisCal::differentiate | ( | VisBuffer & | , |
VisBuffer & | , | ||
VisBuffer & | , | ||
Matrix< Bool > & | |||
) | [inline, virtual] |
Reimplemented in casa::LJJones, and casa::EPJones.
Definition at line 255 of file SolvableVisCal.h.
virtual void casa::SolvableVisCal::diffSrc | ( | VisBuffer & | vb, |
Array< Complex > & | dV | ||
) | [pure virtual] |
Differentiate VB model w.r.t.
Source parameters
Implemented in casa::SolvableVisJones, and casa::SolvableVisMueller.
virtual void casa::SolvableVisCal::enforceAPonData | ( | VisBuffer & | vb | ) | [virtual] |
If apmode() is "A", convert vb's visibilities to amp + 0i.
If it is "P", convert them to phase + 0i. Otherwise (i.e. "AP"), leave them alone.
virtual void casa::SolvableVisCal::enforceAPonSoln | ( | ) | [virtual] |
Divide all solutions by their amplitudes.
String& casa::SolvableVisCal::fInterpType | ( | ) | [inline] |
Definition at line 91 of file SolvableVisCal.h.
References fInterpType_.
Double& casa::SolvableVisCal::fintervalCh | ( | ) | [inline] |
Definition at line 204 of file SolvableVisCal.h.
References casa::VisCal::currSpw(), and fintervalCh_.
Double& casa::SolvableVisCal::fintervalHz | ( | ) | [inline] |
virtual void casa::SolvableVisCal::fluxscale | ( | const String & | outfile, |
const Vector< Int > & | refFieldIn, | ||
const Vector< Int > & | tranFieldIn, | ||
const Vector< Int > & | inRefSpwMap, | ||
const Vector< String > & | fldNames, | ||
fluxScaleStruct & | oFluxScaleStruct, | ||
const String & | oListFile, | ||
const Bool & | incremental, | ||
const Int & | fitorder | ||
) | [pure virtual] |
Determine and apply flux density scaling.
Implemented in casa::SolvableVisJones, and casa::SolvableVisMueller.
Int& casa::SolvableVisCal::focusChan | ( | ) | [inline] |
virtual void casa::SolvableVisCal::formSolveSNR | ( | ) | [virtual] |
Form solution SNR.
Reimplemented in casa::DJones.
String& casa::SolvableVisCal::fsolint | ( | ) | [inline] |
Definition at line 98 of file SolvableVisCal.h.
References fsolint_.
virtual void casa::SolvableVisCal::globalPostSolveTinker | ( | ) | [virtual] |
Post solve tinkering (generic version)
Reimplemented in casa::SolvableVisJones, casa::GlinXphJones, casa::MMueller, casa::BJones, casa::KJones, and casa::DJones.
virtual void casa::SolvableVisCal::guessPar | ( | VisBuffer & | vb | ) | [pure virtual] |
Hazard a guess at the parameters (solveCPar) given the data.
Implemented in casa::SolvableVisMueller, casa::JJones, casa::GJones, casa::TJones, casa::LJJones, casa::EPJones, casa::KJones, casa::DJones, and casa::EGainCurve.
void casa::SolvableVisCal::inflate | ( | VisSet & | vs, |
const Bool & | fillMeta = False |
||
) |
virtual void casa::SolvableVisCal::inflate | ( | const Vector< Int > & | nChanDat, |
const Vector< Int > & | startChanDat, | ||
const Vector< Int > & | nSlot | ||
) | [virtual] |
Inflate the pristine CalSet (generically)
Reimplemented in casa::LJJones, and casa::EPJones.
void casa::SolvableVisCal::inflateNCTwithMetaData | ( | VisSet & | vs | ) | [protected] |
Inflate an NCT w/ meta-data according to a VisSet (for accum)
virtual void casa::SolvableVisCal::initSolvePar | ( | ) | [protected, pure virtual] |
Initialize solve parameters (shape)
Implemented in casa::SolvableVisJones, casa::SolvableVisMueller, casa::XfJones, casa::LJJones, and casa::EPJones.
void casa::SolvableVisCal::initSVC | ( | ) | [private] |
Initialize pointers, etc.
virtual void casa::SolvableVisCal::invalidateDiffCalMat | ( | ) | [inline, protected, pure virtual] |
Invalidate diff cal matrices generically.
Implemented in casa::SolvableVisJones, and casa::SolvableVisMueller.
Bool casa::SolvableVisCal::isSimulated | ( | ) | [inline] |
Is this calibration simulated?
Definition at line 360 of file SolvableVisCal.h.
References simulated_.
virtual Bool casa::SolvableVisCal::isSolvable | ( | ) | [inline, virtual] |
Is this solveable? (via this interface, nominally yes)
Reimplemented from casa::VisCal.
Reimplemented in casa::ANoise.
Definition at line 150 of file SolvableVisCal.h.
References casa::True.
Bool casa::SolvableVisCal::isSolved | ( | ) | [inline] |
Is this ready to solve?
Definition at line 147 of file SolvableVisCal.h.
References solved_.
Referenced by casa::SolvableVisMueller::nCalMat(), casa::SolvableVisMueller::setMatByOk(), and casa::SolvableVisJones::setMatByOk().
virtual void casa::SolvableVisCal::keep1 | ( | Int | ichan | ) | [virtual] |
virtual void casa::SolvableVisCal::keepNCT | ( | ) | [virtual] |
Reimplemented in casa::SolvableVisJones, and casa::SolvableVisMueller.
virtual void casa::SolvableVisCal::listCal | ( | const Vector< Int > | ufldids, |
const Vector< Int > | uantids, | ||
const Matrix< Int > | uchanids, | ||
const String & | listfile = "" , |
||
const Int & | pagerows = 50 |
||
) | [pure virtual] |
Implemented in casa::SolvableVisJones, and casa::SolvableVisMueller.
virtual void casa::SolvableVisCal::loadMemCalTable | ( | String | ctname, |
String | field = "" |
||
) | [virtual] |
Reimplemented in casa::BJonesPoly.
LogIO& casa::SolvableVisCal::logSink | ( | ) | [inline, protected] |
virtual void casa::SolvableVisCal::markTimer | ( | ) | [inline, virtual] |
Definition at line 343 of file SolvableVisCal.h.
References casa::Timer::mark(), and timer_p.
Int& casa::SolvableVisCal::minblperant | ( | ) | [inline] |
Definition at line 95 of file SolvableVisCal.h.
References minblperant_.
Float& casa::SolvableVisCal::minSNR | ( | ) | [inline] |
Definition at line 101 of file SolvableVisCal.h.
References minSNR_.
virtual Bool casa::SolvableVisCal::normalizable | ( | ) | [pure virtual] |
Does normalization by MODEL_DATA commute with this VisCal? (if so, permits pre-solve time-averaging)
Implemented in casa::SolvableVisJones, casa::SolvableVisMueller, casa::XJones, casa::XMueller, casa::LJJones, casa::EPJones, and casa::AMueller.
virtual void casa::SolvableVisCal::normalize | ( | ) | [virtual] |
Normalize a solution (generic implementation)
Reimplemented in casa::MfMueller, and casa::BJones.
void casa::SolvableVisCal::normSolnArray | ( | Array< Complex > & | sol, |
const Array< Bool > & | solOK, | ||
const Bool | doPhase = False |
||
) | [protected] |
Normalize a (complex) solution array (generic)
virtual Int casa::SolvableVisCal::nTotalPar | ( | ) | [pure virtual] |
Total number of (complex) parameters per solve (specialize to jive with ant- or bln-basedness, etc.)
Implemented in casa::SolvableVisJones, and casa::SolvableVisMueller.
void casa::SolvableVisCal::overrideObsScan | ( | Int | obs, |
Int | scan | ||
) |
Provide for override of currScan and currObs.
virtual Bool casa::SolvableVisCal::phandonly | ( | ) | [inline, virtual] |
Should only parallel-hands be used in solving? (generally no (default=False), but GJones and related will override, and eventually this will be a user-set-able parameter)
Reimplemented in casa::GlinXphJones, casa::GJones, and casa::KcrossJones.
Definition at line 141 of file SolvableVisCal.h.
References casa::False.
Double& casa::SolvableVisCal::preavg | ( | ) | [inline] |
Definition at line 99 of file SolvableVisCal.h.
References preavg_.
virtual void casa::SolvableVisCal::printActivity | ( | const Int | nSlots, |
const Int | slotNo, | ||
const Int | fieldId, | ||
const Int | spw, | ||
const Int | nSolutions | ||
) | [virtual] |
Log periodic solver activity.
Int& casa::SolvableVisCal::refant | ( | ) | [inline] |
Definition at line 93 of file SolvableVisCal.h.
References refantlist().
Vector<Int>& casa::SolvableVisCal::refantlist | ( | ) | [inline] |
virtual void casa::SolvableVisCal::reportSolvedQU | ( | ) | [virtual] |
Report solved-for QU.
virtual void casa::SolvableVisCal::reReference | ( | ) | [pure virtual] |
Apply refant (implemented in SVJ)
Implemented in casa::SolvableVisJones, casa::SolvableVisMueller, casa::JJones, and casa::DJones.
virtual void casa::SolvableVisCal::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 in casa::GlinXphJones, casa::MMueller, casa::XJones, casa::XMueller, casa::LJJones, casa::EPJones, and casa::GJonesSpline.
virtual void casa::SolvableVisCal::selfSolveOne | ( | VisBuffGroupAcc & | vs | ) | [virtual] |
Reimplemented in casa::GlinXphJones, casa::XJones, casa::DllsJones, casa::KJones, casa::BJonesPoly, and casa::AMueller.
virtual void casa::SolvableVisCal::setAccumulate | ( | VisSet & | vs, |
const String & | table, | ||
const String & | select, | ||
const Double & | t, | ||
const Int & | refAnt = -1 |
||
) | [virtual] |
Arrange for accumulation.
virtual void casa::SolvableVisCal::setApply | ( | ) | [virtual] |
virtual void casa::SolvableVisCal::setApply | ( | const Record & | apply | ) | [virtual] |
Reimplemented from casa::VisCal.
Reimplemented in casa::TOpac, casa::MMueller, casa::XJones, casa::XMueller, casa::KAntPosJones, casa::KMBDJones, casa::GJonesSpline, casa::BJonesPoly, casa::LJJones, casa::EPJones, casa::AMueller, casa::EGainCurve, casa::DJones, and casa::KJones.
void casa::SolvableVisCal::setChanMask | ( | PtrBlock< Vector< Bool > * > & | chanmask | ) | [inline] |
Handle external channel mask.
Definition at line 336 of file SolvableVisCal.h.
References chanmask_.
virtual void casa::SolvableVisCal::setFracChanAve | ( | ) | [protected, virtual] |
Calculate chan averaging bounds.
virtual void casa::SolvableVisCal::setModel | ( | const String & | ) | [inline, virtual] |
Reimplemented in casa::LJJones, and casa::EPJones.
Definition at line 155 of file SolvableVisCal.h.
virtual VisCalEnum::VCParType casa::SolvableVisCal::setParType | ( | VisCalEnum::VCParType | type | ) | [inline, virtual] |
Definition at line 327 of file SolvableVisCal.h.
References parType_, and casa::VisCal::type().
Referenced by casa::EPJones::parType(), and casa::LJJones::parType().
virtual void casa::SolvableVisCal::setSimulate | ( | VisSet & | vs, |
Record & | simpar, | ||
Vector< Double > & | solTimes | ||
) | [virtual] |
void casa::SolvableVisCal::setSimulated | ( | const Bool & | flag | ) | [inline, protected] |
Set state flag to simulate cal terms.
Definition at line 435 of file SolvableVisCal.h.
References simulated_.
virtual void casa::SolvableVisCal::setSolve | ( | ) | [virtual] |
Set the solving parameters.
Reimplemented in casa::LJJones, and casa::EPJones.
virtual void casa::SolvableVisCal::setSolve | ( | const Record & | solve | ) | [virtual] |
Reimplemented in casa::XJones, casa::JJones, casa::XMueller, casa::BJones, casa::GJonesSpline, casa::BJonesPoly, casa::LJJones, casa::EPJones, casa::AMueller, casa::DJones, and casa::KJones.
virtual void casa::SolvableVisCal::setSolveChannelization | ( | VisSet & | vs | ) | [protected, virtual] |
Set matrix channelization according to a VisSet.
Reimplemented in casa::AMueller.
void casa::SolvableVisCal::setSolved | ( | const Bool & | flag | ) | [inline, protected] |
virtual void casa::SolvableVisCal::setSpecify | ( | const Record & | specify | ) | [virtual] |
Arrange to build a cal table from specified values.
Reimplemented in casa::EVLASwPow, casa::EGainCurve, and casa::StandardTsys.
void casa::SolvableVisCal::setUpForPolSolve | ( | VisBuffer & | vb | ) |
Set up data and model for pol solve.
virtual String casa::SolvableVisCal::siminfo | ( | ) | [virtual] |
Simulation info/params, suitable for logging.
Reimplemented from casa::VisCal.
String& casa::SolvableVisCal::simint | ( | ) | [inline] |
access to simulation variables that are general to all VisCals
Definition at line 354 of file SolvableVisCal.h.
References simint_.
Bool& casa::SolvableVisCal::simOnTheFly | ( | ) | [inline, protected] |
RI todo implement calcOneJones like calcAllMueller calculate terms during apply, or up front during setSim?
cout << "simOTF=" << onthefly_ << endl;
Definition at line 439 of file SolvableVisCal.h.
References onthefly_.
Referenced by casa::ANoise::timeDepMat(), and casa::ANoise::trivialMuellerElem().
Int casa::SolvableVisCal::sizeUpSim | ( | VisSet & | vs, |
Vector< Int > & | nChunkPerSol, | ||
Vector< Double > & | solTimes | ||
) |
calculate # required slots to simulate this SVC
virtual Int casa::SolvableVisCal::sizeUpSolve | ( | VisSet & | vs, |
Vector< Int > & | nChunkPerSol | ||
) | [virtual] |
virtual void casa::SolvableVisCal::smooth | ( | Vector< Int > & | fields, |
const String & | smtype, | ||
const Double & | smtime | ||
) | [virtual] |
virtual Bool casa::SolvableVisCal::smoothable | ( | ) | [inline, virtual] |
Is this type capable of smoothing? (nominally no)
Reimplemented in casa::GJones, casa::KAntPosJones, casa::TJones, and casa::KJones.
Definition at line 135 of file SolvableVisCal.h.
References casa::False.
String& casa::SolvableVisCal::solint | ( | ) | [inline] |
Definition at line 97 of file SolvableVisCal.h.
References solint_.
Bool& casa::SolvableVisCal::solnorm | ( | ) | [inline] |
Definition at line 100 of file SolvableVisCal.h.
References solnorm_.
virtual Cube<Complex>& casa::SolvableVisCal::solveAllCPar | ( | ) | [inline, virtual] |
Definition at line 214 of file SolvableVisCal.h.
References casa::VisCal::currSpw(), and solveAllCPar_.
virtual Cube<Float>& casa::SolvableVisCal::solveAllParErr | ( | ) | [inline, virtual] |
Definition at line 217 of file SolvableVisCal.h.
References casa::VisCal::currSpw(), and solveAllParErr_.
virtual Cube<Bool>& casa::SolvableVisCal::solveAllParOK | ( | ) | [inline, virtual] |
Definition at line 216 of file SolvableVisCal.h.
References casa::VisCal::currSpw(), and solveAllParOK_.
virtual Cube<Float>& casa::SolvableVisCal::solveAllParSNR | ( | ) | [inline, virtual] |
Definition at line 218 of file SolvableVisCal.h.
References casa::VisCal::currSpw(), and solveAllParSNR_.
virtual Cube<Float>& casa::SolvableVisCal::solveAllRPar | ( | ) | [inline, virtual] |
Definition at line 215 of file SolvableVisCal.h.
References casa::VisCal::currSpw(), and solveAllRPar_.
virtual Cube<Complex>& casa::SolvableVisCal::solveCPar | ( | ) | [inline, virtual] |
Access to current solution parameters and matrices.
Definition at line 209 of file SolvableVisCal.h.
References casa::VisCal::currSpw(), and solveCPar_.
virtual String casa::SolvableVisCal::solveinfo | ( | ) | [virtual] |
Report solve info/params, e.g., for logging.
virtual Cube<Float>& casa::SolvableVisCal::solveParErr | ( | ) | [inline, virtual] |
Definition at line 212 of file SolvableVisCal.h.
References casa::VisCal::currSpw(), and solveParErr_.
virtual Cube<Bool>& casa::SolvableVisCal::solveParOK | ( | ) | [inline, virtual] |
Definition at line 211 of file SolvableVisCal.h.
References casa::VisCal::currSpw(), and solveParOK_.
virtual Cube<Float>& casa::SolvableVisCal::solveParSNR | ( | ) | [inline, virtual] |
Definition at line 213 of file SolvableVisCal.h.
References casa::VisCal::currSpw(), and solveParSNR_.
virtual Int casa::SolvableVisCal::solvePol | ( | ) | [inline, virtual] |
Solve for point-source X or Q,U? nominally no (0)
Reimplemented in casa::DJones.
Definition at line 125 of file SolvableVisCal.h.
virtual Cube<Float>& casa::SolvableVisCal::solveRPar | ( | ) | [inline, virtual] |
Reimplemented in casa::EPJones.
Definition at line 210 of file SolvableVisCal.h.
References casa::VisCal::currSpw(), and solveRPar_.
void casa::SolvableVisCal::sortVisSet | ( | VisSet & | vs, |
const Bool | verbose = False |
||
) | [protected] |
virtual void casa::SolvableVisCal::specify | ( | const Record & | specify | ) | [virtual] |
Fill a caltable with specified values.
Reimplemented in casa::KAntPosJones, casa::EVLASwPow, casa::KJones, casa::StandardTsys, and casa::EGainCurve.
Vector<Int>& casa::SolvableVisCal::spwMap | ( | ) | [inline] |
Definition at line 92 of file SolvableVisCal.h.
References spwMap_.
virtual Bool casa::SolvableVisCal::spwOK | ( | Int | ispw | ) | [virtual] |
New spwOK.
Reimplemented from casa::VisCal.
Vector<Complex>& casa::SolvableVisCal::srcPolPar | ( | ) | [inline] |
Access to source pol parameters.
Definition at line 221 of file SolvableVisCal.h.
References srcPolPar_.
virtual void casa::SolvableVisCal::state | ( | ) | [inline, virtual] |
Report state:
Reimplemented from casa::VisCal.
Reimplemented in casa::SolvableVisJones, and casa::SolvableVisMueller.
Definition at line 325 of file SolvableVisCal.h.
References stateSVC(), and casa::True.
virtual void casa::SolvableVisCal::stateSVC | ( | const Bool & | doVC | ) | [protected, virtual] |
Report the SVC-specific state, w/ option for VC::state()
Referenced by state().
virtual void casa::SolvableVisCal::storeNCT | ( | ) | [virtual] |
Reimplemented in casa::AMueller.
void casa::SolvableVisCal::storeNCT | ( | const String & | tableName, |
const Bool & | append | ||
) |
virtual void casa::SolvableVisCal::syncDiffMat | ( | ) | [protected, pure virtual] |
Synchronize the differentiated calibration.
Implemented in casa::SolvableVisJones, and casa::SolvableVisMueller.
void casa::SolvableVisCal::syncSolveCal | ( | ) | [protected] |
Synchronize calibration for solve context.
Bool casa::SolvableVisCal::syncSolveMeta | ( | VisBuffer & | vb, |
const Int & | fieldId | ||
) |
void casa::SolvableVisCal::syncSolvePar | ( | ) | [protected] |
Synchronize parameters for solve context.
String& casa::SolvableVisCal::tInterpType | ( | ) | [inline] |
Definition at line 90 of file SolvableVisCal.h.
References tInterpType_.
virtual void casa::SolvableVisCal::updatePar | ( | const Vector< Complex > | dCalPar, |
const Vector< Complex > | dSrcPar | ||
) | [virtual] |
Update solve parameters incrementally (additive)
Reimplemented in casa::DJones.
virtual Bool casa::SolvableVisCal::useGenericGatherForSolve | ( | ) | [inline, virtual] |
Report if calibration available for specified spw (if no CalInterp available, assume True)
Use generic data gathering mechanism for solve
Reimplemented in casa::GlinXphJones, casa::MMueller, casa::XJones, casa::XMueller, casa::DllsJones, casa::LJJones, casa::EPJones, casa::KJones, casa::GJonesSpline, casa::BJonesPoly, and casa::AMueller.
Definition at line 117 of file SolvableVisCal.h.
References casa::True.
Referenced by useGenericSolveOne().
virtual Bool casa::SolvableVisCal::useGenericSolveOne | ( | ) | [inline, virtual] |
Use generic solution engine for a single solve (usually inside the generic gathering mechanism)
Reimplemented in casa::GlinXphJones, casa::XJones, casa::DllsJones, casa::KJones, casa::BJonesPoly, and casa::AMueller.
Definition at line 121 of file SolvableVisCal.h.
References useGenericGatherForSolve().
void casa::SolvableVisCal::verifyCalTable | ( | const String & | caltablename | ) | [protected] |
Check if a cal table is appropriate.
virtual Bool casa::SolvableVisCal::verifyConstraints | ( | VisBuffGroupAcc & | vbag | ) | [virtual] |
Verify VisBuffer data sufficient for solving (wts, etc.)
virtual Bool casa::SolvableVisCal::verifyForSolve | ( | VisBuffer & | vb | ) | [virtual] |
Reimplemented in casa::LJJones, and casa::EPJones.
String casa::SolvableVisCal::apmode_ [private] |
Bool casa::SolvableVisCal::append_ [private] |
Definition at line 460 of file SolvableVisCal.h.
Referenced by append().
Double casa::SolvableVisCal::avgTimePerSolution_p [protected] |
Definition at line 429 of file SolvableVisCal.h.
uInt casa::SolvableVisCal::cafRC_p [protected] |
Definition at line 431 of file SolvableVisCal.h.
uInt casa::SolvableVisCal::caiRC_p [protected] |
Definition at line 431 of file SolvableVisCal.h.
String casa::SolvableVisCal::calTableName_ [private] |
String casa::SolvableVisCal::calTableSelect_ [private] |
Definition at line 459 of file SolvableVisCal.h.
Referenced by calTableSelect().
Vector<Matrix<Int> > casa::SolvableVisCal::chanAveBounds_ [private] |
Channel averaging bounds.
Definition at line 490 of file SolvableVisCal.h.
Referenced by chanAveBounds().
PtrBlock<Vector<Bool>*>* casa::SolvableVisCal::chanmask_ [private] |
A pointer to the external channel mask.
Definition at line 529 of file SolvableVisCal.h.
Referenced by clearChanMask(), and setChanMask().
CTPatchedInterp* casa::SolvableVisCal::ci_ [protected] |
Definition at line 424 of file SolvableVisCal.h.
String casa::SolvableVisCal::combine_ [private] |
axes to combine for solve
Definition at line 502 of file SolvableVisCal.h.
Referenced by combfld(), combine(), combobs(), combscan(), and combspw().
object that can simulate the corruption terms
Definition at line 360 of file SolvableVisCal.h.
CalSetMetaInfo casa::SolvableVisCal::csmi [protected] |
Definition at line 427 of file SolvableVisCal.h.
NewCalTable* casa::SolvableVisCal::ct_ [protected] |
New CalTable.
Definition at line 423 of file SolvableVisCal.h.
Double casa::SolvableVisCal::dataInterval_ [private] |
Solving meta-data.
Definition at line 508 of file SolvableVisCal.h.
String casa::SolvableVisCal::fInterpType_ [private] |
Definition at line 464 of file SolvableVisCal.h.
Referenced by fInterpType().
Vector<Double> casa::SolvableVisCal::fintervalCh_ [private] |
Definition at line 487 of file SolvableVisCal.h.
Referenced by fintervalCh().
Double casa::SolvableVisCal::fintervalHz_ [private] |
Definition at line 486 of file SolvableVisCal.h.
Referenced by fintervalHz().
Double casa::SolvableVisCal::fit_ [private] |
Definition at line 510 of file SolvableVisCal.h.
Double casa::SolvableVisCal::fitWt_ [private] |
Definition at line 509 of file SolvableVisCal.h.
Int casa::SolvableVisCal::focusChan_ [private] |
In-focus channel for single-chan solves on multi-chan data.
Reimplemented from casa::VisCal.
Definition at line 505 of file SolvableVisCal.h.
Referenced by focusChan().
String casa::SolvableVisCal::fsolint_ [private] |
User-specified freq-dep solint info.
Definition at line 485 of file SolvableVisCal.h.
Referenced by fsolint().
LogIO casa::SolvableVisCal::logsink_p [private] |
Double casa::SolvableVisCal::maxTimePerSolution_p [protected] |
Definition at line 429 of file SolvableVisCal.h.
Int casa::SolvableVisCal::minblperant_ [private] |
Min baselines per ant for solve.
Definition at line 473 of file SolvableVisCal.h.
Referenced by minblperant().
Float casa::SolvableVisCal::minSNR_ [private] |
Double casa::SolvableVisCal::minTimePerSolution_p [protected] |
Definition at line 429 of file SolvableVisCal.h.
Bool casa::SolvableVisCal::onthefly_ [private] |
Definition at line 540 of file SolvableVisCal.h.
Referenced by simOnTheFly().
Int casa::SolvableVisCal::parType_ [protected] |
Definition at line 420 of file SolvableVisCal.h.
Referenced by setParType().
Double casa::SolvableVisCal::preavg_ [private] |
String casa::SolvableVisCal::simint_ [private] |
Bool casa::SolvableVisCal::simulated_ [private] |
Simulation flag.
Definition at line 535 of file SolvableVisCal.h.
Referenced by isSimulated(), and setSimulated().
String casa::SolvableVisCal::solint_ [private] |
User-specified time-dep solint (string)
Definition at line 482 of file SolvableVisCal.h.
Referenced by solint().
Bool casa::SolvableVisCal::solnorm_ [private] |
Do solution normalization after a solve.
Definition at line 496 of file SolvableVisCal.h.
Referenced by solnorm().
PtrBlock<Cube<Complex>*> casa::SolvableVisCal::solveAllCPar_ [private] |
Definition at line 520 of file SolvableVisCal.h.
Referenced by solveAllCPar().
PtrBlock<Cube<Float>*> casa::SolvableVisCal::solveAllParErr_ [private] |
Definition at line 523 of file SolvableVisCal.h.
Referenced by solveAllParErr().
PtrBlock<Cube<Bool>*> casa::SolvableVisCal::solveAllParOK_ [private] |
Definition at line 522 of file SolvableVisCal.h.
Referenced by solveAllParOK().
PtrBlock<Cube<Float>*> casa::SolvableVisCal::solveAllParSNR_ [private] |
Definition at line 524 of file SolvableVisCal.h.
Referenced by solveAllParSNR().
PtrBlock<Cube<Float>*> casa::SolvableVisCal::solveAllRPar_ [private] |
Definition at line 521 of file SolvableVisCal.h.
Referenced by solveAllRPar().
PtrBlock<Cube<Complex>*> casa::SolvableVisCal::solveCPar_ [private] |
Bool casa::SolvableVisCal::solved_ [private] |
Solved-for flag.
Definition at line 476 of file SolvableVisCal.h.
Referenced by isSolved(), and setSolved().
PtrBlock<Cube<Float>*> casa::SolvableVisCal::solveParErr_ [private] |
Definition at line 517 of file SolvableVisCal.h.
Referenced by solveParErr().
PtrBlock<Cube<Bool>*> casa::SolvableVisCal::solveParOK_ [private] |
Definition at line 516 of file SolvableVisCal.h.
Referenced by solveParOK().
PtrBlock<Cube<Float>*> casa::SolvableVisCal::solveParSNR_ [private] |
Definition at line 518 of file SolvableVisCal.h.
Referenced by solveParSNR().
PtrBlock<Cube<Float>*> casa::SolvableVisCal::solveRPar_ [private] |
Definition at line 515 of file SolvableVisCal.h.
Referenced by solveRPar().
Vector<Int> casa::SolvableVisCal::spwMap_ [private] |
Vector<Bool> casa::SolvableVisCal::spwOK_ [protected] |
Reimplemented in casa::EGainCurve.
Definition at line 425 of file SolvableVisCal.h.
Vector<Complex> casa::SolvableVisCal::srcPolPar_ [private] |
Definition at line 526 of file SolvableVisCal.h.
Referenced by srcPolPar().
Timer casa::SolvableVisCal::timer_p [protected] |
Definition at line 432 of file SolvableVisCal.h.
Referenced by markTimer().
String casa::SolvableVisCal::tInterpType_ [private] |
Vector<Int> casa::SolvableVisCal::urefantlist_ [private] |
Definition at line 430 of file SolvableVisCal.h.
Definition at line 430 of file SolvableVisCal.h.