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


VisCal More...

#include <VisCal.h>

Inheritance diagram for casa::VisCal:
casa::SolvableVisCal casa::VisMueller casa::SingleDishSkyCal casa::SolvableVisMueller casa::SolvableVisMueller casa::VisJones casa::SingleDishOtfCal casa::SingleDishPositionSwitchCal casa::SingleDishRasterCal casa::ANoise casa::SolvableVisJones casa::XMueller casa::XMueller casa::ANoise casa::SolvableVisJones casa::XMueller casa::XMueller casa::PJones casa::SolvableVisJones

Public Types

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

 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 spwOK (casacore::Int)
 
virtual casacore::Bool calAvailable (vi::VisBuffer2 &)
 Calibration available? (always true for non-tabular) More...
 
virtual casacore::Bool VBOKforCalApply (vi::VisBuffer2 &)
 Calibration expected AND available? (always assume 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::Bool isSolvable ()
 Is this solveable? (never via this interface) More...
 
virtual casacore::Doubleinterval ()
 Return the time interval over which this calibration is constant. 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 casacore::String applyinfo ()
 Apply info/params, suitable for logging. More...
 
virtual casacore::String siminfo ()
 simulation params - for a VC, sim is apply; for a SVC this will get overriden 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...
 
virtual casacore::Record actionRec ()
 
virtual void state ()
 Report the state. More...
 
virtual void currMetaNote ()
 
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 setMeta (int obs, int scan, double time, int spw, const casacore::Vector< double > &freq, int fld)
 VI2-related refactor-----------------------------------—. More...
 
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 ()
 

Static Public Member Functions

static casacore::String nameOfType (Type type)
 

Protected Member Functions

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 calcPar ()
 Calculate Mueller parameters by some means. 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...
 

Private Member Functions

 VisCal ()
 Defalt ctor is private. More...
 
void initVisCal ()
 Initialize pointers, etc. More...
 
void deleteVisCal ()
 Delete pointers. More...
 

Private Attributes

casacore::String msName_
 Associated casacore::MS name. More...
 
const MSMetaInfoForCalmsmc_
 The MSMetaInfoForCal pointer. More...
 
const bool delmsmc_
 
casacore::Int nSpw_
 Number of Spectral windows. More...
 
casacore::Int nAnt_
 Number of antennas. More...
 
casacore::Int nBln_
 Number of baselines. More...
 
casacore::Int currSpw_
 Current synchronized spw. More...
 
casacore::Vector
< casacore::Double
currTime_
 Current indices. More...
 
casacore::Vector< casacore::IntcurrScan_
 
casacore::Vector< casacore::IntcurrObs_
 
casacore::Vector< casacore::IntcurrField_
 
casacore::Vector< casacore::IntcurrIntent_
 
casacore::Vector
< casacore::Double
currFreq_
 
casacore::Vector
< casacore::Double
lastTime_
 
casacore::Double refTime_
 
casacore::Double refFreq_
 
casacore::Vector< casacore::IntnChanPar_
 Channel counts. More...
 
casacore::Vector< casacore::IntnChanMat_
 
casacore::Vector< casacore::IntstartChan_
 
casacore::Double interval_
 Solution timescale (context-dependent) More...
 
casacore::Bool applied_
 Application flag. More...
 
casacore::Int focusChan_
 In-focus channel for single-chan solves on multi-chan data. More...
 
casacore::PtrBlock< VisVector * > V_
 VisVector wrapper (per Spw) More...
 
casacore::PtrBlock
< casacore::Cube
< casacore::Complex > * > 
currCPar_
 Current parameters. More...
 
casacore::PtrBlock
< casacore::Cube
< casacore::Float > * > 
currRPar_
 
casacore::PtrBlock
< casacore::Cube
< casacore::Bool > * > 
currParOK_
 
casacore::Vector< casacore::BoolPValid_
 Paremeter validity. More...
 
casacore::Bool calWt_
 Trigger calibration of weights. More...
 
casacore::PtrBlock
< casacore::Cube
< casacore::Float > * > 
currWtScale_
 Weight scale factors. More...
 
casacore::Int64 ndataIn_
 Flag counting. More...
 
casacore::Int64 nflagIn_
 
casacore::Int64 nflagOut_
 
casacore::Int prtlev_
 Print level. More...
 
casacore::String extratag_
 

Friends

class SolvableVisJones
 

Detailed Description


VisCal

Definition at line 53 of file VisCal.h.

Member Enumeration Documentation

Enumeration of parameter types (casacore::Complex, Real, or Both)

Enumerator
Co 
Re 
CoRe 

Definition at line 65 of file VisCal.h.

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};.

