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


LJJones (pointing errors) More...

#include <LJJones.h>

Inheritance diagram for casa::LJJones:
casa::SolvableVisJones casa::SolvableVisMueller casa::VisJones casa::SolvableVisCal casa::VisMueller casa::VisMueller casa::VisCal casa::VisCal casa::VisCal

Public Member Functions

 LJJones (VisSet &vs)
 Constructor. More...
 
 LJJones (VisSet &vs, casacore::MeasurementSet &ms)
 {throw(casacore::AipsError("Use the constructor LJJones(VisSet&, MeasurementSet&) instead"));}; More...
 
virtual ~LJJones ()
 LJJones(const casacore::Int& nAnt); // NYI. More...
 
virtual Type type ()
 Return the type enum. More...
 
virtual casacore::String typeName ()
 Return type name as string. More...
 
virtual casacore::String longTypeName ()
 
virtual casacore::Bool freqDepPar ()
 Frequency-dependent Parameters? Nominally not. More...
 
Jones::JonesType jonesType ()
 Type of Jones matrix according to nPar() More...
 
virtual VisCalEnum::VCParType parType ()
 Return the parameter type (nominally complex) More...
 
casacore::Cube
< casacore::Complex > & 
loadPar ()
 Specialized access to pointing parameters (no chan axis) More...
 
virtual void setModel (const casacore::String &modelImage)
 
virtual void setSolve ()
 Set the solving parameters. More...
 
virtual void setSolve (const casacore::Record &solve)
 
virtual void setNiter (const casacore::Int &niter)
 
virtual void setTolerance (const casacore::Float &tol)
 
virtual void setGain (const casacore::Float &gain)
 
virtual void setApply (const casacore::Record &applypar)
 
virtual void applyCal (VisBuffer &vb, casacore::Cube< casacore::Complex > &Mout)
 Apply calibration to a VisBuffer. More...
 
virtual void differentiate (VisBuffer &vb, casacore::Cube< casacore::Complex > &Mout, casacore::Array< casacore::Complex > &dMout, casacore::Matrix< casacore::Bool > &Mflg)
 Differentiate a VisBuffer w.r.t. More...
 
virtual void differentiate (VisBuffer &vb, VisBuffer &dvb0, VisBuffer &dvb1, casacore::Matrix< casacore::Bool > &Mflg)
 Differentiate a VisBuffer w.r.t. More...
 
virtual void diffResiduals (VisIter &vi, VisEquation &ve, VisBuffer &residuals, VisBuffer &dVr1, VisBuffer &dVr2, casacore::Matrix< casacore::Bool > &flags)
 This one averages the residuals and the derivatives in time. More...
 
