casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
casa::SolvableVisCal Class Referenceabstract

#include <SolvableVisCal.h>

Inheritance diagram for casa::SolvableVisCal:
casa::VisCal casa::SingleDishSkyCal casa::SolvableVisMueller casa::SingleDishOtfCal casa::SingleDishPositionSwitchCal casa::SingleDishRasterCal casa::ANoise casa::SolvableVisJones casa::XMueller casa::XMueller casa::AccorJones casa::DJones casa::EGainCurve casa::EPJones casa::FJones casa::GJones casa::JJones casa::LJJones casa::TJones casa::XJones casa::XJones

Classes

struct  fluxScaleStruct
 

Public Types

typedef struct
casa::SolvableVisCal::fluxScaleStruct 
fluxScaleStruct
 
- Public Types inherited from casa::VisCal
enum  Type {
  Test,
  ANoise,
  M,
  KAntPos,
  B,
  K,
  G,
  J,
  D,
  X,
  C,
  P,
  E,
  T,
  F,
  A,
  ALL
}
 Allowed types of VisCal matrices - 'correct' order enum Type{UVMOD,Mf,M,K,B,G,D,C,E,P,T,EP,F}; enum Type{Test=0,ANoise,M,KAntPos,K,B,G,J,D,X,C,P,E,T,F,A,ALL};. More...
 
enum  ParType {
  Co,
  Re,
  CoRe
}
 Enumeration of parameter types (casacore::Complex, Real, or Both) More...
 

Public Member Functions

 SolvableVisCal (VisSet &vs)
 
 SolvableVisCal (casacore::String msname, casacore::Int MSnAnt, casacore::Int MSnSpw)
 
 SolvableVisCal (const MSMetaInfoForCal &msmc)
 
 SolvableVisCal (const casacore::Int &nAnt)
 
virtual ~SolvableVisCal ()
 
casacore::StringcalTableName ()
 Access to user-supplied parameters. More...
 
casacore::StringcalTableSelect ()
 
casacore::Boolappend ()
 
casacore::StringtInterpType ()
 
casacore::StringfInterpType ()
 
casacore::Vector< casacore::Int > & spwMap ()
 
casacore::Stringrefantmode ()
 
casacore::Intrefant ()
 
casacore::Vector< casacore::Int > & refantlist ()
 
casacore::Intminblperant ()
 
casacore::Stringapmode ()
 
casacore::Stringsolmode ()
 
casacore::Vector
< casacore::Float > & 
rmsthresh ()
 
casacore::Stringsolint ()
 
casacore::Stringfsolint ()
 
casacore::Doublepreavg ()
 
const SolNormsolNorm ()
 
casacore::Bool solnorm ()
 
casacore::FloatminSNR ()
 
casacore::Stringcombine ()
 
casacore::Bool combspw ()
 
casacore::Bool combfld ()
 
casacore::Bool combscan ()
 
casacore::Bool combobs ()
 
virtual casacore::Int nTotalPar ()=0
 Total number of (complex) parameters per solve (specialize to jive with ant- or bln-basedness, etc.) More...
 
virtual casacore::Bool useGenericGatherForSolve ()
 Report if calibration available for specified spw (if no CalInterp available, assume true) More...
 
virtual casacore::Bool useGenericSolveOne ()
 Use generic solution engine for a single solve (usually inside the generic gathering mechanism) More...
 
virtual casacore::Int solvePol ()
 Solve for point-source X or Q,U? nominally no (0) More...
 
virtual casacore::Bool normalizable ()=0
 Does normalization by MODEL_DATA commute with this VisCal? (if so, permits pre-solve time-averaging) More...
 
virtual casacore::Bool divideByStokesIModelForSolve ()
 Should data and model be divided by Stokes I model before average+solve? (Nominally false, for now) More...
 
virtual casacore::Bool accumulatable ()
 Is this type capable of accumulation? (nominally no) More...
 
virtual casacore::Bool smoothable ()
 Is this type capable of smoothing? (nominally no) More...
 
virtual casacore::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) More...
 
casacore::IntfocusChan ()
 Access to focus channel. More...
 
casacore::Bool isSolved ()
 Is this ready to solve? More...
 
virtual casacore::Bool isSolvable ()
 Is this solveable? (via this interface, nominally yes) More...
 
virtual void setApply ()
 Set the application parameters. More...
 
virtual void setApply (const casacore::Record &apply)
 
virtual void setCallib (const casacore::Record &callib, const casacore::MeasurementSet &selms)
 
virtual void setModel (const casacore::String &)
 
virtual casacore::String applyinfo ()
 Report apply info/params, e.g. More...
 
virtual void setSolve ()
 Set the solving parameters. More...
 
virtual void setSolve (const casacore::Record &solve)
 
virtual casacore::String solveinfo ()
 Report solve info/params, e.g., for logging. More...
 
virtual void setAccumulate (VisSet &vs, const casacore::String &table, const casacore::String &select, const casacore::Double &t, const casacore::Int &refAnt=-1)
 Arrange for accumulation. More...
 
virtual casacore::Complex defaultPar ()
 Default value for parameters. More...
 
virtual casacore::Float defaultRPar ()
 
virtual casacore::Complex defaultCPar ()
 
virtual void setSpecify (const casacore::Record &specify)
 Arrange to build a cal table from specified values. More...
 
virtual void specify (const casacore::Record &specify)
 Fill a caltable with specified values. More...
 
virtual casacore::Int sizeUpSolve (VisSet &vs, casacore::Vector< casacore::Int > &nChunkPerSol)
 Size up the solving arrays, etc. More...
 
void inflate (VisSet &vs, const casacore::Bool &fillMeta=false)
 These inflate methods soon to deprecate (gmoellen, 20121212) Inflate the pristine CalSet (from VisSet info) More...
 
virtual void inflate (const casacore::Vector< casacore::Int > &nChanDat, const casacore::Vector< casacore::Int > &startChanDat, const casacore::Vector< casacore::Int > &nSlot)
 Inflate the pristine CalSet (generically) More...
 
virtual void guessPar (VisBuffer &vb)=0
 Hazard a guess at the parameters (solveCPar) given the data. More...
 
virtual void guessPar (SDBList &)
 
double solTimeInterval () const
 Time-dep solution interval (VI2) More...
 
casacore::DoublefintervalHz ()
 Freq-dep solint values (const?!) More...
 
casacore::DoublefintervalCh ()
 
const casacore::Vector
< casacore::Double > & 
fintervalChV ()
 
casacore::Matrix< casacore::IntchanAveBounds ()
 
casacore::Matrix< casacore::IntchanAveBounds (casacore::Int spw)
 
virtual casacore::Cube
< casacore::Complex > & 
solveCPar ()
 Access to current solution parameters and matrices. More...
 
virtual casacore::Cube
< casacore::Float > & 
solveRPar ()
 
virtual casacore::Cube
< casacore::Bool > & 
solveParOK ()
 
virtual casacore::Cube
< casacore::Float > & 
solveParErr ()
 
virtual casacore::Cube
< casacore::Float > & 
solveParSNR ()
 
virtual casacore::Cube
< casacore::Complex > & 
solveAllCPar ()
 
virtual casacore::Cube
< casacore::Float > & 
solveAllRPar ()
 
virtual casacore::Cube
< casacore::Bool > & 
solveAllParOK ()
 
virtual casacore::Cube
< casacore::Float > & 
solveAllParErr ()
 
virtual casacore::Cube
< casacore::Float > & 
solveAllParSNR ()
 
virtual void solveAllCPar (casacore::Int spw, casacore::Cube< casacore::Complex > &cparSpw)
 Access to per-spw solution parameters and matrices. More...
 
virtual void solveAllRPar (casacore::Int spw, casacore::Cube< casacore::Float > &rparSpw)
 
virtual void solveAllParOK (casacore::Int spw, casacore::Cube< casacore::Bool > &parokSpw)
 
virtual void solveAllParErr (casacore::Int spw, casacore::Cube< casacore::Float > &parerrSpw)
 
virtual void solveAllParSNR (casacore::Int spw, casacore::Cube< casacore::Float > &parsnrSpw)
 
casacore::Vector
< casacore::Complex > & 
srcPolPar ()
 Access to source pol parameters. More...
 
casacore::Bool syncSolveMeta (VisBuffer &vb, const casacore::Int &fieldId)
 Synchronize the meta data with a solvable VisBuffer (returns false if VisBuffer has no valid data) More...
 
casacore::Bool syncSolveMeta (VisBuffGroupAcc &vbga)
 
void syncSolveMeta (SDBList &sdbs)
 
void overrideObsScan (casacore::Int obs, casacore::Int scan)
 Provide for override of currScan and currObs. More...
 
virtual void enforceAPonData (VisBuffer &vb)
 If apmode() is "A", convert vb's visibilities to amp + 0i. More...
 
virtual casacore::Bool verifyConstraints (VisBuffGroupAcc &vbag)
 Verify VisBuffer data sufficient for solving (wts, etc.) More...
 