Enumerator
Test 
ANoise 
M 
KAntPos 
B 
K 
G 
J 
D 
X 
C 
P 
E 
T 
F 
A 
ALL 

Definition at line 62 of file VisCal.h.

Constructor & Destructor Documentation

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

Defalt ctor is private.

Member Function Documentation

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

Reimplemented in casa::SolvableVisCal.

virtual void casa::VisCal::applyCal ( VisBuffer vb,
casacore::Cube< casacore::Complex > &  Vout,
casacore::Bool  trial = false 
)
protectedpure virtual

Row-by-row apply to a casacore::Cube<casacore::Complex> (generic)

Implemented in casa::VisJones, casa::VisMueller, and casa::SingleDishSkyCal.

virtual void casa::VisCal::applyCal2 ( vi::VisBuffer2 vb,
casacore::Cube< casacore::Complex > &  Vout,
casacore::Cube< casacore::Float > &  Wout,
casacore::Bool  trial = false 
)
protectedpure virtual
virtual casacore::String casa::VisCal::applyinfo ( )
virtual

Apply info/params, suitable for logging.

Reimplemented in casa::SolvableVisCal, and casa::FJones.

Referenced by siminfo().

casacore::Int casa::VisCal::blnidx ( const casacore::Int a1,
const casacore::Int a2 
)
inline

Baseline index from antenna indices: (assumes a1<=a2 !!)

Definition at line 193 of file VisCal.h.

References nAnt().

virtual casacore::Bool casa::VisCal::calAvailable ( vi::VisBuffer2 )
inlinevirtual

Calibration available? (always true for non-tabular)

Reimplemented in casa::SolvableVisCal.

Definition at line 121 of file VisCal.h.

virtual void casa::VisCal::calcPar ( )
protectedvirtual
casacore::Bool& casa::VisCal::calWt ( )
inline

Trigger calibration of weights.

Definition at line 164 of file VisCal.h.

References calWt_.

void casa::VisCal::checkCurrCal ( )
protected

Test for need of new calibration.

virtual void casa::VisCal::correct ( VisBuffer vb,
casacore::Bool  trial = false 
)
virtual

Apply calibration to data in VisBuffer (correct casacore::Data or corrupt Model) (in-place versions)

virtual void casa::VisCal::correct ( VisBuffer vb,
casacore::Cube< casacore::Complex > &  Vout,
casacore::Bool  trial = false 
)
virtual

Apply calibration to data in VisBuffer; (alternate output versions)

virtual void casa::VisCal::correct2 ( vi::VisBuffer2 vb,
casacore::Bool  trial = false,
casacore::Bool  doWtSp = false,
casacore::Bool  dosync = true 
)
virtual

Reimplemented in casa::StandardTsys.

virtual void casa::VisCal::corrupt ( VisBuffer vb)
virtual
virtual void casa::VisCal::corrupt ( VisBuffer vb,
casacore::Cube< casacore::Complex > &  Mout 
)
virtual
virtual void casa::VisCal::corrupt2 ( vi::VisBuffer2 vb)
virtual
virtual void casa::VisCal::corrupt2 ( vi::VisBuffer2 vb,
casacore::Cube< casacore::Complex > &  Mout 
)
virtual
virtual void casa::VisCal::countInFlag ( const VisBuffer vb)
protectedvirtual

Flag counting.

virtual void casa::VisCal::countInFlag2 ( const vi::VisBuffer2 vb)
protectedvirtual
virtual void casa::VisCal::countOutFlag ( const VisBuffer vb)
protectedvirtual
virtual void casa::VisCal::countOutFlag2 ( const vi::VisBuffer2 vb)
protectedvirtual
virtual casacore::Cube<casacore::Complex>& casa::VisCal::currCPar ( )
inlinevirtual

Access (public) to current solution parameters and matrices.

Definition at line 223 of file VisCal.h.

References currCPar_, and currSpw().

casacore::Int& casa::VisCal::currField ( )
inlineprotected

Definition at line 254 of file VisCal.h.

References currField_, and currSpw().

casacore::Vector<casacore::Double>& casa::VisCal::currFreq ( )
inlineprotected

Definition at line 256 of file VisCal.h.

References currFreq_.

casacore::Int& casa::VisCal::currIntent ( )
inlineprotected