virtual void guessPar (VisBuffer &vb)
 Guess (throws error because we don't yet solve for this) More...
 
virtual void guessPar ()
 
virtual casacore::Cube
< casacore::Complex > & 
solvePar ()
 
virtual void setRPar (casacore::Cube< casacore::Complex > &val)
 
virtual void setRPar (casacore::Double val)
 
virtual casacore::Bool normalizable ()
 virtual void keep(const casacore::Int& slot); More...
 
virtual void keep (const casacore::Int &slot)
 virtual BaseCalSet& cs() {return *cs_;}; More...
 
virtual CalSet
< casacore::Complex > & 
cs ()
 
virtual void inflate (const casacore::Vector< casacore::Int > &nChan, const casacore::Vector< casacore::Int > &startChan, const casacore::Vector< casacore::Int > &nSlot)
 Inflate the pristine CalSet (generically) More...
 
void initSolve (VisSet &vs)
 
void initSolvePar ()
 Initialize solve parameter shape Jones version: (nPar(),1,nAnt()) (one chan, all antennas) More...
 
void store ()
 
void store (const casacore::String &table, const casacore::Bool &append)
 
casacore::Bool verifyForSolve (VisBuffer &vb)
 
virtual void postSolveMassage (const VisBuffer &)
 
virtual void selfGatherAndSolve (VisSet &vs, VisEquation &ve)
 Self- gather and/or solve prototypes (triggered by useGenericGatherForSolve=F or useGenericSolveOne=F; must be overridden in derived specializations) More...
 
virtual casacore::Bool useGenericGatherForSolve ()
 Report if calibration available for specified spw (if no CalInterp available, assume true) More...
 
virtual casacore::Float printFraction (const casacore::Int &)
 
casacore::Array
< casacore::Complex > 
getOffsets (const casacore::Int &spw)
 
casacore::Array< casacore::DoublegetTime (const casacore::Int &spw)
 
void nearest (const casacore::Double time, casacore::Array< casacore::Complex > &vals)
 
void printRPar ()
 
void setByPassMode (casacore::Int &b)
 
void getAvgVB (VisIter &vi, VisEquation &ve, VisBuffer &vb)
 
- Public Member Functions inherited from casa::SolvableVisJones
 SolvableVisJones (VisSet &vs)
 
 SolvableVisJones (casacore::String msname, casacore::Int MSnAnt, casacore::Int MSnSpw)
 
 SolvableVisJones (const casacore::Int &nAnt)
 
 SolvableVisJones (const MSMetaInfoForCal &msmc)
 
virtual ~SolvableVisJones ()
 
virtual casacore::Int nTotalPar ()
 Total number of (complex) parameters per solve Jones version: nPar()*nAnt() More...
 
virtual void differentiate (CalVisBuffer &cvb)
 Differentiate VB model w.r.t. More...
 
virtual void differentiate (SolveDataBuffer &sdb)
 
virtual void diffSrc (VisBuffer &vb, casacore::Array< casacore::Complex > &dV)
 Differentiate VB model w.r.t. More...
 
virtual void reReference ()
 Apply refant. More...
 
virtual void accumulate (SolvableVisCal *incr, const casacore::Vector< casacore::Int > &fields)
 Accumulate another VisCal onto this one. More...
 
virtual void globalPostSolveTinker ()
 Post solve tinkering (Jones version: includes refant application) More...
 
virtual void applyRefAnt ()
 Apply reference antenna (generic Jones version) More...
 
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, SolvableVisCal::fluxScaleStruct &oFluxScaleStruct, const casacore::String &oListFile, const casacore::Bool &incremental=false, const casacore::Int &fitorder=1, const casacore::Bool &display=false)
 Fluxscale is implemented here. More...
 
virtual void keepNCT ()
 SVJ-specific write to caltable. More...
 
virtual void state ()
 Report state: 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)
 Write calibration solutions to the terminal. More...
 
int writeHeader (const casacore::uInt numAntCols, const casacore::uInt numAnts, const casacore::uInt iElem)
 Write header for listCal output. More...
 
virtual void nearest (const casacore::Double, casacore::Array< casacore::Float > &)
 
void setupPlotter ()
 plotting historgram More...
 
void plotHistogram (const casacore::String &title, const casacore::Int index, const casacore::Vector< casacore::Double > &data, const casacore::Int nbin)
 
- Public Member Functions inherited from casa::SolvableVisMueller
 SolvableVisMueller (VisSet &vs)
 
 SolvableVisMueller (casacore::String msname, casacore::Int MSnAnt, casacore::Int MSnSpw)
 
 SolvableVisMueller (const MSMetaInfoForCal &msmc)
 
 SolvableVisMueller (const casacore::Int &nAnt)
 
virtual ~SolvableVisMueller ()
 
- 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::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::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::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 setCallib (const casacore::Record &callib, const casacore::MeasurementSet &selms)
 
virtual casacore::String applyinfo ()
 Report apply info/params, e.g. More...
 
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 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 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 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 enforceAPonSoln ()
 Divide all solutions by their amplitudes. More...
 
virtual void normalize ()
 Normalize a solution (generic implementation) 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::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 casacore::Vector
< casacore::Bool
spwOK ()
 Report calibration availability per spw (always true for non-tabular?) 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 Member Functions inherited from casa::VisMueller
 VisMueller (VisSet &vs)
 Constructor. More...
 
 VisMueller (casacore::String msname, casacore::Int MSnAnt, casacore::Int MSnSpw)
 
 VisMueller (const MSMetaInfoForCal &msmc)
 
 VisMueller (const casacore::Int &nAnt)
 
virtual ~VisMueller ()
 