virtual casacore::Bool verifyConstraints (SDBList &sdbs)
 
virtual casacore::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) More...
 
virtual void selfSolveOne (VisBuffGroupAcc &vs)
 
virtual void selfSolveOne (SDBList &)
 
void setUpForPolSolve (VisBuffer &vb)
 Set up data and model for pol solve. More...
 
virtual void setUpForPolSolve (vi::VisBuffer2 &)
 A VB2-specific version which depends on local specialization (this may be further refined later) More...
 
virtual void differentiate (CalVisBuffer &cvb)=0
 Differentiate VB model w.r.t. More...
 
virtual void differentiate (SolveDataBuffer &)
 
virtual void differentiate (VisBuffer &vb, casacore::Cube< casacore::Complex > &V, casacore::Array< casacore::Complex > &dV, casacore::Matrix< casacore::Bool > &Vflg)=0
 
virtual void differentiate (VisBuffer &, VisBuffer &, VisBuffer &, casacore::Matrix< casacore::Bool > &)
 
virtual void diffSrc (VisBuffer &vb, casacore::Array< casacore::Complex > &dV)=0
 Differentiate VB model w.r.t. More...
 
virtual void updatePar (const casacore::Vector< casacore::Complex > dCalPar, const casacore::Vector< casacore::Complex > dSrcPar)
 Update solve parameters incrementally (additive) More...
 
virtual void updatePar (const casacore::Vector< casacore::Complex > dCalPar)
 
virtual void formSolveSNR ()
 Form solution SNR. More...
 
virtual void applySNRThreshold ()
 Apply SNR threshold. More...
 
virtual void reReference ()=0
 Apply refant (implemented in SVJ) More...
 
virtual casacore::Record actionRec ()
 Retrieve the cal flag info as a record. More...
 
virtual casacore::Record solveActionRec ()
 Retrieve solve-related info via Record. More...
 
virtual void accumulate (SolvableVisCal *incr, const casacore::Vector< casacore::Int > &fields)=0
 Accumulate another VisCal onto this one. More...
 
virtual void smooth (casacore::Vector< casacore::Int > &fields, const casacore::String &smtype, const casacore::Double &smtime)
 
virtual void reportSolvedQU ()
 Report solved-for QU. More...
 
virtual void createMemCalTable ()
 New CalTable handling. More...
 
virtual void keep1 (casacore::Int ichan)
 
virtual void keepNCT ()
 
virtual void storeNCT ()
 
void storeNCT (const casacore::String &tableName, const casacore::Bool &append)
 
virtual void loadMemCalTable (casacore::String ctname, casacore::String field="")
 
virtual casacore::Bool spwOK (casacore::Int ispw)
 New spwOK. More...
 
virtual casacore::Bool VBOKforCalApply (vi::VisBuffer2 &vb)
 Is VB OK for calibration? More...
 
virtual casacore::Bool calAvailable (vi::VisBuffer2 &)
 Calibration available? More...
 
virtual void globalPostSolveTinker ()
 Post solve tinkering (generic version) More...
 
virtual void enforceAPonSoln ()
 Divide all solutions by their amplitudes. More...
 
virtual void normalize ()
 Normalize a solution (generic implementation) More...
 
virtual void fluxscale (const casacore::String &outfile, const casacore::Vector< casacore::Int > &refFieldIn, const casacore::Vector< casacore::Int > &tranFieldIn, const casacore::Vector< casacore::Int > &inRefSpwMap, const casacore::Vector< casacore::String > &fldNames, const casacore::Float &inGainThres, const casacore::String &antSel, const casacore::String &timerangeSel, const casacore::String &scanSel, fluxScaleStruct &oFluxScaleStruct, const casacore::String &oListFile, const casacore::Bool &incremental, const casacore::Int &fitorder, const casacore::Bool &display)=0
 Determine and apply flux density scaling. More...
 
virtual void state ()
 Report state: More...
 
virtual VisCalEnum::VCParType setParType (VisCalEnum::VCParType type)
 
virtual void currMetaNote ()
 
virtual void listCal (const casacore::Vector< casacore::Int > ufldids, const casacore::Vector< casacore::Int > uantids, const casacore::Matrix< casacore::Int > uchanids, const casacore::String &listfile="", const casacore::Int &pagerows=50)=0
 
void setChanMask (casacore::PtrBlock< casacore::Vector< casacore::Bool > * > &chanmask)
 Handle external channel mask. More...
 
void clearChanMask ()
 
void applyChanMask (VisBuffer &vb)
 
virtual void printActivity (const casacore::Int nSlots, const casacore::Int slotNo, const casacore::Int fieldId, const casacore::Int spw, const casacore::Int nSolutions)
 Log periodic solver activity. More...
 
virtual void markTimer ()
 
virtual void setSimulate (VisSet &vs, casacore::Record &simpar, casacore::Vector< casacore::Double > &solTimes)
 

Set the simulation parameters More...

 
virtual void createCorruptor (const VisIter &vi, const casacore::Record &simpar, const int nSim)
 make a corruptor in a VC-specific way More...
 
casacore::Stringsimint ()
 access to simulation variables that are general to all VisCals More...
 
virtual casacore::String siminfo ()
 Simulation info/params, suitable for logging. More...
 
casacore::Bool isSimulated ()
 Is this calibration simulated? More...
 
casacore::Int sizeUpSim (VisSet &vs, casacore::Vector< casacore::Int > &nChunkPerSol, casacore::Vector< casacore::Double > &solTimes)
 calculate # required slots to simulate this SVC More...
 
virtual void setMeta (int obs, int scan, double time, int spw, const casacore::Vector< double > &freq, int fld)
 VI2-related refactor-----------------------------------—. More...
 
virtual int sizeSolveParCurrSpw (int nVisChan)
 Reshape solvePar* arrays for the currSpw() (ensitive to freqDepPar()) (VI2: replaces initSolvePar part of sizeUpSolve) More...
 
virtual void setDefSolveParCurrSpw (bool sync=false)
 Set parameters to def values in the currSpw(), and optionally sync everything. More...
 
void reParseSolintForVI2 ()
 Parse solint in VI2 context. More...
 
virtual void createMemCalTable2 ()
 Generate the in-memory caltable (empty) NB: no subtable revisions. More...
 
virtual void setOrVerifyCTFrequencies (int spw)
 Set (or verify) freq info in output cal table for specified spw. More...
 
- Public Member Functions inherited from casa::VisCal
 VisCal (VisSet &vs)
 
 VisCal (casacore::String msname, casacore::Int MSnAnt, casacore::Int MSnSpw)
 
 VisCal (const MSMetaInfoForCal &msmc)
 
 VisCal (const casacore::Int &nAnt)
 
virtual ~VisCal ()
 
virtual Type type ()=0
 Return the type of this calibration matrix (actual type of derived class). More...
 
virtual casacore::String typeName ()
 Return type name as string. More...
 
virtual casacore::String longTypeName ()
 
virtual VisCalEnum::MatrixType matrixType ()
 Return casacore::Matrix type. More...
 
virtual VisCalEnum::VCParType parType ()
 Return the parameter type (nominally complex) More...
 
virtual casacore::Int nPar ()=0
 Number of pars per ant/bln (Must be implemented in specializations!) More...
 
virtual casacore::Vector
< casacore::Bool
spwOK ()
 Report calibration availability per spw (always true for non-tabular?) More...
 
virtual casacore::Bool freqDepPar ()
 Frequency-dependent Parameters? Nominally not. More...
 
const casacore::IntnChanPar () const
 Number of par channels in current spw. More...
 
virtual casacore::Bool freqDepMat ()
 Frequency-dependent Matrices? Nominally same as freqDepPar. More...
 
virtual casacore::Bool freqDepCalWt ()
 Freq-dep Weight scaling? // almost always false. More...
 
virtual casacore::Bool timeDepMat ()
 Matrices time-dependent per parameter set (nominally no) More...
 
casacore::Bool isApplied ()
 Is this calibration matrix to be applied? More...
 
virtual casacore::Doubleinterval ()
 Return the time interval over which this calibration is constant. More...
 
casacore::BoolcalWt ()
 Trigger calibration of weights. More...
 
virtual void correct (VisBuffer &vb, casacore::Bool trial=false)
 Apply calibration to data in VisBuffer (correct casacore::Data or corrupt Model) (in-place versions) More...
 
virtual void correct2 (vi::VisBuffer2 &vb, casacore::Bool trial=false, casacore::Bool doWtSp=false, casacore::Bool dosync=true)
 
virtual void corrupt (VisBuffer &vb)
 
virtual void corrupt2 (vi::VisBuffer2 &vb)
 
virtual void correct (VisBuffer &vb, casacore::Cube< casacore::Complex > &Vout, casacore::Bool trial=false)
 Apply calibration to data in VisBuffer; (alternate output versions) More...
 