Definition at line 255 of file VisCal.h.

References currIntent_, and currSpw().

virtual void casa::VisCal::currMetaNote ( )
virtual

Reimplemented in casa::SolvableVisCal.

casacore::Int& casa::VisCal::currObs ( )
inlineprotected

Definition at line 253 of file VisCal.h.

References currObs_, and currSpw().

virtual casacore::Cube<casacore::Bool>& casa::VisCal::currParOK ( )
inlinevirtual

Definition at line 225 of file VisCal.h.

References currParOK_, and currSpw().

virtual casacore::Cube<casacore::Float>& casa::VisCal::currRPar ( )
inlinevirtual

Definition at line 224 of file VisCal.h.

References currRPar_, and currSpw().

casacore::Int& casa::VisCal::currScan ( )
inlineprotected

Definition at line 252 of file VisCal.h.

References currScan_, and currSpw().

casacore::Int& casa::VisCal::currSpw ( )
inlineprotected
casacore::Double& casa::VisCal::currTime ( )
inlineprotected

Definition at line 251 of file VisCal.h.

References currSpw(), and currTime_.

casacore::Cube<casacore::Float>& casa::VisCal::currWtScale ( )
inlineprotected

Access to weight-scaling factors.

Definition at line 281 of file VisCal.h.

References currSpw(), and currWtScale_.

void casa::VisCal::deleteVisCal ( )
private

Delete pointers.

casacore::String& casa::VisCal::extraTag ( )
inline

Definition at line 196 of file VisCal.h.

References extratag_.

virtual casacore::Bool casa::VisCal::freqDepCalWt ( )
inlinevirtual

Freq-dep Weight scaling? // almost always false.

Reimplemented in casa::SDDoubleCircleGainCal.

Definition at line 137 of file VisCal.h.

virtual casacore::Bool casa::VisCal::freqDepMat ( )
inlinevirtual

Frequency-dependent Matrices? Nominally same as freqDepPar.

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

Definition at line 134 of file VisCal.h.

References freqDepPar().

virtual casacore::Bool casa::VisCal::freqDepPar ( )
inlinevirtual
virtual void casa::VisCal::initCalFlagCount ( )
virtual

Flag counting.

void casa::VisCal::initVisCal ( )
private

Initialize pointers, etc.

virtual casacore::Double& casa::VisCal::interval ( )
inlinevirtual

Return the time interval over which this calibration is constant.

Definition at line 149 of file VisCal.h.

References interval_.

virtual void casa::VisCal::invalidateCalMat ( )
protectedpure virtual

Invalidate cal matrices generically.

Implemented in casa::VisJones, casa::VisMueller, and casa::SingleDishSkyCal.

void casa::VisCal::invalidateP ( )
inlineprotected

Validation of calibration parameters.

Definition at line 273 of file VisCal.h.

References currSpw(), and PValid_.

casacore::Bool casa::VisCal::isApplied ( )
inline

Is this calibration matrix to be applied?

Definition at line 143 of file VisCal.h.

References applied_.

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

Is this solveable? (never via this interface)

Reimplemented in casa::SolvableVisCal, and casa::ANoise.

Definition at line 146 of file VisCal.h.

casacore::Double& casa::VisCal::lastTime ( )
inlineprotected

Current coords.

Definition at line 250 of file VisCal.h.

References currSpw(), and lastTime_.

virtual casacore::String casa::VisCal::longTypeName ( )
inlinevirtual
virtual VisCalEnum::MatrixType casa::VisCal::matrixType ( )
inlinevirtual

Return casacore::Matrix type.

Reimplemented in casa::VisJones, casa::VisMueller, and casa::SingleDishSkyCal.

Definition at line 105 of file VisCal.h.

References casa::VisCalEnum::GLOBAL.

const MSMetaInfoForCal& casa::VisCal::msmc ( ) const
inlineprotected

Access to the MSMetaInfoForCal (throws if none)

Definition at line 338 of file VisCal.h.

References msmc_.

casacore::String& casa::VisCal::msName ( void  )
inlineprotected

Definition at line 233 of file VisCal.h.

References msName_.

static casacore::String casa::VisCal::nameOfType ( Type  type)
inlinestatic

Definition at line 67 of file VisCal.h.

References A, B, C, D, E, F, J, K, M, P, T, and X.

casacore::Int& casa::VisCal::nAnt ( )
inlineprotected
casacore::Int& casa::VisCal::nBln ( )
inlineprotected
virtual casacore::Int casa::VisCal::nCalMat ( )
protectedpure virtual