- Public Member Functions inherited from casa::VisJones
 VisJones (VisSet &vs)
 Constructor. More...
 
 VisJones (casacore::String msname, casacore::Int MSnAnt, casacore::Int MSnSpw)
 
 VisJones (const MSMetaInfoForCal &msmc)
 
 VisJones (const casacore::Int &nAnt)
 
virtual ~VisJones ()
 
virtual VisCalEnum::MatrixType matrixType ()
 Return casacore::Matrix type. More...
 
virtual Mueller::MuellerType muellerType ()
 What kind of Mueller matrices should we use? (A function of the jonesType and target data shape) More...
 

Protected Member Functions

virtual casacore::Int nPar ()
 EP has a pair of real parameters per feed. More...
 
virtual casacore::Bool trivialJonesElem ()
 Jones matrix elements are NOT trivial. More...
 
virtual void makeComplexGrid (casacore::TempImage< casacore::Complex > &Grid, casacore::PagedImage< casacore::Float > &ModelImage, VisBuffer &vb)
 Fill-in a complex grid with the image values in prepration for computing it's FT. More...
 
void printActivity (const casacore::Int slotNo, const casacore::Int fieldId, const casacore::Int spw, const casacore::Int nSolutions)
 
void reformVisibilities (const VisBuffer &vb, const casacore::Int whichChan, const casacore::Int whichPol, casacore::Array< casacore::Complex > &visArray, casacore::Array< casacore::Float > &visWts)
 inline virtual CalSet<casacore::Float> cs() {return *cs_;} More...
 
casacore::Int getRefAnt (const casacore::Array< casacore::Float > &visWts)
 
- Protected Member Functions inherited from casa::SolvableVisJones
virtual casacore::Int nCalMat ()
 Number of Cal Matrices to form on baseline axis (Jones, all contexts: nAnt()) More...
 
virtual casacore::Bool trivialDM ()
 DM never trivial for SVJ. More...
 
virtual casacore::Bool trivialDJ ()
 Are differentiated J matrices constant in chan & ant? More...
 
JonesdJ1 ()
 Access to matrix rendering of dJ1, dJ2. More...
 
JonesdJ2 ()
 
casacore::Array
< casacore::Complex > & 
diffJElem ()
 Access to differentiated Joness. More...
 
virtual void invalidateDiffCalMat ()
 Invalidate diff cal matrices generically (at this level, M, dM, J, dJ) More...
 
void invalidateDJ ()
 Validation of Jones matrix derivatives. More...
 
void validateDJ ()
 
casacore::Bool DJValid ()
 
virtual void syncDiffMat ()
 Synchronize the differentiated calibration (specialization for Jones) More...
 
virtual void syncDiffJones ()
 Synchronize the Jones AND diffJones matrices. More...
 
virtual void calcAllDiffJones ()
 Calculate the ensemble of diff'd Jones Elements. More...
 
virtual void calcOneDiffJones (casacore::Matrix< casacore::Complex > &mat, const casacore::Vector< casacore::Complex > &par)
 Calculate one ant/chan's diffJElem w.r.t. More...
 
void createDiffJones ()
 Create matrix renderers for dJs. More...
 
void setMatByOk ()
 Override VJ::setMatByOk in solve context. More...
 
virtual void initTrivDJ ()
 Initialize trivial diff'd Jones. More...
 
virtual void stateSVJ (const casacore::Bool &doVC)
 
virtual casacore::Float calcPowerNorm (casacore::Array< casacore::Float > &amp, const casacore::Array< casacore::Bool > &ok)
 atomic power normalization calculation SVJ version assumes amp in voltage units More...
 
- Protected Member Functions inherited from casa::SolvableVisMueller
MuellerdM ()
 Access to matrix rendering of dM (per par) More...
 
casacore::Array
< casacore::Complex > & 
diffMElem ()
 Access to differentiated Mueller elements. More...
 
void invalidateDM ()
 Validation of diffMueller matrices. More...
 
void validateDM ()
 
casacore::Bool DMValid ()
 
virtual void syncDiffMueller ()
 Synchronize the Muellers AND diffMuellers. More...
 
virtual void calcAllDiffMueller ()
 Calculate the ensemble of diff'd Mueller Elements. More...
 
