casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
casa::SolvableVisCal Class Reference

#include <SolvableVisCal.h>

Inheritance diagram for casa::SolvableVisCal:
casa::VisCal casa::SolvableVisMueller casa::ANoise casa::MMueller casa::SolvableVisJones casa::XMueller casa::AMueller casa::MfMueller casa::DJones casa::EGainCurve casa::EPJones casa::GJones casa::JJones casa::LJJones casa::TJones casa::XJones

List of all members.

Classes

struct  fluxScaleStruct

Public Types

typedef struct
casa::SolvableVisCal::fluxScaleStruct 
fluxScaleStruct

Public Member Functions

 SolvableVisCal (VisSet &vs)
 SolvableVisCal (const Int &nAnt)
virtual ~SolvableVisCal ()
StringcalTableName ()
 Access to user-supplied parameters.
StringcalTableSelect ()
Boolappend ()
StringtInterpType ()
StringfInterpType ()
Vector< Int > & spwMap ()
Intrefant ()
Vector< Int > & refantlist ()
Intminblperant ()
Stringapmode ()
Stringsolint ()
Stringfsolint ()
Doublepreavg ()
Boolsolnorm ()
FloatminSNR ()
Stringcombine ()
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)
IntfocusChan ()
 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.
DoublefintervalHz ()
 Freq-dep solint values.
DoublefintervalCh ()
Matrix< IntchanAveBounds ()
Matrix< IntchanAveBounds (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
Stringsimint ()
 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

CalCorruptorcorruptor_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)
LogIOlogSink ()
 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.
BoolsimOnTheFly ()
 RI todo implement calcOneJones like calcAllMueller calculate terms during apply, or up front during setSim?

Protected Attributes

Int parType_
NewCalTablect_
 New CalTable.
CTPatchedInterpci_
Vector< BoolspwOK_
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< IntspwMap_
 Spw mapping.
Vector< Inturefantlist_
 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< DoublefintervalCh_
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_

Detailed Description

Definition at line 67 of file SolvableVisCal.h.


Member Typedef Documentation


Constructor & Destructor Documentation

Default ctor is private.


Member Function Documentation

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.

Definition at line 96 of file SolvableVisCal.h.

References apmode_.

Definition at line 89 of file SolvableVisCal.h.

References append_.

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.

Access to user-supplied parameters.

Definition at line 87 of file SolvableVisCal.h.

References calTableName_.

Definition at line 88 of file SolvableVisCal.h.

References calTableSelect_.

Definition at line 205 of file SolvableVisCal.h.

References chanAveBounds_, and casa::VisCal::currSpw().

Definition at line 206 of file SolvableVisCal.h.

References chanAveBounds_.

Definition at line 337 of file SolvableVisCal.h.

References chanmask_.

Definition at line 105 of file SolvableVisCal.h.

References combine_, and casa::upcase().

Definition at line 103 of file SolvableVisCal.h.

References combine_.

Definition at line 107 of file SolvableVisCal.h.

References combine_, and casa::upcase().

Definition at line 106 of file SolvableVisCal.h.

References combine_, and casa::upcase().

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]
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.

Definition at line 91 of file SolvableVisCal.h.

References fInterpType_.

Definition at line 204 of file SolvableVisCal.h.

References casa::VisCal::currSpw(), and fintervalCh_.

Freq-dep solint values.

Definition at line 203 of file SolvableVisCal.h.

References fintervalHz_.

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.

Access to focus channel.

Definition at line 144 of file SolvableVisCal.h.

References focusChan_.

virtual void casa::SolvableVisCal::formSolveSNR ( ) [virtual]

Form solution SNR.

Reimplemented in casa::DJones.

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 
)

These inflate methods soon to deprecate (gmoellen, 20121212) Inflate the pristine CalSet (from VisSet info)

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.

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.

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.

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]
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]
virtual void casa::SolvableVisCal::loadMemCalTable ( String  ctname,
String  field = "" 
) [virtual]

Reimplemented in casa::BJonesPoly.

LogIO& casa::SolvableVisCal::logSink ( ) [inline, protected]

Logger.

Definition at line 413 of file SolvableVisCal.h.

References logsink_p.

virtual void casa::SolvableVisCal::markTimer ( ) [inline, virtual]

Definition at line 343 of file SolvableVisCal.h.

References casa::Timer::mark(), and timer_p.

Definition at line 95 of file SolvableVisCal.h.

References minblperant_.

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.

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.

Definition at line 93 of file SolvableVisCal.h.

References refantlist().

Definition at line 94 of file SolvableVisCal.h.

References urefantlist_.

Referenced by refant().

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]
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]

Set the application parameters.

Reimplemented from casa::VisCal.

Reimplemented in casa::AMueller.

virtual void casa::SolvableVisCal::setApply ( const Record apply) [virtual]
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.

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]


Set the simulation parameters

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]
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]

Set to-be-solved-for flag.

Definition at line 371 of file SolvableVisCal.h.

References solved_.

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.

Set up data and model for pol solve.

virtual String casa::SolvableVisCal::siminfo ( ) [virtual]