virtual void corrupt (VisBuffer &vb, casacore::Cube< casacore::Complex > &Mout)
 
virtual void corrupt2 (vi::VisBuffer2 &vb, casacore::Cube< casacore::Complex > &Mout)
 
virtual void initCalFlagCount ()
 Flag counting. More...
 
void setPrtlev (const casacore::Int &prtlev)
 Set the print level. More...
 
casacore::Int blnidx (const casacore::Int &a1, const casacore::Int &a2)
 Baseline index from antenna indices: (assumes a1<=a2 !!) More...
 
casacore::StringextraTag ()
 
virtual void sizeApplyParCurrSpw (int nVisChan)
 Reshape solvePar* arrays for the currSpw() (sensitive to freqDepPar()) More...
 
virtual void setDefApplyParCurrSpw (bool sync=false, bool doInv=false)
 Set parameters to def values in the currSpw(), and optionally sync everything. More...
 
virtual void setApplyParCurrSpw (const casacore::Cube< casacore::Complex > cpar, bool sync=false, bool doInv=false)
 Set parameters to specified values in the currSpw(), and optionally sync matrices. More...
 
virtual void setApplyParCurrSpw (const casacore::Cube< float > rpar, bool sync=false, bool doInv=false)
 
virtual casacore::Cube
< casacore::Complex > & 
currCPar ()
 Access (public) to current solution parameters and matrices. More...
 
virtual casacore::Cube
< casacore::Float > & 
currRPar ()
 
virtual casacore::Cube
< casacore::Bool > & 
currParOK ()
 

Public Attributes

CalCorruptorcorruptor_p
 object that can simulate the corruption terms More...
 

Protected Member Functions

void setSolved (const casacore::Bool &flag)
 Set to-be-solved-for flag. More...
 
virtual void initSolvePar ()=0
 Initialize solve parameters (shape) More...
 
virtual void invalidateDiffCalMat ()=0
 Invalidate diff cal matrices generically. More...
 
virtual void setSolveChannelization (VisSet &vs)
 Set matrix channelization according to a VisSet. More...
 
virtual void convertHzToCh ()
 Convert Hz to Ch in fsolint. More...
 
virtual void setFracChanAve ()
 Calculate chan averaging bounds. More...
 
void inflateNCTwithMetaData (VisSet &vs)
 Inflate an NCT w/ meta-data according to a VisSet (for accum) More...
 
void syncSolveCal ()
 Synchronize calibration for solve context. More...
 
void syncSolvePar ()
 Synchronize parameters for solve context. More...
 
virtual void calcPar ()
 Calculate parameters by some means (e.g., interpolation from a CalSet) More...
 
virtual void calcParByCLPP ()
 
virtual void syncDiffMat ()=0
 Synchronize the differentiated calibration. More...
 
virtual void stateSVC (const casacore::Bool &doVC)
 Report the SVC-specific state, w/ option for VC::state() More...
 
casacore::Complex normSolnArray (casacore::Array< casacore::Complex > &sol, const casacore::Array< casacore::Bool > &solOK, const casacore::Bool doPhase=false)
 Normalize a (complex) solution array (generic) More...
 
virtual casacore::Float calcPowerNorm (casacore::Array< casacore::Float > &amp, const casacore::Array< casacore::Bool > &ok)=0
 
casacore::LogIOlogSink ()
 Logger. More...
 
void verifyCalTable (const casacore::String &caltablename)
 Check if a cal table is appropriate. More...
 
void sortVisSet (VisSet &vs, const casacore::Bool verbose=false)
 
void setSimulated (const casacore::Bool &flag)
 Set state flag to simulate cal terms. More...
 
casacore::BoolsimOnTheFly ()
 RI todo implement calcOneJones like calcAllMueller calculate terms during apply, or up front during setSim? More...
 
- Protected Member Functions inherited from casa::VisCal
void setApplied (const casacore::Bool &flag)
 Set applied state flag. More...
 
casacore::StringmsName ()
 
casacore::IntnSpw ()
 General Shape Info. More...
 
casacore::IntnAnt ()
 
casacore::IntnBln ()
 
virtual casacore::IntnElem ()=0
 The number of sets of parameters under consideration. More...
 
virtual casacore::Int nCalMat ()=0
 Number of Calibration matrices on ant/bln axis. More...
 
casacore::IntcurrSpw ()
 Current in-focus spw. More...
 
casacore::DoublelastTime ()
 Current coords. More...
 
casacore::DoublecurrTime ()
 
casacore::IntcurrScan ()
 
casacore::IntcurrObs ()
 
casacore::IntcurrField ()
 
casacore::IntcurrIntent ()
 
casacore::Vector
< casacore::Double > & 
currFreq ()
 
casacore::DoublerefTime ()
 
casacore::DoublerefFreq ()
 
casacore::IntnChanPar ()
 Current spectral shapes. More...
 
casacore::IntnChanMat ()
 
casacore::IntstartChan ()
 
casacore::Vector< casacore::Int > & nChanParList ()
 
casacore::Vector< casacore::Int > & nChanMatList ()
 
casacore::Vector< casacore::Int > & startChanList ()
 
VisVectorV ()
 Access to matrix renderings of Visibilities. More...
 
void invalidateP ()
 Validation of calibration parameters. More...
 
void validateP ()
 
casacore::Bool PValid ()
 
virtual void invalidateCalMat ()=0
 Invalidate cal matrices generically. More...
 
casacore::Cube< casacore::Float > & currWtScale ()
 Access to weight-scaling factors. More...
 
virtual void countInFlag (const VisBuffer &vb)
 Flag counting. More...
 
virtual void countInFlag2 (const vi::VisBuffer2 &vb)
 
virtual void countOutFlag (const VisBuffer &vb)
 
virtual void countOutFlag2 (const vi::VisBuffer2 &vb)
 
virtual void applyCal (VisBuffer &vb, casacore::Cube< casacore::Complex > &Vout, casacore::Bool trial=false)=0
 Row-by-row apply to a casacore::Cube<casacore::Complex> (generic) More...
 
virtual void applyCal2 (vi::VisBuffer2 &vb, casacore::Cube< casacore::Complex > &Vout, casacore::Cube< casacore::Float > &Wout, casacore::Bool trial=false)=0
 
virtual void syncCal (const VisBuffer &vb, const casacore::Bool &doInv=false)
 Synchronize "gains" with a VisBuffer or another VisCal. More...
 
virtual void syncCal2 (const vi::VisBuffer2 &vb, const casacore::Bool &doInv=false)
 
virtual void syncCal (VisCal &vc)
 
virtual void syncMeta (const VisBuffer &vb)
 Set internal meta data from a VisBuffer or another VisCal. More...
 
virtual void syncMeta2 (const vi::VisBuffer2 &vb)
 
void syncMeta (VisCal &vc)
 
void syncMeta (const casacore::Int &spw, const casacore::Double &time, const casacore::Int &field, const casacore::Vector< casacore::Double > &freq, const casacore::Int &nchan)
 
void setCalChannelization (const casacore::Int &nChanDat)
 Set the calibration matrix channelization. More...
 
void checkCurrCal ()
 Test for need of new calibration. More...
 
virtual void syncCal (const casacore::Bool &doInv=false)
 Synchronize "gains" with current meta-data. More...
 
virtual void syncPar ()
 Sync parameters for current meta data. More...
 
virtual void syncCalMat (const casacore::Bool &doInv=false)=0
 Sync matrices generically for current meta data. More...
 
casacore::Intprtlev ()
 Return print (cout) level. More...
 
void setCurrField (const casacore::Int &ifld)
 set current field index vector to given field id More...
 
const MSMetaInfoForCalmsmc () const
 Access to the MSMetaInfoForCal (throws if none) More...
 

Protected Attributes

casacore::Int parType_
 
NewCalTablect_
 New CalTable. More...
 
CTPatchedInterpci_
 
CLPatchPanelcpp_
 
casacore::Vector< casacore::BoolspwOK_
 
casacore::Double maxTimePerSolution_p
 
casacore::Double minTimePerSolution_p
 
casacore::Double avgTimePerSolution_p
 
casacore::Float userPrintActivityInterval_p
 
casacore::Float userPrintActivityFraction_p
 
casacore::uInt caiRC_p
 
casacore::uInt cafRC_p
 
casacore::Timer timer_p
 

Private Member Functions

 SolvableVisCal ()
 Default ctor is private. More...
 
void initSVC ()
 Initialize pointers, etc. More...
 
void deleteSVC ()
 Delete pointers. More...
 
virtual CTTIFactoryPtr cttifactoryptr ()
 Pointer to CTTimeInterp1 factory method (generic) SVC specializations may choose to specialize CTTimeInterp1, as needed, and override this method accordingly (e.g., see FringeJones.h) More...
 

Private Attributes

casacore::String calTableName_
 Cal table name. More...
 
casacore::String calTableSelect_
 
casacore::Bool append_
 
casacore::String tInterpType_
 Interpolation types. More...
 