virtual void calcOneDiffMueller (casacore::Matrix< casacore::Complex > &mat, const casacore::Vector< casacore::Complex > &par)
 Calculate one diffMElem. More...
 
void createDiffMueller ()
 Create matrix renderers for dMs. More...
 
virtual void initTrivDM ()
 Initialize trivial diff'd Muellers. More...
 
virtual void stateSVM (const casacore::Bool &doVC)
 SVM-specific state. 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::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 ()
 
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 ()
 
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...
 
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...
 
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 Member Functions inherited from casa::VisMueller
MuellerM ()
 Access to matrix renderings of Muellers. More...
 
casacore::Cube
< casacore::Complex > & 
currMElem ()
 Access to current matrices. More...
 
casacore::Cube< casacore::Bool > & currMElemOK ()
 
void invalidateM ()
 Validation of Mueller matrices (for currSpw) More...
 
void validateM ()
 
casacore::Bool MValid ()
 
virtual void syncMueller (const casacore::Bool &doInv=false)
 Sync Mueller matrix elements for current parameters. More...
 
virtual void calcOneMueller (casacore::Vector< casacore::Complex > &mat, casacore::Vector< casacore::Bool > &mOk, const casacore::Vector< casacore::Complex > &par, const casacore::Vector< casacore::Bool > &pOk)
 Calculate a single Mueller matrix by some means. More...
 
virtual void invMueller ()
 Invert Mueller matrices. More...
 
void createMueller ()
 Create Mueller matrix algebra interface. More...
 
- Protected Member Functions inherited from casa::VisJones
virtual casacore::IntnElem ()
 Number of parameter sets is number of antennas. More...
 
virtual casacore::Bool trivialMuellerElem ()
 Jones matrices can never be trivial Muellers! More...
 
virtual casacore::Bool applyByMueller ()
 Are we applying via Mueller or Jones multiplication? (probably by Jones for native Jones?) More...
 
virtual casacore::Bool applyByJones ()
 
JonesJ1 ()
 Access to matrix renderings of Jones matrices. More...
 
JonesJ2 ()
 
casacore::Cube
< casacore::Complex > & 
currJElem ()
 Access to Jones matrix element array. More...
 
casacore::Cube< casacore::Bool > & currJElemOK ()
 
virtual void invalidateCalMat ()
 Invalidate cal matrices generically (at this level, both Mueller and Jones) More...
 
void invalidateJ ()
 Validation of Jones matrices. More...
 
void validateJ ()
 
casacore::Bool JValid ()
 
virtual void applyCal (VisBuffer &vb, casacore::Cube< casacore::Complex > &Vout, casacore::Bool trial=false)
 Row-by-row apply to a casacore::Cube<casacore::Complex> (applyByJones override) More...
 
virtual void applyCal2 (vi::VisBuffer2 &vb, casacore::Cube< casacore::Complex > &Vout, casacore::Cube< casacore::Float > &Wout, casacore::Bool trial=false)
 
virtual void syncCalMat (const casacore::Bool &doInv=false)
 Sync matrices for current meta data (VisJones override) More...
 
virtual void calcAllMueller ()
 Calculate an ensemble of Mueller matrices (all baselines, channels) (only meaningful if applyByMueller()=T) More...
 
virtual void syncJones (const casacore::Bool &doInv=false)
 Synchronize current Jones matrices. More...
 
virtual void calcAllJones ()
 Calculate an ensemble of Jones matrices (all antennas, channels) More...
 
virtual void calcOneJones (casacore::Vector< casacore::Complex > &mat, casacore::Vector< casacore::Bool > &mOk, const casacore::Vector< casacore::Complex > &par, const casacore::Vector< casacore::Bool > &pOk)
 Calculate a single Jones matrix by some means from parameters. More...
 
virtual void invJones ()
 Invert Jones matrices. More...
 
void createJones ()
 Create Jones interface. More...
 
virtual void syncWtScale ()
 Synchronize weight scale factors. More...
 
virtual void calcWtScale ()
 Perform weight scale calculation (specializable) More...
 
virtual void updateWt (casacore::Vector< casacore::Float > &wt, const casacore::Int &a1, const casacore::Int &a2)
 Update the wt vector for a baseline. More...
 