Number of Calibration matrices on ant/bln axis.

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

casacore::Int& casa::VisCal::nChanMat ( )
inlineprotected

Definition at line 263 of file VisCal.h.

References currSpw_, and nChanMat_.

casacore::Vector<casacore::Int>& casa::VisCal::nChanMatList ( )
inlineprotected

Definition at line 266 of file VisCal.h.

References nChanMat_.

const casacore::Int& casa::VisCal::nChanPar ( ) const
inline

Number of par channels in current spw.

Definition at line 131 of file VisCal.h.

References currSpw_, and nChanPar_.

casacore::Int& casa::VisCal::nChanPar ( )
inlineprotected

Current spectral shapes.

Definition at line 262 of file VisCal.h.

References currSpw_, and nChanPar_.

casacore::Vector<casacore::Int>& casa::VisCal::nChanParList ( )
inlineprotected

Definition at line 265 of file VisCal.h.

References nChanPar_.

virtual casacore::Int& casa::VisCal::nElem ( )
protectedpure virtual

The number of sets of parameters under consideration.

Implemented in casa::VisJones, casa::VisMueller, and casa::SingleDishSkyCal.

virtual casacore::Int casa::VisCal::nPar ( )
pure virtual
casacore::Int& casa::VisCal::nSpw ( )
inlineprotected
virtual VisCalEnum::VCParType casa::VisCal::parType ( void  )
inlinevirtual

Return the parameter type (nominally complex)

Reimplemented in casa::PosAngJones, casa::SingleDishSkyCal, casa::FringeJones, casa::KJones, casa::LJJones, casa::EPJones, casa::StandardTsys, casa::EVLASwPow, casa::FJones, and casa::EGainCurve.

Definition at line 108 of file VisCal.h.

References casa::VisCalEnum::COMPLEX.

casacore::Int& casa::VisCal::prtlev ( )
inlineprotected

Return print (cout) level.

Definition at line 332 of file VisCal.h.

References prtlev_.

Referenced by setPrtlev().

casacore::Bool casa::VisCal::PValid ( )
inlineprotected

Definition at line 275 of file VisCal.h.

References currSpw(), and PValid_.

casacore::Double& casa::VisCal::refFreq ( )
inlineprotected

Definition at line 259 of file VisCal.h.

References refFreq_.

casacore::Double& casa::VisCal::refTime ( )
inlineprotected

Definition at line 258 of file VisCal.h.

References refTime_.

void casa::VisCal::setApplied ( const casacore::Bool flag)
inlineprotected

Set applied state flag.

Definition at line 231 of file VisCal.h.

References applied_.

virtual void casa::VisCal::setApply ( )
virtual

Set the application parameters.

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

virtual void casa::VisCal::setApply ( const casacore::Record apply)
virtual
virtual void casa::VisCal::setApplyParCurrSpw ( const casacore::Cube< casacore::Complex >  cpar,
bool  sync = false,
bool  doInv = false 
)
virtual

Set parameters to specified values in the currSpw(), and optionally sync matrices.

virtual void casa::VisCal::setApplyParCurrSpw ( const casacore::Cube< float >  rpar,
bool  sync = false,
bool  doInv = false 
)
virtual
void casa::VisCal::setCalChannelization ( const casacore::Int nChanDat)
protected

Set the calibration matrix channelization.

virtual void casa::VisCal::setCallib ( const casacore::Record callib,
const casacore::MeasurementSet selms 
)
virtual
void casa::VisCal::setCurrField ( const casacore::Int ifld)
protected

set current field index vector to given field id

virtual void casa::VisCal::setDefApplyParCurrSpw ( bool  sync = false,
bool  doInv = false 
)
virtual

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

virtual void casa::VisCal::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 can be registered

Reimplemented in casa::SolvableVisCal.

void casa::VisCal::setPrtlev ( const casacore::Int prtlev)
inline

Set the print level.

Definition at line 190 of file VisCal.h.

References prtlev(), and prtlev_.

virtual casacore::String casa::VisCal::siminfo ( )
inlinevirtual

simulation params - for a VC, sim is apply; for a SVC this will get overriden

Reimplemented in casa::SolvableVisCal.

Definition at line 161 of file VisCal.h.

References applyinfo().

virtual void casa::VisCal::sizeApplyParCurrSpw ( int  nVisChan)
virtual