casacore::String fInterpType_
 
casacore::Vector< casacore::IntspwMap_
 Spw mapping. More...
 
casacore::String refantmode_
 Refant mode. More...
 
casacore::Vector< casacore::Inturefantlist_
 Refant. More...
 
casacore::Int minblperant_
 Min baselines per ant for solve. More...
 
casacore::Bool solved_
 Solved-for flag. More...
 
casacore::Bool byCallib_
 Signal apply by callib. More...
 
casacore::String apmode_
 Solving mode. More...
 
casacore::String solmode_
 Solver iteration mode. More...
 
casacore::Vector< casacore::Floatrmsthresh_
 
casacore::String usolint_
 User-specified full solint string. More...
 
casacore::String solint_
 User-specified time-dep solint (string) More...
 
double solTimeInterval_
 Derived time-dep solution interval (s) (VI2) More...
 
casacore::String fsolint_
 User-specified freq-dep solint info. More...
 
casacore::Double fintervalHz_
 Derived frequency intervals. More...
 
casacore::Vector
< casacore::Double
fintervalCh_
 
casacore::Vector
< casacore::Matrix
< casacore::Int > > 
chanAveBounds_
 Channel averaging bounds. More...
 
casacore::Double preavg_
 Preavering interval. More...
 
SolNorm solnorm_
 Do solution normalization after a solve. More...
 
casacore::Float minSNR_
 SNR threshold. More...
 
casacore::String combine_
 axes to combine for solve More...
 
casacore::Int focusChan_
 In-focus channel for single-chan solves on multi-chan data. More...
 
casacore::Double dataInterval_
 Solving meta-data. More...
 
casacore::Double fitWt_
 
casacore::Double fit_
 
casacore::PtrBlock
< casacore::Cube
< casacore::Complex > * > 
solveCPar_
 Current parameters. More...
 
casacore::PtrBlock
< casacore::Cube
< casacore::Float > * > 
solveRPar_
 
casacore::PtrBlock
< casacore::Cube
< casacore::Bool > * > 
solveParOK_
 
casacore::PtrBlock
< casacore::Cube
< casacore::Float > * > 
solveParErr_
 
casacore::PtrBlock
< casacore::Cube
< casacore::Float > * > 
solveParSNR_
 
casacore::PtrBlock
< casacore::Cube
< casacore::Complex > * > 
solveAllCPar_
 
casacore::PtrBlock
< casacore::Cube
< casacore::Float > * > 
solveAllRPar_
 
casacore::PtrBlock
< casacore::Cube
< casacore::Bool > * > 
solveAllParOK_
 
casacore::PtrBlock
< casacore::Cube
< casacore::Float > * > 
solveAllParErr_
 
casacore::PtrBlock
< casacore::Cube
< casacore::Float > * > 
solveAllParSNR_
 
casacore::Vector
< casacore::Complex > 
srcPolPar_
 
casacore::PtrBlock
< casacore::Vector
< casacore::Bool > * > * 
chanmask_
 A pointer to the external channel mask. More...
 
casacore::LogIO logsink_p
 LogIO. More...
 
casacore::Bool simulated_
 Simulation flag. More...
 
casacore::String simint_
 simulation interval More...
 
casacore::Bool onthefly_
 

Additional Inherited Members

- Static Public Member Functions inherited from casa::VisCal
static casacore::String nameOfType (Type type)
 

Detailed Description

Definition at line 103 of file SolvableVisCal.h.

Member Typedef Documentation

Constructor & Destructor Documentation

casa::SolvableVisCal::SolvableVisCal ( VisSet vs)
casa::SolvableVisCal::SolvableVisCal ( casacore::String  msname,
casacore::Int  MSnAnt,
casacore::Int  MSnSpw 
)
casa::SolvableVisCal::SolvableVisCal ( const MSMetaInfoForCal msmc)
casa::SolvableVisCal::SolvableVisCal ( const casacore::Int nAnt)
virtual casa::SolvableVisCal::~SolvableVisCal ( )
virtual
casa::SolvableVisCal::SolvableVisCal ( )
private

Default ctor is private.

Member Function Documentation

virtual casacore::Bool casa::SolvableVisCal::accumulatable ( )
inlinevirtual

Is this type capable of accumulation? (nominally no)

Reimplemented in casa::GJones, casa::FringeJones, casa::KJones, and casa::TJones.

Definition at line 186 of file SolvableVisCal.h.

virtual void casa::SolvableVisCal::accumulate ( SolvableVisCal incr,
const casacore::Vector< casacore::Int > &  fields 
)
pure virtual

Accumulate another VisCal onto this one.

Implemented in casa::SolvableVisJones, casa::SolvableVisMueller, and casa::SingleDishSkyCal.

virtual casacore::Record casa::SolvableVisCal::actionRec ( )
virtual

Retrieve the cal flag info as a record.

Reimplemented from casa::VisCal.

casacore::String& casa::SolvableVisCal::apmode ( )
inline

Definition at line 143 of file SolvableVisCal.h.

References apmode_.

casacore::Bool& casa::SolvableVisCal::append ( )
inline

Definition at line 135 of file SolvableVisCal.h.

References append_.

void casa::SolvableVisCal::applyChanMask ( VisBuffer vb)
virtual casacore::String casa::SolvableVisCal::applyinfo ( )
virtual

Report apply info/params, e.g.

for logging

Reimplemented from casa::VisCal.

Reimplemented in casa::FJones.

virtual void casa::SolvableVisCal::applySNRThreshold ( )
virtual

Apply SNR threshold.

virtual casacore::Bool casa::SolvableVisCal::calAvailable ( vi::VisBuffer2 )
virtual

Calibration available?

Reimplemented from casa::VisCal.

virtual void casa::SolvableVisCal::calcPar ( )
protectedvirtual

Calculate parameters by some means (e.g., interpolation from a CalSet)

Reimplemented from casa::VisCal.

Reimplemented in casa::GJonesSpline, casa::BJonesPoly, casa::EGainCurve, casa::FJones, and casa::StandardTsys.

virtual void casa::SolvableVisCal::calcParByCLPP ( )
protectedvirtual
virtual casacore::Float casa::SolvableVisCal::calcPowerNorm ( casacore::Array< casacore::Float > &  amp,
const casacore::Array< casacore::Bool > &  ok 
)
protectedpure virtual
casacore::String& casa::SolvableVisCal::calTableName ( )
inline

Access to user-supplied parameters.

Definition at line 133 of file SolvableVisCal.h.

References calTableName_.

casacore::String& casa::SolvableVisCal::calTableSelect ( )
inline

Definition at line 134 of file SolvableVisCal.h.

References calTableSelect_.

casacore::Matrix<casacore::Int> casa::SolvableVisCal::chanAveBounds ( )
inline

Definition at line 265 of file SolvableVisCal.h.

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

casacore::Matrix<casacore::Int> casa::SolvableVisCal::chanAveBounds ( casacore::Int  spw)
inline

Definition at line 266 of file SolvableVisCal.h.

References chanAveBounds_.

void casa::SolvableVisCal::clearChanMask ( )
inline

Definition at line 432 of file SolvableVisCal.h.

References chanmask_.

casacore::Bool casa::SolvableVisCal::combfld ( )
inline

Definition at line 155 of file SolvableVisCal.h.

References combine_, and casacore::upcase().

casacore::String& casa::SolvableVisCal::combine ( )
inline

Definition at line 153 of file SolvableVisCal.h.

References combine_.

casacore::Bool casa::SolvableVisCal::combobs ( )
inline

Definition at line 157 of file SolvableVisCal.h.

References combine_, and casacore::upcase().

casacore::Bool casa::SolvableVisCal::combscan ( )
inline

Definition at line 156 of file SolvableVisCal.h.

References combine_, and casacore::upcase().

casacore::Bool casa::SolvableVisCal::combspw ( )
inline

Definition at line 154 of file SolvableVisCal.h.

References combine_, and casacore::upcase().

virtual void casa::SolvableVisCal::convertHzToCh ( )
protectedvirtual

Convert Hz to Ch in fsolint.

virtual void casa::SolvableVisCal::createCorruptor ( const VisIter vi,
const casacore::Record simpar,
const int  nSim 
)
virtual

make a corruptor in a VC-specific way

Reimplemented in casa::GJones, casa::ANoise, casa::TJones, and casa::DJones.

virtual void casa::SolvableVisCal::createMemCalTable ( )
virtual

New CalTable handling.

virtual void casa::SolvableVisCal::createMemCalTable2 ( )
virtual

Generate the in-memory caltable (empty) NB: no subtable revisions.

virtual CTTIFactoryPtr casa::SolvableVisCal::cttifactoryptr ( )
inlineprivatevirtual

Pointer to CTTimeInterp1 factory method (generic) SVC specializations may choose to specialize CTTimeInterp1, as needed, and override this method accordingly (e.g., see FringeJones.h)

Reimplemented in casa::FringeJones.