virtual void updateWt2 (casacore::Matrix< casacore::Float > &wt, const casacore::Int &a1, const casacore::Int &a2)
 

Private Attributes

casacore::Cube< casacore::Complex > pointPar_
 Local casacore::Matrix for referencing pointing pars in a convenient way. More...
 
GridFTpbwp_p
 
VisSetvs_p
 casacore::MeasurementSet *ms_p; More...
 
casacore::TempImage
< casacore::Complex > 
targetVisModel_
 casacore::Array<casacore::Float> azOff, elOff; More...
 
CalSet< casacore::Complex > * cs_
 
casacore::Double maxTimePerSolution
 
casacore::Double minTimePerSolution
 
casacore::Double avgTimePerSolution
 
casacore::Timer timer
 
casacore::Vector< casacore::IntpolMap_p
 
casacore::Float tolerance_p
 
casacore::Float gain_p
 
casacore::Int niter_p
 
casacore::Int byPass_p
 
casacore::String modelImageName_p
 

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
CalCorruptorcorruptor_p
 object that can simulate the corruption terms More...
 
- Protected Attributes inherited from casa::SolvableVisCal
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
 

Detailed Description


LJJones (pointing errors)

Definition at line 56 of file LJJones.h.

Constructor & Destructor Documentation

casa::LJJones::LJJones ( VisSet vs)

Constructor.

casa::LJJones::LJJones ( VisSet vs,
casacore::MeasurementSet ms 
)

{throw(casacore::AipsError("Use the constructor LJJones(VisSet&, MeasurementSet&) instead"));};

virtual casa::LJJones::~LJJones ( )
virtual

LJJones(const casacore::Int& nAnt); // NYI.

Member Function Documentation

virtual void casa::LJJones::applyCal ( VisBuffer vb,
casacore::Cube< casacore::Complex > &  Mout 
)
virtual

Apply calibration to a VisBuffer.

virtual CalSet<casacore::Complex>& casa::LJJones::cs ( )
inlinevirtual

Definition at line 137 of file LJJones.h.

References cs_.

Referenced by getOffsets(), and getTime().

virtual void casa::LJJones::differentiate ( VisBuffer vb,
casacore::Cube< casacore::Complex > &  Mout,
casacore::Array< casacore::Complex > &  dMout,
casacore::Matrix< casacore::Bool > &  Mflg 
)
virtual

Differentiate a VisBuffer w.r.t.

pointng parameters

These effectively compute residuals and derivatives for a time-averaged VisBuffer

Reimplemented from casa::SolvableVisJones.

virtual void casa::LJJones::differentiate ( VisBuffer vb,
VisBuffer dvb0,
VisBuffer dvb1,
casacore::Matrix< casacore::Bool > &  Mflg 
)
virtual

Differentiate a VisBuffer w.r.t.

pointng parameters

Reimplemented from casa::SolvableVisCal.

virtual void casa::LJJones::diffResiduals ( VisIter vi,
VisEquation ve,
VisBuffer residuals,
VisBuffer dVr1,
VisBuffer dVr2,
casacore::Matrix< casacore::Bool > &  flags 
)
virtual

This one averages the residuals and the derivatives in time.

virtual casacore::Bool casa::LJJones::freqDepPar ( )
inlinevirtual

Frequency-dependent Parameters? Nominally not.

Reimplemented from casa::VisCal.

Definition at line 74 of file LJJones.h.

void casa::LJJones::getAvgVB ( VisIter vi,
VisEquation ve,
VisBuffer vb 
)
casacore::Array<casacore::Complex> casa::LJJones::getOffsets ( const casacore::Int spw)
inline

Definition at line 151 of file LJJones.h.

References cs(), and casa::CalSet< T >::par().

casacore::Int casa::LJJones::getRefAnt ( const casacore::Array< casacore::Float > &  visWts)
protected
casacore::Array<casacore::Double> casa::LJJones::getTime ( const casacore::Int spw)
inline

Definition at line 152 of file LJJones.h.

References cs(), and casa::CalSet< T >::time().

virtual void casa::LJJones::guessPar ( VisBuffer vb)
virtual