Reshape solvePar* arrays for the currSpw() (sensitive to freqDepPar())

virtual casacore::Vector<casacore::Bool> casa::VisCal::spwOK ( )
inlinevirtual

Report calibration availability per spw (always true for non-tabular?)

Definition at line 116 of file VisCal.h.

References nSpw().

virtual casacore::Bool casa::VisCal::spwOK ( casacore::Int  )
inlinevirtual

Reimplemented in casa::SolvableVisCal.

Definition at line 117 of file VisCal.h.

casacore::Int& casa::VisCal::startChan ( )
inlineprotected

Definition at line 264 of file VisCal.h.

References currSpw_, and startChan_.

casacore::Vector<casacore::Int>& casa::VisCal::startChanList ( )
inlineprotected

Definition at line 267 of file VisCal.h.

References startChan_.

virtual void casa::VisCal::state ( )
virtual
virtual void casa::VisCal::syncCal ( const VisBuffer vb,
const casacore::Bool doInv = false 
)
protectedvirtual

Synchronize "gains" with a VisBuffer or another VisCal.

virtual void casa::VisCal::syncCal ( VisCal vc)
protectedvirtual
virtual void casa::VisCal::syncCal ( const casacore::Bool doInv = false)
protectedvirtual

Synchronize "gains" with current meta-data.

virtual void casa::VisCal::syncCal2 ( const vi::VisBuffer2 vb,
const casacore::Bool doInv = false 
)
protectedvirtual
virtual void casa::VisCal::syncCalMat ( const casacore::Bool doInv = false)
protectedpure virtual

Sync matrices generically for current meta data.

Implemented in casa::VisJones, casa::VisMueller, and casa::SingleDishSkyCal.

virtual void casa::VisCal::syncMeta ( const VisBuffer vb)
protectedvirtual

Set internal meta data from a VisBuffer or another VisCal.

Reimplemented in casa::PosAngJones, casa::KAntPosJones, casa::EGainCurve, casa::FJones, and casa::PJones.

void casa::VisCal::syncMeta ( VisCal vc)
protected
void casa::VisCal::syncMeta ( const casacore::Int spw,
const casacore::Double time,
const casacore::Int field,
const casacore::Vector< casacore::Double > &  freq,
const casacore::Int nchan 
)
protected
virtual void casa::VisCal::syncMeta2 ( const vi::VisBuffer2 vb)
protectedvirtual
virtual void casa::VisCal::syncPar ( )
protectedvirtual

Sync parameters for current meta data.

virtual casacore::Bool casa::VisCal::timeDepMat ( )
inlinevirtual

Matrices time-dependent per parameter set (nominally no)

Reimplemented in casa::KAntPosJones, casa::ANoise, and casa::FringeJones.

Definition at line 140 of file VisCal.h.

virtual Type casa::VisCal::type ( )
pure virtual
virtual casacore::String casa::VisCal::typeName ( )
inlinevirtual
VisVector& casa::VisCal::V ( )
inlineprotected

Access to matrix renderings of Visibilities.

Definition at line 270 of file VisCal.h.

References currSpw(), and V_.

void casa::VisCal::validateP ( )
inlineprotected

Definition at line 274 of file VisCal.h.

References currSpw(), and PValid_.

virtual casacore::Bool casa::VisCal::VBOKforCalApply ( vi::VisBuffer2 )
inlinevirtual

Calibration expected AND available? (always assume true for non-tabular)

Reimplemented in casa::SolvableVisCal.

Definition at line 125 of file VisCal.h.

Friends And Related Function Documentation

friend class SolvableVisJones
friend

Definition at line 55 of file VisCal.h.

Member Data Documentation

casacore::Bool casa::VisCal::applied_
private

Application flag.

Definition at line 393 of file VisCal.h.

Referenced by isApplied(), and setApplied().

casacore::Bool casa::VisCal::calWt_
private

Trigger calibration of weights.

Definition at line 410 of file VisCal.h.

Referenced by calWt().

casacore::PtrBlock<casacore::Cube<casacore::Complex>*> casa::VisCal::currCPar_
private

Current parameters.

Definition at line 402 of file VisCal.h.

Referenced by currCPar().

casacore::Vector<casacore::Int> casa::VisCal::currField_
private

Definition at line 378 of file VisCal.h.

Referenced by currField().

casacore::Vector<casacore::Double> casa::VisCal::currFreq_
private

Definition at line 380 of file VisCal.h.

Referenced by currFreq().