Definition at line 589 of file SolvableVisCal.h.

References casa::CTTimeInterp1::factory().

virtual void casa::SolvableVisCal::currMetaNote ( )
virtual

Reimplemented from casa::VisCal.

virtual casacore::Complex casa::SolvableVisCal::defaultCPar ( )
inlinevirtual

Definition at line 234 of file SolvableVisCal.h.

virtual casacore::Complex casa::SolvableVisCal::defaultPar ( )
inlinevirtual

Default value for parameters.

Reimplemented in casa::FringeJones, and casa::KJones.

Definition at line 232 of file SolvableVisCal.h.

virtual casacore::Float casa::SolvableVisCal::defaultRPar ( )
inlinevirtual

Definition at line 233 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, casa::SolvableVisMueller, and casa::SingleDishSkyCal.

virtual void casa::SolvableVisCal::differentiate ( SolveDataBuffer )
inlinevirtual

Reimplemented in casa::SolvableVisJones, and casa::SolvableVisMueller.

Definition at line 330 of file SolvableVisCal.h.

virtual void casa::SolvableVisCal::differentiate ( VisBuffer vb,
casacore::Cube< casacore::Complex > &  V,
casacore::Array< casacore::Complex > &  dV,
casacore::Matrix< casacore::Bool > &  Vflg 
)
pure virtual
virtual void casa::SolvableVisCal::differentiate ( VisBuffer ,
VisBuffer ,
VisBuffer ,
casacore::Matrix< casacore::Bool > &   
)
inlinevirtual

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

Definition at line 335 of file SolvableVisCal.h.

virtual void casa::SolvableVisCal::diffSrc ( VisBuffer vb,
casacore::Array< casacore::Complex > &  dV 
)
pure virtual

Differentiate VB model w.r.t.

Source parameters

Implemented in casa::SolvableVisJones, casa::SolvableVisMueller, and casa::SingleDishSkyCal.

virtual casacore::Bool casa::SolvableVisCal::divideByStokesIModelForSolve ( )
inlinevirtual

Should data and model be divided by Stokes I model before average+solve? (Nominally false, for now)

Reimplemented in casa::PosAngJones, and casa::XparangJones.

Definition at line 183 of file SolvableVisCal.h.

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.

casacore::String& casa::SolvableVisCal::fInterpType ( )
inline

Definition at line 137 of file SolvableVisCal.h.

References fInterpType_.

casacore::Double& casa::SolvableVisCal::fintervalCh ( )
inline

Definition at line 263 of file SolvableVisCal.h.

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

const casacore::Vector<casacore::Double>& casa::SolvableVisCal::fintervalChV ( )
inline

Definition at line 264 of file SolvableVisCal.h.

References fintervalCh_.

casacore::Double& casa::SolvableVisCal::fintervalHz ( )
inline

Freq-dep solint values (const?!)

Definition at line 262 of file SolvableVisCal.h.

References fintervalHz_.

virtual void casa::SolvableVisCal::fluxscale ( const casacore::String outfile,
const casacore::Vector< casacore::Int > &  refFieldIn,
const casacore::Vector< casacore::Int > &  tranFieldIn,
const casacore::Vector< casacore::Int > &  inRefSpwMap,
const casacore::Vector< casacore::String > &  fldNames,
const casacore::Float inGainThres,
const casacore::String antSel,
const casacore::String timerangeSel,
const casacore::String scanSel,
fluxScaleStruct oFluxScaleStruct,
const casacore::String oListFile,
const casacore::Bool incremental,
const casacore::Int fitorder,
const casacore::Bool display 
)
pure virtual

Determine and apply flux density scaling.

Implemented in casa::SolvableVisJones, casa::SolvableVisMueller, and casa::SingleDishSkyCal.

casacore::Int& casa::SolvableVisCal::focusChan ( )
inline

Access to focus channel.

Definition at line 198 of file SolvableVisCal.h.

References focusChan_.

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

Form solution SNR.

Reimplemented in casa::DJones.

casacore::String& casa::SolvableVisCal::fsolint ( )
inline

Definition at line 147 of file SolvableVisCal.h.

References fsolint_.

virtual void casa::SolvableVisCal::globalPostSolveTinker ( )
virtual
virtual void casa::SolvableVisCal::guessPar ( VisBuffer vb)
pure virtual
virtual void casa::SolvableVisCal::guessPar ( SDBList )
inlinevirtual

Reimplemented in casa::GJones, casa::TJones, and casa::DJones.

Definition at line 256 of file SolvableVisCal.h.

void casa::SolvableVisCal::inflate ( VisSet vs,
const casacore::Bool fillMeta = false 
)

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

virtual void casa::SolvableVisCal::inflate ( const casacore::Vector< casacore::Int > &  nChanDat,
const casacore::Vector< casacore::Int > &  startChanDat,
const casacore::Vector< casacore::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 ( )
protectedpure virtual
void casa::SolvableVisCal::initSVC ( )
private

Initialize pointers, etc.

virtual void casa::SolvableVisCal::invalidateDiffCalMat ( )
inlineprotectedpure virtual

Invalidate diff cal matrices generically.

Implemented in casa::SolvableVisJones, casa::SolvableVisMueller, and casa::SingleDishSkyCal.

casacore::Bool casa::SolvableVisCal::isSimulated ( )
inline

Is this calibration simulated?

Definition at line 455 of file SolvableVisCal.h.

References simulated_.

virtual casacore::Bool casa::SolvableVisCal::isSolvable ( )
inlinevirtual

Is this solveable? (via this interface, nominally yes)

Reimplemented from casa::VisCal.

Reimplemented in casa::ANoise.

Definition at line 204 of file SolvableVisCal.h.

casacore::Bool casa::SolvableVisCal::isSolved ( )
inline

Is this ready to solve?

Definition at line 201 of file SolvableVisCal.h.

References solved_.

Referenced by casa::SolvableVisMueller::nCalMat(), casa::SolvableVisMueller::setMatByOk(), and casa::SolvableVisJones::setMatByOk().

virtual void casa::SolvableVisCal::keep1 ( casacore::Int  ichan)
virtual
virtual void casa::SolvableVisCal::keepNCT ( )
virtual
virtual void casa::SolvableVisCal::listCal ( const casacore::Vector< casacore::Int ufldids,
const casacore::Vector< casacore::Int uantids,
const casacore::Matrix< casacore::Int uchanids,
const casacore::String listfile = "",
const casacore::Int pagerows = 50 
)
pure virtual
virtual void casa::SolvableVisCal::loadMemCalTable ( casacore::String  ctname,
casacore::String  field = "" 
)
virtual

Reimplemented in casa::BJonesPoly.

casacore::LogIO& casa::SolvableVisCal::logSink ( )
inlineprotected

Logger.

Definition at line 544 of file SolvableVisCal.h.

References logsink_p.

virtual void casa::SolvableVisCal::markTimer ( )
inlinevirtual

Definition at line 438 of file SolvableVisCal.h.

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

casacore::Int& casa::SolvableVisCal::minblperant ( )
inline

Definition at line 142 of file SolvableVisCal.h.

References minblperant_.

casacore::Float& casa::SolvableVisCal::minSNR ( )
inline

Definition at line 151 of file SolvableVisCal.h.

References minSNR_.

virtual casacore::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::PosAngJones, casa::XMueller, casa::XparangJones, casa::SingleDishSkyCal, casa::XJones, casa::LJJones, casa::EPJones, casa::XMueller, and casa::AccorJones.

virtual void casa::SolvableVisCal::normalize ( )
virtual

Normalize a solution (generic implementation)

Reimplemented in casa::BJones.

casacore::Complex casa::SolvableVisCal::normSolnArray ( casacore::Array< casacore::Complex > &  sol,
const casacore::Array< casacore::Bool > &  solOK,
const casacore::Bool  doPhase = false 
)
protected

Normalize a (complex) solution array (generic)

virtual casacore::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, casa::SolvableVisMueller, and casa::SingleDishSkyCal.

void casa::SolvableVisCal::overrideObsScan ( casacore::Int  obs,
casacore::Int  scan 
)

Provide for override of currScan and currObs.

virtual casacore::Bool casa::SolvableVisCal::phandonly ( )
inlinevirtual

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::GlinXphJones, casa::GJones, casa::XparangJones, casa::KcrossJones, and casa::AccorJones.

Definition at line 195 of file SolvableVisCal.h.

casacore::Double& casa::SolvableVisCal::preavg ( )
inline

Definition at line 148 of file SolvableVisCal.h.

References preavg_.

virtual void casa::SolvableVisCal::printActivity ( const casacore::Int  nSlots,
const casacore::Int  slotNo,
const casacore::Int  fieldId,
const casacore::Int  spw,
const casacore::Int  nSolutions 
)
virtual

Log periodic solver activity.

casacore::Int& casa::SolvableVisCal::refant ( )
inline

Definition at line 140 of file SolvableVisCal.h.

References refantlist().

casacore::Vector<casacore::Int>& casa::SolvableVisCal::refantlist ( )
inline

Definition at line 141 of file SolvableVisCal.h.

References urefantlist_.

Referenced by refant().

casacore::String& casa::SolvableVisCal::refantmode ( )
inline

Definition at line 139 of file SolvableVisCal.h.

References refantmode_.

void casa::SolvableVisCal::reParseSolintForVI2 ( )

Parse solint in VI2 context.

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, casa::SingleDishSkyCal, and casa::DJones.

casacore::Vector<casacore::Float>& casa::SolvableVisCal::rmsthresh ( )
inline

Definition at line 145 of file SolvableVisCal.h.

References rmsthresh_.

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::GlinXphJones, casa::XJones, casa::PosAngJones, casa::XMueller, casa::SingleDishSkyCal, casa::XparangJones, casa::XJones, casa::LJJones, casa::EPJones, casa::GJonesSpline, casa::XMueller, and casa::SDDoubleCircleGainCal.

virtual void casa::SolvableVisCal::selfSolveOne ( VisBuffGroupAcc vs)
virtual
virtual void casa::SolvableVisCal::selfSolveOne ( SDBList )
inlinevirtual
virtual void casa::SolvableVisCal::setAccumulate ( VisSet vs,
const casacore::String table,
const casacore::String select,
const casacore::Double t,
const casacore::Int refAnt = -1 
)
virtual

Arrange for accumulation.

virtual void casa::SolvableVisCal::setApply ( )
virtual

Set the application parameters.

Reimplemented from casa::VisCal.

Reimplemented in casa::FringeJones, and casa::KJones.

Referenced by casa::AMueller::setApply().

virtual void casa::SolvableVisCal::setApply ( const casacore::Record apply)
virtual
virtual void casa::SolvableVisCal::setCallib ( const casacore::Record callib,
const casacore::MeasurementSet selms 
)
virtual

Reimplemented from casa::VisCal.

Reimplemented in casa::KAntPosJones, casa::FringeJones, casa::KJones, and casa::EGainCurve.

void casa::SolvableVisCal::setChanMask ( casacore::PtrBlock< casacore::Vector< casacore::Bool > * > &  chanmask)
inline

Handle external channel mask.

Definition at line 431 of file SolvableVisCal.h.

References chanmask_.

virtual void casa::SolvableVisCal::setDefSolveParCurrSpw ( bool  sync = false)
virtual

Set parameters to def values in the currSpw(), and optionally sync everything.

virtual void casa::SolvableVisCal::setFracChanAve ( )
protectedvirtual

Calculate chan averaging bounds.

virtual void casa::SolvableVisCal::setMeta ( int  obs,
int  scan,
double  time,
int  spw,
const casacore::Vector< double > &  freq,
int  fld 
)
virtual

VI2-related refactor-----------------------------------—.

Set "current" meta info, so internals are registered (VI2: replaces meta-inf part of syncSolveMeta; NB: does NOT check sum(wt)>0 older syncSolveMeta!)

Reimplemented from casa::VisCal.

virtual void casa::SolvableVisCal::setModel ( const casacore::String )
inlinevirtual

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

Definition at line 211 of file SolvableVisCal.h.

virtual void casa::SolvableVisCal::setOrVerifyCTFrequencies ( int  spw)
virtual

Set (or verify) freq info in output cal table for specified spw.

virtual VisCalEnum::VCParType casa::SolvableVisCal::setParType ( VisCalEnum::VCParType  type)
inlinevirtual

Definition at line 422 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,
casacore::Record simpar,
casacore::Vector< casacore::Double > &  solTimes 
)
virtual