Guess (throws error because we don't yet solve for this)

Reimplemented from casa::SolvableVisMueller.

virtual void casa::LJJones::guessPar ( )
inlinevirtual

Definition at line 124 of file LJJones.h.

References pointPar_.

virtual void casa::LJJones::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 from casa::SolvableVisCal.

void casa::LJJones::initSolve ( VisSet vs)
void casa::LJJones::initSolvePar ( )
virtual

Initialize solve parameter shape Jones version: (nPar(),1,nAnt()) (one chan, all antennas)

Reimplemented from casa::SolvableVisJones.

Jones::JonesType casa::LJJones::jonesType ( )
inlinevirtual

Type of Jones matrix according to nPar()

Implements casa::VisJones.

Definition at line 77 of file LJJones.h.

References casa::Jones::General.

virtual void casa::LJJones::keep ( const casacore::Int slot)
virtual

virtual BaseCalSet& cs() {return *cs_;};

casacore::Cube<casacore::Complex>& casa::LJJones::loadPar ( )

Specialized access to pointing parameters (no chan axis)

virtual casacore::String casa::LJJones::longTypeName ( )
inlinevirtual

Reimplemented from casa::VisCal.

Definition at line 72 of file LJJones.h.

virtual void casa::LJJones::makeComplexGrid ( casacore::TempImage< casacore::Complex > &  Grid,
casacore::PagedImage< casacore::Float > &  ModelImage,
VisBuffer vb 
)
protectedvirtual

Fill-in a complex grid with the image values in prepration for computing it's FT.

void casa::LJJones::nearest ( const casacore::Double  time,
casacore::Array< casacore::Complex > &  vals 
)
virtual

Reimplemented from casa::SolvableVisJones.

virtual casacore::Bool casa::LJJones::normalizable ( )
inlinevirtual

virtual void keep(const casacore::Int& slot);

Reimplemented from casa::SolvableVisJones.

Definition at line 132 of file LJJones.h.

virtual casacore::Int casa::LJJones::nPar ( )
inlineprotectedvirtual

EP has a pair of real parameters per feed.

Implements casa::VisCal.

Definition at line 161 of file LJJones.h.

virtual VisCalEnum::VCParType casa::LJJones::parType ( void  )
inlinevirtual

Return the parameter type (nominally complex)

Reimplemented from casa::VisCal.

Definition at line 79 of file LJJones.h.

References casa::VisCalEnum::COMPLEX, and casa::SolvableVisCal::setParType().

virtual void casa::LJJones::postSolveMassage ( const VisBuffer )
virtual
void casa::LJJones::printActivity ( const casacore::Int  slotNo,
const casacore::Int  fieldId,
const casacore::Int  spw,
const casacore::Int  nSolutions 
)
protected
virtual casacore::Float casa::LJJones::printFraction ( const casacore::Int )
inlinevirtual

Definition at line 150 of file LJJones.h.

void casa::LJJones::printRPar ( )
void casa::LJJones::reformVisibilities ( const VisBuffer vb,
const casacore::Int  whichChan,
const casacore::Int  whichPol,
casacore::Array< casacore::Complex > &  visArray,
casacore::Array< casacore::Float > &  visWts 
)
protected

inline virtual CalSet<casacore::Float> cs() {return *cs_;}

virtual void casa::LJJones::selfGatherAndSolve ( VisSet vs,
VisEquation ve 
)
virtual

Self- gather and/or solve prototypes (triggered by useGenericGatherForSolve=F or useGenericSolveOne=F; must be overridden in derived specializations)

Reimplemented from casa::SolvableVisCal.

virtual void casa::LJJones::setApply ( const casacore::Record applypar)
virtual

Reimplemented from casa::SolvableVisCal.

void casa::LJJones::setByPassMode ( casacore::Int b)
inline

Definition at line 156 of file LJJones.h.

References byPass_p.

virtual void casa::LJJones::setGain ( const casacore::Float gain)
inlinevirtual

Definition at line 90 of file LJJones.h.

References gain_p.

virtual void casa::LJJones::setModel ( const casacore::String modelImage)
virtual

Reimplemented from casa::SolvableVisCal.

virtual void casa::LJJones::setNiter ( const casacore::Int niter)
inlinevirtual

Definition at line 88 of file LJJones.h.

References niter_p.

virtual void casa::LJJones::setRPar ( casacore::Cube< casacore::Complex > &  val)
inlinevirtual

Definition at line 127 of file LJJones.h.

References pointPar_, casacore::Cube< T >::resize(), and casacore::Cube< T >::shape().

virtual void casa::LJJones::setRPar ( casacore::Double  val)
inlinevirtual

Definition at line 128 of file LJJones.h.

References pointPar_.

virtual void casa::LJJones::setSolve ( )
virtual

Set the solving parameters.

Reimplemented from casa::SolvableVisCal.

virtual void casa::LJJones::setSolve ( const casacore::Record solve)
virtual

Reimplemented from casa::SolvableVisCal.

virtual void casa::LJJones::setTolerance ( const casacore::Float tol)
inlinevirtual

Definition at line 89 of file LJJones.h.

References tolerance_p.

virtual casacore::Cube<casacore::Complex>& casa::LJJones::solvePar ( )
inlinevirtual

Definition at line 126 of file LJJones.h.

References pointPar_.

void casa::LJJones::store ( )
void casa::LJJones::store ( const casacore::String table,
const casacore::Bool append 
)
virtual casacore::Bool casa::LJJones::trivialJonesElem ( )
inlineprotectedvirtual

Jones matrix elements are NOT trivial.

Implements casa::VisJones.

Definition at line 164 of file LJJones.h.

virtual Type casa::LJJones::type ( )
inlinevirtual

Return the type enum.

Implements casa::VisCal.

Definition at line 68 of file LJJones.h.

References casa::VisCal::E.

virtual casacore::String casa::LJJones::typeName ( )
inlinevirtual

Return type name as string.

Reimplemented from casa::VisCal.

Definition at line 71 of file LJJones.h.

virtual casacore::Bool casa::LJJones::useGenericGatherForSolve ( )
inlinevirtual

Report if calibration available for specified spw (if no CalInterp available, assume true)

Use generic data gathering mechanism for solve

Reimplemented from casa::SolvableVisCal.

Definition at line 149 of file LJJones.h.

casacore::Bool casa::LJJones::verifyForSolve ( VisBuffer vb)
virtual

Reimplemented from casa::SolvableVisCal.

Member Data Documentation

casacore::Double casa::LJJones::avgTimePerSolution
private

Definition at line 188 of file LJJones.h.

casacore::Int casa::LJJones::byPass_p
private

Definition at line 192 of file LJJones.h.

Referenced by setByPassMode().

CalSet<casacore::Complex>* casa::LJJones::cs_
private

Definition at line 187 of file LJJones.h.

Referenced by cs().

casacore::Float casa::LJJones::gain_p
private

Definition at line 191 of file LJJones.h.

Referenced by setGain().

casacore::Double casa::LJJones::maxTimePerSolution
private

Definition at line 188 of file LJJones.h.

casacore::Double casa::LJJones::minTimePerSolution
private

Definition at line 188 of file LJJones.h.

casacore::String casa::LJJones::modelImageName_p
private

Definition at line 193 of file LJJones.h.

casacore::Int casa::LJJones::niter_p
private

Definition at line 192 of file LJJones.h.

Referenced by setNiter().

GridFT* casa::LJJones::pbwp_p
private

Definition at line 182 of file LJJones.h.

casacore::Cube<casacore::Complex> casa::LJJones::pointPar_
private

Local casacore::Matrix for referencing pointing pars in a convenient way.

Definition at line 181 of file LJJones.h.

Referenced by guessPar(), setRPar(), and solvePar().

casacore::Vector<casacore::Int> casa::LJJones::polMap_p
private

Definition at line 190 of file LJJones.h.

casacore::TempImage<casacore::Complex> casa::LJJones::targetVisModel_
private

casacore::Array<casacore::Float> azOff, elOff;

Definition at line 186 of file LJJones.h.

casacore::Timer casa::LJJones::timer
private

Definition at line 189 of file LJJones.h.

casacore::Float casa::LJJones::tolerance_p
private

Definition at line 191 of file LJJones.h.

Referenced by setTolerance().

VisSet* casa::LJJones::vs_p
private

casacore::MeasurementSet *ms_p;

Definition at line 184 of file LJJones.h.


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