casacore::Vector<casacore::Int> casa::VisCal::currIntent_
private

Definition at line 379 of file VisCal.h.

Referenced by currIntent().

casacore::Vector<casacore::Int> casa::VisCal::currObs_
private

Definition at line 377 of file VisCal.h.

Referenced by currObs().

casacore::PtrBlock<casacore::Cube<casacore::Bool>*> casa::VisCal::currParOK_
private

Definition at line 404 of file VisCal.h.

Referenced by currParOK().

casacore::PtrBlock<casacore::Cube<casacore::Float>*> casa::VisCal::currRPar_
private

Definition at line 403 of file VisCal.h.

Referenced by currRPar().

casacore::Vector<casacore::Int> casa::VisCal::currScan_
private

Definition at line 376 of file VisCal.h.

Referenced by currScan().

casacore::Int casa::VisCal::currSpw_
private

Current synchronized spw.

Definition at line 372 of file VisCal.h.

Referenced by currSpw(), nChanMat(), nChanPar(), and startChan().

casacore::Vector<casacore::Double> casa::VisCal::currTime_
private

Current indices.

Definition at line 375 of file VisCal.h.

Referenced by currTime().

casacore::PtrBlock<casacore::Cube<casacore::Float>*> casa::VisCal::currWtScale_
private

Weight scale factors.

Definition at line 413 of file VisCal.h.

Referenced by currWtScale().

const bool casa::VisCal::delmsmc_
private

Definition at line 360 of file VisCal.h.

casacore::String casa::VisCal::extratag_
private

Definition at line 421 of file VisCal.h.

Referenced by extraTag().

casacore::Int casa::VisCal::focusChan_
private

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

Definition at line 396 of file VisCal.h.

casacore::Double casa::VisCal::interval_
private

Solution timescale (context-dependent)

Definition at line 390 of file VisCal.h.

Referenced by interval().

casacore::Vector<casacore::Double> casa::VisCal::lastTime_
private

Definition at line 381 of file VisCal.h.

Referenced by lastTime().

const MSMetaInfoForCal* casa::VisCal::msmc_
private

The MSMetaInfoForCal pointer.

Definition at line 359 of file VisCal.h.

Referenced by msmc().

casacore::String casa::VisCal::msName_
private

Associated casacore::MS name.

Definition at line 356 of file VisCal.h.

Referenced by msName().

casacore::Int casa::VisCal::nAnt_
private

Number of antennas.

Definition at line 366 of file VisCal.h.

Referenced by nAnt().

casacore::Int casa::VisCal::nBln_
private

Number of baselines.

Definition at line 369 of file VisCal.h.

Referenced by nBln().

casacore::Vector<casacore::Int> casa::VisCal::nChanMat_
private

Definition at line 386 of file VisCal.h.

Referenced by nChanMat(), and nChanMatList().

casacore::Vector<casacore::Int> casa::VisCal::nChanPar_
private

Channel counts.

Definition at line 386 of file VisCal.h.

Referenced by nChanPar(), and nChanParList().

casacore::Int64 casa::VisCal::ndataIn_
private

Flag counting.

Definition at line 416 of file VisCal.h.

casacore::Int64 casa::VisCal::nflagIn_
private

Definition at line 416 of file VisCal.h.

casacore::Int64 casa::VisCal::nflagOut_
private

Definition at line 416 of file VisCal.h.

casacore::Int casa::VisCal::nSpw_
private

Number of Spectral windows.

Definition at line 363 of file VisCal.h.

Referenced by nSpw().

casacore::Int casa::VisCal::prtlev_
private

Print level.

Definition at line 419 of file VisCal.h.

Referenced by prtlev(), and setPrtlev().

casacore::Vector<casacore::Bool> casa::VisCal::PValid_
private

Paremeter validity.

Definition at line 407 of file VisCal.h.

Referenced by invalidateP(), PValid(), and validateP().

casacore::Double casa::VisCal::refFreq_
private

Definition at line 383 of file VisCal.h.

Referenced by refFreq().

casacore::Double casa::VisCal::refTime_
private

Definition at line 382 of file VisCal.h.

Referenced by refTime().

casacore::Vector<casacore::Int> casa::VisCal::startChan_
private

Definition at line 387 of file VisCal.h.

Referenced by startChan(), and startChanList().

casacore::PtrBlock<VisVector*> casa::VisCal::V_
private

VisVector wrapper (per Spw)

Definition at line 399 of file VisCal.h.

Referenced by V().


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