Set the simulation parameters

void casa::SolvableVisCal::setSimulated ( const casacore::Bool flag)
inlineprotected

Set state flag to simulate cal terms.

Definition at line 565 of file SolvableVisCal.h.

References simulated_.

virtual void casa::SolvableVisCal::setSolve ( )
virtual

Set the solving parameters.

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

virtual void casa::SolvableVisCal::setSolve ( const casacore::Record solve)
virtual
virtual void casa::SolvableVisCal::setSolveChannelization ( VisSet vs)
protectedvirtual

Set matrix channelization according to a VisSet.

void casa::SolvableVisCal::setSolved ( const casacore::Bool flag)
inlineprotected

Set to-be-solved-for flag.

Definition at line 496 of file SolvableVisCal.h.

References solved_.

virtual void casa::SolvableVisCal::setSpecify ( const casacore::Record specify)
virtual

Arrange to build a cal table from specified values.

Reimplemented in casa::FJones, casa::EVLASwPow, casa::EGainCurve, and casa::StandardTsys.

void casa::SolvableVisCal::setUpForPolSolve ( VisBuffer vb)

Set up data and model for pol solve.

virtual void casa::SolvableVisCal::setUpForPolSolve ( vi::VisBuffer2 )
inlinevirtual

A VB2-specific version which depends on local specialization (this may be further refined later)

Reimplemented in casa::DJones.

Definition at line 325 of file SolvableVisCal.h.

References casa::VisCal::typeName().

virtual casacore::String casa::SolvableVisCal::siminfo ( )
virtual

Simulation info/params, suitable for logging.

Reimplemented from casa::VisCal.

casacore::String& casa::SolvableVisCal::simint ( )
inline

access to simulation variables that are general to all VisCals

Definition at line 449 of file SolvableVisCal.h.

References simint_.

casacore::Bool& casa::SolvableVisCal::simOnTheFly ( )
inlineprotected

RI todo implement calcOneJones like calcAllMueller calculate terms during apply, or up front during setSim?

cout << "simOTF=" << onthefly_ << endl;

Definition at line 569 of file SolvableVisCal.h.

References onthefly_.

Referenced by casa::ANoise::timeDepMat(), and casa::ANoise::trivialMuellerElem().

virtual int casa::SolvableVisCal::sizeSolveParCurrSpw ( int  nVisChan)
virtual

Reshape solvePar* arrays for the currSpw() (ensitive to freqDepPar()) (VI2: replaces initSolvePar part of sizeUpSolve)

casacore::Int casa::SolvableVisCal::sizeUpSim ( VisSet vs,
casacore::Vector< casacore::Int > &  nChunkPerSol,
casacore::Vector< casacore::Double > &  solTimes 
)

calculate # required slots to simulate this SVC

virtual casacore::Int casa::SolvableVisCal::sizeUpSolve ( VisSet vs,
casacore::Vector< casacore::Int > &  nChunkPerSol 
)
virtual

Size up the solving arrays, etc.

(supports combine)

virtual void casa::SolvableVisCal::smooth ( casacore::Vector< casacore::Int > &  fields,
const casacore::String smtype,
const casacore::Double smtime 
)
virtual
virtual casacore::Bool casa::SolvableVisCal::smoothable ( )
inlinevirtual

Is this type capable of smoothing? (nominally no)

Reimplemented in casa::KAntPosJones, casa::GJones, casa::FringeJones, casa::KJones, and casa::TJones.

Definition at line 189 of file SolvableVisCal.h.

casacore::String& casa::SolvableVisCal::solint ( )
inline

Definition at line 146 of file SolvableVisCal.h.

References solint_.

casacore::String& casa::SolvableVisCal::solmode ( )
inline

Definition at line 144 of file SolvableVisCal.h.

References solmode_.

const SolNorm& casa::SolvableVisCal::solNorm ( )
inline

Definition at line 149 of file SolvableVisCal.h.

References solnorm_.

casacore::Bool casa::SolvableVisCal::solnorm ( )
inline

Definition at line 150 of file SolvableVisCal.h.

References casa::SolNorm::donorm(), and solnorm_.

double casa::SolvableVisCal::solTimeInterval ( ) const
inline

Time-dep solution interval (VI2)

Definition at line 259 of file SolvableVisCal.h.

References solTimeInterval_.

virtual casacore::Record casa::SolvableVisCal::solveActionRec ( )
virtual

Retrieve solve-related info via Record.

Reimplemented in casa::XparangJones.

virtual casacore::Cube<casacore::Complex>& casa::SolvableVisCal::solveAllCPar ( )
inlinevirtual

Definition at line 275 of file SolvableVisCal.h.

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

virtual void casa::SolvableVisCal::solveAllCPar ( casacore::Int  spw,
casacore::Cube< casacore::Complex > &  cparSpw 
)
inlinevirtual

Access to per-spw solution parameters and matrices.

Definition at line 282 of file SolvableVisCal.h.

References casa::VisCal::nSpw(), and solveAllCPar_.

virtual casacore::Cube<casacore::Float>& casa::SolvableVisCal::solveAllParErr ( )
inlinevirtual

Definition at line 278 of file SolvableVisCal.h.

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

virtual void casa::SolvableVisCal::solveAllParErr ( casacore::Int  spw,
casacore::Cube< casacore::Float > &  parerrSpw 
)
inlinevirtual

Definition at line 288 of file SolvableVisCal.h.

