casa
5.7.0-16
|
#include <SingleDishSkyCal.h>
Public Member Functions | |
SingleDishSkyCal (VisSet &vs) | |
Constructor. More... | |
SingleDishSkyCal (const MSMetaInfoForCal &msmc) | |
SingleDishSkyCal (const casacore::Int &nAnt) | |
virtual | ~SingleDishSkyCal () |
Destructor. More... | |
virtual Type | type () |
Return the type of this calibration matrix (actual type of derived class). More... | |
virtual casacore::String | typeName () |
Return type name as string (ditto) More... | |
virtual casacore::String | longTypeName () |
virtual VisCalEnum::MatrixType | matrixType () |
Return casacore::Matrix type single dish calibration is antenna-based. More... | |
virtual Mueller::MuellerType | muellerType () |
Mueller matrix type (must be implemented in Mueller specializations!) More... | |
virtual VisCalEnum::VCParType | parType () |
Return the parameter type so far single dish calibration is real. More... | |
virtual casacore::Int | nPar () |
Number of pars per ant/bln virtual casacore::Int nPar() { return nCorr_[currSpw()]; }. More... | |
virtual casacore::Int | nTotalPar () |
Total number of (complex) parameters per solve (specialize to jive with ant- or bln-basedness, etc.) More... | |
virtual casacore::Bool | normalizable () |
Does normalization by MODEL_DATA commute with this VisCal? (if so, permits pre-solve time-averaging) More... | |
virtual void | guessPar (VisBuffer &vb) |
Hazard a guess at the parameters (solveCPar) given the data. More... | |
virtual void | differentiate (CalVisBuffer &cvb) |
Differentiate VB model w.r.t. More... | |
virtual void | differentiate (VisBuffer &vb, casacore::Cube< casacore::Complex > &V, casacore::Array< casacore::Complex > &dV, casacore::Matrix< casacore::Bool > &Vflg) |
virtual void | diffSrc (VisBuffer &vb, casacore::Array< casacore::Complex > &dV) |
Differentiate VB model w.r.t. More... | |
virtual void | reReference () |
Apply refant (implemented in SVJ) More... | |
virtual void | accumulate (SolvableVisCal *incr, const casacore::Vector< casacore::Int > &fields) |
Accumulate another VisCal onto this one. 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) |
Determine and apply flux density scaling. More... | |
virtual casacore::Bool | useGenericGatherForSolve () |
Use generic data gathering mechanism for solve. More... | |
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) |
Report state: More... | |
virtual void | setApply (const casacore::Record &apply) |
virtual casacore::Bool | freqDepPar () |
In general, we are freq-dep. More... | |
virtual void | keepNCT () |
New CalTable handling. More... | |
virtual void | selfGatherAndSolve (VisSet &vs, VisEquation &ve) |
Self- gather and/or solve prototypes (triggered by useGenericGatherForSolve=F or useGenericSolveOne=F) More... | |
Public Member Functions inherited from casa::SolvableVisCal | |
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::String & | calTableName () |
Access to user-supplied parameters. More... | |
casacore::String & | calTableSelect () |
casacore::Bool & | append () |
casacore::String & | tInterpType () |
casacore::String & | fInterpType () |
casacore::Vector< casacore::Int > & | spwMap () |
casacore::String & | refantmode () |
casacore::Int & | refant () |
casacore::Vector< casacore::Int > & | refantlist () |
casacore::Int & | minblperant () |
casacore::String & | apmode () |
casacore::String & | solmode () |
casacore::Vector < casacore::Float > & | rmsthresh () |
casacore::String & | solint () |
casacore::String & | fsolint () |
casacore::Double & | preavg () |
const SolNorm & | solNorm () |
casacore::Bool | solnorm () |
casacore::Float & | minSNR () |
casacore::String & | combine () |
casacore::Bool | combspw () |
casacore::Bool | combfld () |
casacore::Bool | combscan () |
casacore::Bool | combobs () |
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 | 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::Int & | focusChan () |
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 | 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 (SDBList &) |
double | solTimeInterval () const |
Time-dep solution interval (VI2) More... | |
casacore::Double & | fintervalHz () |
Freq-dep solint values (const?!) More... | |
casacore::Double & | fintervalCh () |
const casacore::Vector < casacore::Double > & | fintervalChV () |
casacore::Matrix< casacore::Int > | chanAveBounds () |
casacore::Matrix< casacore::Int > | chanAveBounds (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 | 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 (SolveDataBuffer &) |
virtual void | differentiate (VisBuffer &, VisBuffer &, VisBuffer &, casacore::Matrix< casacore::Bool > &) |
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 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 | 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 | 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 | state () |
Report state: More... | |
virtual VisCalEnum::VCParType | setParType (VisCalEnum::VCParType type) |
virtual void | currMetaNote () |
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::String & | simint () |
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 casacore::Vector < casacore::Bool > | spwOK () |
Report calibration availability per spw (always true for non-tabular?) More... | |
const casacore::Int & | nChanPar () 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::Double & | interval () |
Return the time interval over which this calibration is constant. More... | |
casacore::Bool & | calWt () |
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::String & | extraTag () |
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 () |
Protected Member Functions | |
virtual casacore::Int & | nElem () |
The number of sets of parameters under consideration This states size of third axis of SolveAllRPar. More... | |
virtual casacore::Int | nCalMat () |
Number of Calibration matrices on ant/bln axis. More... | |
virtual casacore::Bool | trivialMuellerElem () |
Are the parameters the matrix elements? (or is a non-trivial calculation required?) (Must be implemented in specializations!) More... | |
virtual void | initSolvePar () |
Initialize solve parameters (shape) More... | |
virtual void | invalidateDiffCalMat () |
Invalidate diff cal matrices generically. More... | |
virtual void | syncMeta2 (const vi::VisBuffer2 &vb) |
overwride syncMeta2 More... | |
virtual void | syncCalMat (const casacore::Bool &doInv=false) |
Sync matrices generically for current meta data. More... | |
virtual void | syncDiffMat () |
Synchronize the differentiated calibration. More... | |
virtual void | syncWtScale () |
Synchronize weight scale factors. More... | |
template<class ScalingScheme > | |
void | calcWtScale () |
Perform weight scale calculation (specializable) More... | |
virtual casacore::Float | calcPowerNorm (casacore::Array< casacore::Float > &, const casacore::Array< casacore::Bool > &ok) |
Normalize a (complex) solution array (generic) More... | |
virtual void | invalidateCalMat () |
Invalidate cal matrices generically. More... | |
virtual void | applyCal (VisBuffer &vb, casacore::Cube< casacore::Complex > &Vout, casacore::Bool trial=false) |
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) |
template<class Accessor > | |
void | traverseMS (casacore::MeasurementSet const &ms) |
Fill caltable by traversing MS Accessor is responsible for accessing data stored either in DATA or FLOAT_DATA. More... | |
casacore::Cube < casacore::Complex > & | currentSky () |
access to current calibration data More... | |
casacore::Cube< casacore::Bool > & | currentSkyOK () |
SkyCal< casacore::Complex, casacore::Complex > & | engineC () |
SkyCal< casacore::Float, casacore::Float > & | engineF () |
virtual casacore::MeasurementSet | selectMS (casacore::MeasurementSet const &ms)=0 |
arrange data selection according to calibration mode More... | |
Protected Member Functions inherited from casa::SolvableVisCal | |
void | setSolved (const casacore::Bool &flag) |
Set to-be-solved-for flag. 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 | 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... | |
casacore::LogIO & | logSink () |
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::Bool & | simOnTheFly () |
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::String & | msName () |
casacore::Int & | nSpw () |
General Shape Info. More... | |
casacore::Int & | nAnt () |
casacore::Int & | nBln () |
casacore::Int & | currSpw () |
Current in-focus spw. More... | |
casacore::Double & | lastTime () |
Current coords. More... | |
casacore::Double & | currTime () |
casacore::Int & | currScan () |
casacore::Int & | currObs () |
casacore::Int & | currField () |
casacore::Int & | currIntent () |
casacore::Vector < casacore::Double > & | currFreq () |
casacore::Double & | refTime () |
casacore::Double & | refFreq () |
casacore::Int & | nChanPar () |
Current spectral shapes. More... | |
casacore::Int & | nChanMat () |
casacore::Int & | startChan () |
casacore::Vector< casacore::Int > & | nChanParList () |
casacore::Vector< casacore::Int > & | nChanMatList () |
casacore::Vector< casacore::Int > & | startChanList () |
VisVector & | V () |
Access to matrix renderings of Visibilities. More... | |
void | invalidateP () |
Validation of calibration parameters. More... | |
void | validateP () |
casacore::Bool | PValid () |
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 | 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... | |
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... | |
casacore::Int & | prtlev () |
Return print (cout) level. More... | |
void | setCurrField (const casacore::Int &ifld) |
set current field index vector to given field id More... | |
const MSMetaInfoForCal & | msmc () const |
Access to the MSMetaInfoForCal (throws if none) More... | |
Protected Attributes | |
casacore::Int | currAnt_ |
current antenna More... | |
casacore::Vector < casacore::Double > | interval_ |
casacore::PtrBlock< SkyCal < casacore::Complex, casacore::Complex > * > | engineC_ |
Single Dish Calibration algebra wrapper (per Spw) More... | |
casacore::PtrBlock< SkyCal < casacore::Float, casacore::Float > * > | engineF_ |
casacore::PtrBlock < casacore::Cube < casacore::Complex > * > | currentSky_ |
Current Sky spectra. More... | |
casacore::PtrBlock < casacore::Cube < casacore::Bool > * > | currentSkyOK_ |
Protected Attributes inherited from casa::SolvableVisCal | |
casacore::Int | parType_ |
NewCalTable * | ct_ |
New CalTable. More... | |
CTPatchedInterp * | ci_ |
CLPatchPanel * | cpp_ |
casacore::Vector< casacore::Bool > | spwOK_ |
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 | |
void | initializeSky () |
void | finalizeSky () |
void | updateWt2 (casacore::Matrix< casacore::Float > &weight, const casacore::Int &antenna1) |
void | initializeCorr () |
Private Attributes | |
casacore::Vector< casacore::Int > | nCorr_ |
number of correlations per spw More... | |
std::map< std::pair < casacore::Int, casacore::Int > , std::map< casacore::Int, casacore::Matrix < casacore::Double > > > | wtScaleData_ |
list of timestamps and intervals for each observation, spw, and antenna as a nested map with key obsId (outermost), spwId, antennaId (innermost) More... | |
Additional Inherited Members | |
Public Types inherited from casa::SolvableVisCal | |
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... | |
Static Public Member Functions inherited from casa::VisCal | |
static casacore::String | nameOfType (Type type) |
Public Attributes inherited from casa::SolvableVisCal | |
CalCorruptor * | corruptor_p |
object that can simulate the corruption terms More... | |
Internal or
Internal
Definition at line 152 of file SingleDishSkyCal.h.
casa::SingleDishSkyCal::SingleDishSkyCal | ( | VisSet & | vs | ) |
Constructor.
casa::SingleDishSkyCal::SingleDishSkyCal | ( | const MSMetaInfoForCal & | msmc | ) |
casa::SingleDishSkyCal::SingleDishSkyCal | ( | const casacore::Int & | nAnt | ) |
|
virtual |
Destructor.
|
virtual |
Accumulate another VisCal onto this one.
Implements casa::SolvableVisCal.
|
protectedvirtual |
Row-by-row apply to a casacore::Cube<casacore::Complex> (generic)
Implements casa::VisCal.
|
protectedvirtual |
Implements casa::VisCal.
|
protectedvirtual |
Normalize a (complex) solution array (generic)
Implements casa::SolvableVisCal.
|
protected |
Perform weight scale calculation (specializable)
|
inlineprotected |
access to current calibration data
Definition at line 313 of file SingleDishSkyCal.h.
References currentSky_, and casa::VisCal::currSpw().
|
inlineprotected |
Definition at line 314 of file SingleDishSkyCal.h.
References currentSkyOK_, and casa::VisCal::currSpw().
|
virtual |
Differentiate VB model w.r.t.
Cal parameters (no 2nd derivative yet)
Implements casa::SolvableVisCal.
|
virtual |
Implements casa::SolvableVisCal.
|
virtual |
|
inlineprotected |
Definition at line 315 of file SingleDishSkyCal.h.
References casa::VisCal::currSpw(), and engineC_.
|
inlineprotected |
Definition at line 316 of file SingleDishSkyCal.h.
References casa::VisCal::currSpw(), and engineF_.
|
private |
|
virtual |
Determine and apply flux density scaling.
Implements casa::SolvableVisCal.
|
inlinevirtual |
In general, we are freq-dep.
Reimplemented from casa::VisCal.
Definition at line 249 of file SingleDishSkyCal.h.
|
virtual |
Hazard a guess at the parameters (solveCPar) given the data.
Implements casa::SolvableVisCal.
|
private |
|
private |
|
protectedvirtual |
Initialize solve parameters (shape)
Implements casa::SolvableVisCal.
|
inlineprotectedvirtual |
Invalidate cal matrices generically.
Implements casa::VisCal.
Definition at line 298 of file SingleDishSkyCal.h.
|
inlineprotectedvirtual |
Invalidate diff cal matrices generically.
Implements casa::SolvableVisCal.
Definition at line 276 of file SingleDishSkyCal.h.
|
virtual |
New CalTable handling.
Reimplemented from casa::SolvableVisCal.
|
virtual |
Report state:
Implements casa::SolvableVisCal.
|
inlinevirtual |
Reimplemented from casa::VisCal.
Reimplemented in casa::SingleDishOtfCal, casa::SingleDishRasterCal, and casa::SingleDishPositionSwitchCal.
Definition at line 173 of file SingleDishSkyCal.h.
|
inlinevirtual |
Return casacore::Matrix type single dish calibration is antenna-based.
Reimplemented from casa::VisCal.
Definition at line 177 of file SingleDishSkyCal.h.
References casa::VisCalEnum::JONES.
|
inlinevirtual |
Mueller matrix type (must be implemented in Mueller specializations!)
Definition at line 180 of file SingleDishSkyCal.h.
References casa::Mueller::AddDiag2.
|
inlineprotectedvirtual |
Number of Calibration matrices on ant/bln axis.
Implements casa::VisCal.
Definition at line 265 of file SingleDishSkyCal.h.
References casa::VisCal::nAnt().
|
inlineprotectedvirtual |
The number of sets of parameters under consideration This states size of third axis of SolveAllRPar.
Implements casa::VisCal.
Definition at line 262 of file SingleDishSkyCal.h.
References casa::VisCal::nAnt().
|
inlinevirtual |
Does normalization by MODEL_DATA commute with this VisCal? (if so, permits pre-solve time-averaging)
Implements casa::SolvableVisCal.
Definition at line 196 of file SingleDishSkyCal.h.
|
inlinevirtual |
Number of pars per ant/bln virtual casacore::Int nPar() { return nCorr_[currSpw()]; }.
Implements casa::VisCal.
Definition at line 188 of file SingleDishSkyCal.h.
Referenced by nTotalPar().
|
inlinevirtual |
Total number of (complex) parameters per solve (specialize to jive with ant- or bln-basedness, etc.)
Implements casa::SolvableVisCal.
Definition at line 192 of file SingleDishSkyCal.h.
References nPar().
|
inlinevirtual |
Return the parameter type so far single dish calibration is real.
Reimplemented from casa::VisCal.
Definition at line 184 of file SingleDishSkyCal.h.
References casa::VisCalEnum::REAL.
|
inlinevirtual |
Apply refant (implemented in SVJ)
Implements casa::SolvableVisCal.
Definition at line 213 of file SingleDishSkyCal.h.
|
protectedpure virtual |
arrange data selection according to calibration mode
Implemented in casa::SingleDishOtfCal, casa::SingleDishRasterCal, and casa::SingleDishPositionSwitchCal.
|
virtual |
Self- gather and/or solve prototypes (triggered by useGenericGatherForSolve=F or useGenericSolveOne=F)
Reimplemented from casa::SolvableVisCal.
|
virtual |
Reimplemented from casa::SolvableVisCal.
|
protectedvirtual |
Sync matrices generically for current meta data.
Implements casa::VisCal.
|
protectedvirtual |
Synchronize the differentiated calibration.
Implements casa::SolvableVisCal.
|
protectedvirtual |
overwride syncMeta2
Reimplemented from casa::VisCal.
|
protectedvirtual |
Synchronize weight scale factors.
|
inlineprotected |
Fill caltable by traversing MS Accessor is responsible for accessing data stored either in DATA or FLOAT_DATA.
|
inlineprotectedvirtual |
Are the parameters the matrix elements? (or is a non-trivial calculation required?) (Must be implemented in specializations!)
Definition at line 270 of file SingleDishSkyCal.h.
|
inlinevirtual |
Return the type of this calibration matrix (actual type of derived class).
(Must be implemented in specializations!)
2015/03/19 (gmoellen): Use VisCal::M here, so that it is sorted correctly in the VisEquation relative to "B TSYS"
Implements casa::VisCal.
Definition at line 169 of file SingleDishSkyCal.h.
References casa::VisCal::M.
|
inlinevirtual |
Return type name as string (ditto)
Reimplemented from casa::VisCal.
Reimplemented in casa::SingleDishOtfCal, casa::SingleDishRasterCal, and casa::SingleDishPositionSwitchCal.
Definition at line 172 of file SingleDishSkyCal.h.
|
private |
|
inlinevirtual |
Use generic data gathering mechanism for solve.
Reimplemented from casa::SolvableVisCal.
Definition at line 236 of file SingleDishSkyCal.h.
|
protected |
current antenna
Definition at line 322 of file SingleDishSkyCal.h.
|
protected |
|
protected |
Definition at line 331 of file SingleDishSkyCal.h.
Referenced by currentSkyOK().
|
protected |
Single Dish Calibration algebra wrapper (per Spw)
Definition at line 326 of file SingleDishSkyCal.h.
Referenced by engineC().
|
protected |
Definition at line 327 of file SingleDishSkyCal.h.
Referenced by engineF().
|
protected |
Definition at line 323 of file SingleDishSkyCal.h.
|
private |
number of correlations per spw
Definition at line 340 of file SingleDishSkyCal.h.
|
private |
list of timestamps and intervals for each observation, spw, and antenna as a nested map with key obsId (outermost), spwId, antennaId (innermost)
Definition at line 344 of file SingleDishSkyCal.h.