Simulation info/params, suitable for logging.

Reimplemented from casa::VisCal.

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]

Size up the solving arrays, etc.

(supports combine)

Reimplemented in casa::AMueller.

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.

Definition at line 97 of file SolvableVisCal.h.

References solint_.

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.

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 
)

Synchronize the meta data with a solvable VisBuffer (returns False if VisBuffer has no valid data)

void casa::SolvableVisCal::syncSolvePar ( ) [protected]

Synchronize parameters for solve context.

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.

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.

Verify VisBuffer data sufficient for solving (wts, etc.)

Reimplemented in casa::LJJones, and casa::EPJones.


Member Data Documentation

Solving mode.

Definition at line 479 of file SolvableVisCal.h.

Referenced by apmode().

Definition at line 460 of file SolvableVisCal.h.

Referenced by append().

Definition at line 429 of file SolvableVisCal.h.

Definition at line 431 of file SolvableVisCal.h.

Definition at line 431 of file SolvableVisCal.h.

Cal table name.

Definition at line 458 of file SolvableVisCal.h.

Referenced by calTableName().

Definition at line 459 of file SolvableVisCal.h.

Referenced by calTableSelect().

Channel averaging bounds.

Definition at line 490 of file SolvableVisCal.h.

Referenced by chanAveBounds().

A pointer to the external channel mask.

Definition at line 529 of file SolvableVisCal.h.

Referenced by clearChanMask(), and setChanMask().

Definition at line 424 of file SolvableVisCal.h.

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.

Definition at line 427 of file SolvableVisCal.h.

New CalTable.

Definition at line 423 of file SolvableVisCal.h.

Solving meta-data.

Definition at line 508 of file SolvableVisCal.h.

Definition at line 464 of file SolvableVisCal.h.

Referenced by fInterpType().

Definition at line 487 of file SolvableVisCal.h.

Referenced by fintervalCh().

Definition at line 486 of file SolvableVisCal.h.

Referenced by fintervalHz().

Definition at line 510 of file SolvableVisCal.h.

Definition at line 509 of file SolvableVisCal.h.

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().

User-specified freq-dep solint info.

Definition at line 485 of file SolvableVisCal.h.

Referenced by fsolint().

LogIO.

Definition at line 532 of file SolvableVisCal.h.

Referenced by logSink().

Definition at line 429 of file SolvableVisCal.h.

Min baselines per ant for solve.

Definition at line 473 of file SolvableVisCal.h.

Referenced by minblperant().

SNR threshold.

Definition at line 499 of file SolvableVisCal.h.

Referenced by minSNR().

Definition at line 429 of file SolvableVisCal.h.

Definition at line 540 of file SolvableVisCal.h.

Referenced by simOnTheFly().

Definition at line 420 of file SolvableVisCal.h.

Referenced by setParType().

Preavering interval.

Definition at line 493 of file SolvableVisCal.h.

Referenced by preavg().

simulation interval

Definition at line 538 of file SolvableVisCal.h.

Referenced by simint().

Simulation flag.

Definition at line 535 of file SolvableVisCal.h.

Referenced by isSimulated(), and setSimulated().

User-specified time-dep solint (string)

Definition at line 482 of file SolvableVisCal.h.

Referenced by solint().

Do solution normalization after a solve.

Definition at line 496 of file SolvableVisCal.h.

Referenced by solnorm().

Definition at line 520 of file SolvableVisCal.h.

Referenced by solveAllCPar().

Definition at line 523 of file SolvableVisCal.h.

Referenced by solveAllParErr().

Definition at line 522 of file SolvableVisCal.h.

Referenced by solveAllParOK().

Definition at line 524 of file SolvableVisCal.h.

Referenced by solveAllParSNR().

Definition at line 521 of file SolvableVisCal.h.

Referenced by solveAllRPar().

Current parameters.

Definition at line 514 of file SolvableVisCal.h.

Referenced by solveCPar().

Solved-for flag.

Definition at line 476 of file SolvableVisCal.h.

Referenced by isSolved(), and setSolved().

Definition at line 517 of file SolvableVisCal.h.

Referenced by solveParErr().

Definition at line 516 of file SolvableVisCal.h.

Referenced by solveParOK().

Definition at line 518 of file SolvableVisCal.h.

Referenced by solveParSNR().

Definition at line 515 of file SolvableVisCal.h.

Referenced by solveRPar().

Spw mapping.

Definition at line 467 of file SolvableVisCal.h.

Referenced by spwMap().

Reimplemented in casa::EGainCurve.

Definition at line 425 of file SolvableVisCal.h.

Definition at line 526 of file SolvableVisCal.h.

Referenced by srcPolPar().

Definition at line 432 of file SolvableVisCal.h.

Referenced by markTimer().

Interpolation types.

Definition at line 463 of file SolvableVisCal.h.

Referenced by tInterpType().

Refant.

Definition at line 470 of file SolvableVisCal.h.

Referenced by refantlist().

Definition at line 430 of file SolvableVisCal.h.

Definition at line 430 of file SolvableVisCal.h.


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