References casa::VisCal::nSpw(), and solveAllParErr_.

virtual casacore::Cube<casacore::Bool>& casa::SolvableVisCal::solveAllParOK ( )
inlinevirtual

Definition at line 277 of file SolvableVisCal.h.

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

virtual void casa::SolvableVisCal::solveAllParOK ( casacore::Int  spw,
casacore::Cube< casacore::Bool > &  parokSpw 
)
inlinevirtual

Definition at line 286 of file SolvableVisCal.h.

References casa::VisCal::nSpw(), and solveAllParOK_.

virtual casacore::Cube<casacore::Float>& casa::SolvableVisCal::solveAllParSNR ( )
inlinevirtual

Definition at line 279 of file SolvableVisCal.h.

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

virtual void casa::SolvableVisCal::solveAllParSNR ( casacore::Int  spw,
casacore::Cube< casacore::Float > &  parsnrSpw 
)
inlinevirtual

Definition at line 290 of file SolvableVisCal.h.

References casa::VisCal::nSpw(), and solveAllParSNR_.

virtual casacore::Cube<casacore::Float>& casa::SolvableVisCal::solveAllRPar ( )
inlinevirtual

Definition at line 276 of file SolvableVisCal.h.

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

virtual void casa::SolvableVisCal::solveAllRPar ( casacore::Int  spw,
casacore::Cube< casacore::Float > &  rparSpw 
)
inlinevirtual

Definition at line 284 of file SolvableVisCal.h.

References casa::VisCal::nSpw(), and solveAllRPar_.

virtual casacore::Cube<casacore::Complex>& casa::SolvableVisCal::solveCPar ( )
inlinevirtual

Access to current solution parameters and matrices.

Definition at line 269 of file SolvableVisCal.h.

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

virtual casacore::String casa::SolvableVisCal::solveinfo ( )
virtual

Report solve info/params, e.g., for logging.

Reimplemented in casa::SDDoubleCircleGainCal.

virtual casacore::Cube<casacore::Float>& casa::SolvableVisCal::solveParErr ( )
inlinevirtual

Definition at line 272 of file SolvableVisCal.h.

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

virtual casacore::Cube<casacore::Bool>& casa::SolvableVisCal::solveParOK ( )
inlinevirtual

Definition at line 271 of file SolvableVisCal.h.

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

virtual casacore::Cube<casacore::Float>& casa::SolvableVisCal::solveParSNR ( )
inlinevirtual

Definition at line 273 of file SolvableVisCal.h.

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

virtual casacore::Int casa::SolvableVisCal::solvePol ( )
inlinevirtual

Solve for point-source X or Q,U? nominally no (0)

Reimplemented in casa::DJones.

Definition at line 175 of file SolvableVisCal.h.

virtual casacore::Cube<casacore::Float>& casa::SolvableVisCal::solveRPar ( )
inlinevirtual

Reimplemented in casa::EPJones.

Definition at line 270 of file SolvableVisCal.h.

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

void casa::SolvableVisCal::sortVisSet ( VisSet vs,
const casacore::Bool  verbose = false 
)
protected
virtual void casa::SolvableVisCal::specify ( const casacore::Record specify)
virtual

Fill a caltable with specified values.

Reimplemented in casa::KAntPosJones, casa::FringeJones, casa::KJones, casa::EVLASwPow, casa::FJones, casa::StandardTsys, and casa::EGainCurve.

casacore::Vector<casacore::Int>& casa::SolvableVisCal::spwMap ( )
inline

Definition at line 138 of file SolvableVisCal.h.

References spwMap_.

virtual casacore::Bool casa::SolvableVisCal::spwOK ( casacore::Int  ispw)
virtual

New spwOK.

Reimplemented from casa::VisCal.

casacore::Vector<casacore::Complex>& casa::SolvableVisCal::srcPolPar ( )
inline

Access to source pol parameters.

Definition at line 294 of file SolvableVisCal.h.

References srcPolPar_.

virtual void casa::SolvableVisCal::state ( )
inlinevirtual

Report state:

Reimplemented from casa::VisCal.

Reimplemented in casa::SolvableVisJones, and casa::SolvableVisMueller.

Definition at line 420 of file SolvableVisCal.h.

References stateSVC().

virtual void casa::SolvableVisCal::stateSVC ( const casacore::Bool doVC)
protectedvirtual

Report the SVC-specific state, w/ option for VC::state()

Referenced by state().

virtual void casa::SolvableVisCal::storeNCT ( )
virtual
void casa::SolvableVisCal::storeNCT ( const casacore::String tableName,
const casacore::Bool append 
)
virtual void casa::SolvableVisCal::syncDiffMat ( )
protectedpure virtual

Synchronize the differentiated calibration.

Implemented in casa::SolvableVisJones, casa::SolvableVisMueller, and casa::SingleDishSkyCal.

void casa::SolvableVisCal::syncSolveCal ( )
protected

Synchronize calibration for solve context.

casacore::Bool casa::SolvableVisCal::syncSolveMeta ( VisBuffer vb,
const casacore::Int fieldId 
)

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

casacore::Bool casa::SolvableVisCal::syncSolveMeta ( VisBuffGroupAcc vbga)
void casa::SolvableVisCal::syncSolveMeta ( SDBList sdbs)
void casa::SolvableVisCal::syncSolvePar ( )
protected

Synchronize parameters for solve context.

casacore::String& casa::SolvableVisCal::tInterpType ( )
inline

Definition at line 136 of file SolvableVisCal.h.

References tInterpType_.

virtual void casa::SolvableVisCal::updatePar ( const casacore::Vector< casacore::Complex >  dCalPar,
const casacore::Vector< casacore::Complex >  dSrcPar 
)
virtual

Update solve parameters incrementally (additive)

Reimplemented in casa::DJones.

virtual void casa::SolvableVisCal::updatePar ( const casacore::Vector< casacore::Complex >  dCalPar)
virtual
virtual casacore::Bool casa::SolvableVisCal::useGenericGatherForSolve ( )
inlinevirtual

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::GlinXphJones, casa::XJones, casa::PosAngJones, casa::XMueller, casa::XparangJones, casa::DllsJones, casa::SingleDishSkyCal, casa::FringeJones, casa::KJones, casa::LJJones, casa::XJones, casa::EPJones, casa::GJonesSpline, casa::BJonesPoly, casa::XMueller, and casa::SDDoubleCircleGainCal.

Definition at line 167 of file SolvableVisCal.h.

Referenced by useGenericSolveOne().

virtual casacore::Bool casa::SolvableVisCal::useGenericSolveOne ( )
inlinevirtual

Use generic solution engine for a single solve (usually inside the generic gathering mechanism)

Reimplemented in casa::GlinXphJones, casa::GlinXphJones, casa::XJones, casa::PosAngJones, casa::XparangJones, casa::DllsJones, casa::FringeJones, casa::KJones, casa::XJones, casa::BJonesPoly, casa::AccorJones, and casa::SDDoubleCircleGainCal.

Definition at line 171 of file SolvableVisCal.h.

References useGenericGatherForSolve().

virtual casacore::Bool casa::SolvableVisCal::VBOKforCalApply ( vi::VisBuffer2 vb)
virtual

Is VB OK for calibration?

Reimplemented from casa::VisCal.

void casa::SolvableVisCal::verifyCalTable ( const casacore::String caltablename)
protected

Check if a cal table is appropriate.

virtual casacore::Bool casa::SolvableVisCal::verifyConstraints ( VisBuffGroupAcc vbag)
virtual

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

virtual casacore::Bool casa::SolvableVisCal::verifyConstraints ( SDBList sdbs)
virtual
virtual casacore::Bool casa::SolvableVisCal::verifyForSolve ( VisBuffer vb)
virtual

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

Member Data Documentation

casacore::String casa::SolvableVisCal::apmode_
private

Solving mode.

Definition at line 619 of file SolvableVisCal.h.

Referenced by apmode().

casacore::Bool casa::SolvableVisCal::append_
private

Definition at line 594 of file SolvableVisCal.h.

Referenced by append().

casacore::Double casa::SolvableVisCal::avgTimePerSolution_p
protected

Definition at line 559 of file SolvableVisCal.h.

casacore::Bool casa::SolvableVisCal::byCallib_
private

Signal apply by callib.

Definition at line 616 of file SolvableVisCal.h.

casacore::uInt casa::SolvableVisCal::cafRC_p
protected

Definition at line 561 of file SolvableVisCal.h.

casacore::uInt casa::SolvableVisCal::caiRC_p
protected

Definition at line 561 of file SolvableVisCal.h.

casacore::String casa::SolvableVisCal::calTableName_
private

Cal table name.

Definition at line 589 of file SolvableVisCal.h.

Referenced by calTableName().

casacore::String casa::SolvableVisCal::calTableSelect_
private

Definition at line 593 of file SolvableVisCal.h.

Referenced by calTableSelect().

casacore::Vector<casacore::Matrix<casacore::Int> > casa::SolvableVisCal::chanAveBounds_
private

Channel averaging bounds.

Definition at line 643 of file SolvableVisCal.h.

Referenced by chanAveBounds().

casacore::PtrBlock<casacore::Vector<casacore::Bool>*>* casa::SolvableVisCal::chanmask_
private

A pointer to the external channel mask.

Definition at line 682 of file SolvableVisCal.h.

Referenced by clearChanMask(), and setChanMask().

CTPatchedInterp* casa::SolvableVisCal::ci_
protected

Definition at line 555 of file SolvableVisCal.h.

casacore::String casa::SolvableVisCal::combine_
private

axes to combine for solve

Definition at line 655 of file SolvableVisCal.h.

Referenced by combfld(), combine(), combobs(), combscan(), and combspw().

CalCorruptor* casa::SolvableVisCal::corruptor_p

object that can simulate the corruption terms

Definition at line 455 of file SolvableVisCal.h.

CLPatchPanel* casa::SolvableVisCal::cpp_
protected

Definition at line 556 of file SolvableVisCal.h.

NewCalTable* casa::SolvableVisCal::ct_
protected

New CalTable.

Definition at line 554 of file SolvableVisCal.h.

casacore::Double casa::SolvableVisCal::dataInterval_
private

Solving meta-data.

Definition at line 661 of file SolvableVisCal.h.

casacore::String casa::SolvableVisCal::fInterpType_
private

Definition at line 598 of file SolvableVisCal.h.

Referenced by fInterpType().

casacore::Vector<casacore::Double> casa::SolvableVisCal::fintervalCh_
private

Definition at line 639 of file SolvableVisCal.h.

Referenced by fintervalCh(), and fintervalChV().

casacore::Double casa::SolvableVisCal::fintervalHz_
private

Derived frequency intervals.

Definition at line 638 of file SolvableVisCal.h.

Referenced by fintervalHz().

casacore::Double casa::SolvableVisCal::fit_
private

Definition at line 663 of file SolvableVisCal.h.

casacore::Double casa::SolvableVisCal::fitWt_
private

Definition at line 662 of file SolvableVisCal.h.

casacore::Int casa::SolvableVisCal::focusChan_
private

In-focus channel for single-chan solves on multi-chan data.

Definition at line 658 of file SolvableVisCal.h.

Referenced by focusChan().

casacore::String casa::SolvableVisCal::fsolint_
private

User-specified freq-dep solint info.

Definition at line 635 of file SolvableVisCal.h.

Referenced by fsolint().

casacore::LogIO casa::SolvableVisCal::logsink_p
private

LogIO.

Definition at line 685 of file SolvableVisCal.h.

Referenced by logSink().

casacore::Double casa::SolvableVisCal::maxTimePerSolution_p
protected

Definition at line 559 of file SolvableVisCal.h.

casacore::Int casa::SolvableVisCal::minblperant_
private

Min baselines per ant for solve.

Definition at line 610 of file SolvableVisCal.h.

Referenced by minblperant().

casacore::Float casa::SolvableVisCal::minSNR_
private

SNR threshold.

Definition at line 652 of file SolvableVisCal.h.

Referenced by minSNR().

casacore::Double casa::SolvableVisCal::minTimePerSolution_p
protected

Definition at line 559 of file SolvableVisCal.h.

casacore::Bool casa::SolvableVisCal::onthefly_
private

Definition at line 693 of file SolvableVisCal.h.

Referenced by simOnTheFly().

casacore::Int casa::SolvableVisCal::parType_
protected

Definition at line 551 of file SolvableVisCal.h.

Referenced by setParType().

casacore::Double casa::SolvableVisCal::preavg_
private

Preavering interval.

Definition at line 646 of file SolvableVisCal.h.

Referenced by preavg().

casacore::String casa::SolvableVisCal::refantmode_
private

Refant mode.

Definition at line 604 of file SolvableVisCal.h.

Referenced by refantmode().

casacore::Vector<casacore::Float> casa::SolvableVisCal::rmsthresh_
private

Definition at line 623 of file SolvableVisCal.h.

Referenced by rmsthresh().

casacore::String casa::SolvableVisCal::simint_
private

simulation interval

Definition at line 691 of file SolvableVisCal.h.

Referenced by simint().

casacore::Bool casa::SolvableVisCal::simulated_
private

Simulation flag.

Definition at line 688 of file SolvableVisCal.h.

Referenced by isSimulated(), and setSimulated().

casacore::String casa::SolvableVisCal::solint_
private

User-specified time-dep solint (string)

Definition at line 629 of file SolvableVisCal.h.

Referenced by solint().

casacore::String casa::SolvableVisCal::solmode_
private

Solver iteration mode.

Definition at line 622 of file SolvableVisCal.h.

Referenced by solmode().

SolNorm casa::SolvableVisCal::solnorm_
private

Do solution normalization after a solve.

Definition at line 649 of file SolvableVisCal.h.

Referenced by solNorm(), and solnorm().

double casa::SolvableVisCal::solTimeInterval_
private

Derived time-dep solution interval (s) (VI2)

Definition at line 632 of file SolvableVisCal.h.

Referenced by solTimeInterval().

casacore::PtrBlock<casacore::Cube<casacore::Complex>*> casa::SolvableVisCal::solveAllCPar_
private

Definition at line 673 of file SolvableVisCal.h.

Referenced by solveAllCPar().

casacore::PtrBlock<casacore::Cube<casacore::Float>*> casa::SolvableVisCal::solveAllParErr_
private

Definition at line 676 of file SolvableVisCal.h.

Referenced by solveAllParErr().

casacore::PtrBlock<casacore::Cube<casacore::Bool>*> casa::SolvableVisCal::solveAllParOK_
private

Definition at line 675 of file SolvableVisCal.h.

Referenced by solveAllParOK().

casacore::PtrBlock<casacore::Cube<casacore::Float>*> casa::SolvableVisCal::solveAllParSNR_
private

Definition at line 677 of file SolvableVisCal.h.

Referenced by solveAllParSNR().

casacore::PtrBlock<casacore::Cube<casacore::Float>*> casa::SolvableVisCal::solveAllRPar_
private

Definition at line 674 of file SolvableVisCal.h.

Referenced by solveAllRPar().

casacore::PtrBlock<casacore::Cube<casacore::Complex>*> casa::SolvableVisCal::solveCPar_
private

Current parameters.

Definition at line 667 of file SolvableVisCal.h.

Referenced by solveCPar().

casacore::Bool casa::SolvableVisCal::solved_
private

Solved-for flag.

Definition at line 613 of file SolvableVisCal.h.

Referenced by isSolved(), and setSolved().

casacore::PtrBlock<casacore::Cube<casacore::Float>*> casa::SolvableVisCal::solveParErr_
private

Definition at line 670 of file SolvableVisCal.h.

Referenced by solveParErr().

casacore::PtrBlock<casacore::Cube<casacore::Bool>*> casa::SolvableVisCal::solveParOK_
private

Definition at line 669 of file SolvableVisCal.h.

Referenced by solveParOK().

casacore::PtrBlock<casacore::Cube<casacore::Float>*> casa::SolvableVisCal::solveParSNR_
private

Definition at line 671 of file SolvableVisCal.h.

Referenced by solveParSNR().

casacore::PtrBlock<casacore::Cube<casacore::Float>*> casa::SolvableVisCal::solveRPar_
private

Definition at line 668 of file SolvableVisCal.h.

Referenced by solveRPar().

casacore::Vector<casacore::Int> casa::SolvableVisCal::spwMap_
private

Spw mapping.

Definition at line 601 of file SolvableVisCal.h.

Referenced by spwMap().

casacore::Vector<casacore::Bool> casa::SolvableVisCal::spwOK_
protected

Definition at line 557 of file SolvableVisCal.h.

casacore::Vector<casacore::Complex> casa::SolvableVisCal::srcPolPar_
private

Definition at line 679 of file SolvableVisCal.h.

Referenced by srcPolPar().

casacore::Timer casa::SolvableVisCal::timer_p
protected

Definition at line 562 of file SolvableVisCal.h.

Referenced by markTimer().

casacore::String casa::SolvableVisCal::tInterpType_
private

Interpolation types.

Definition at line 597 of file SolvableVisCal.h.

Referenced by tInterpType().

casacore::Vector<casacore::Int> casa::SolvableVisCal::urefantlist_
private

Refant.

Definition at line 607 of file SolvableVisCal.h.

Referenced by refantlist().

casacore::Float casa::SolvableVisCal::userPrintActivityFraction_p
protected

Definition at line 560 of file SolvableVisCal.h.

casacore::Float casa::SolvableVisCal::userPrintActivityInterval_p
protected

Definition at line 560 of file SolvableVisCal.h.

casacore::String casa::SolvableVisCal::usolint_
private

User-specified full solint string.

Definition at line 626 of file SolvableVisCal.h.


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