casa::VisEquation Class Reference

#include <VisEquation.h>

List of all members.

Public Member Functions

 VisEquation ()
 Contructor.
 VisEquation (const VisEquation &other)
 Copy ctor.
virtual ~VisEquation ()
 Destructor.
VisEquationoperator= (const VisEquation &other)
 Assignment.
void setapply (PtrBlock< VisCal * > &vcin)
 Arrange for apply of a VisCal list (i.e., sort them into the correct order).
void setsolve (SolvableVisCal &svc)
 Arrange for solve of a single SolvableVisCal.
void setPivot (VisCal::Type pivot)
 Arrange a pivot point for evaluating the equation in collapseForSim.
VisCal::Type pivot () const
 Where is the pivot?
void setModel (const Vector< Float > &stokes)
 Arrange the model to use for calibration.
void unSetModel ()
Int nTerms () const
 How many terms are arranged for apply?
Vector< VisCal::TypelistTypes () const
 List the terms.
Bool spwOK (const Int &spw)
 Report if spw has solutions available from all applied tables.
void correct (VisBuffer &vb, Bool trial=False)
 Correct in place the OBSERVED visibilities in a VisBuffer with the apply-able VisCals.
void correct2 (vi::VisBuffer2 &vb, Bool trial=False, Bool doWtSp=False)
Record actionRec ()
 Report flag-by-cal statistics.
void corrupt (VisBuffer &vb)
 Corrupt in place the MODEL visibilities in a VisBuffer with the apply-able VisCals.
void collapse (VisBuffer &vb)
 Correct/Corrupt in place the OBSERVED/MODEL visibilities in a VisBuffer with the apply-able VisCals on either side of the SolvableVisCal.
void collapse2 (vi::VisBuffer2 &vb)
void collapseForSim (VisBuffer &vb)
 This collapse avoids I/O (assumes the vb data/model are ready), and uses a generic pivot (see setPivot) rather than the svc void collapseForSim(VisBuffer& vb);.
void residuals (VisBuffer &vb, Cube< Complex > &R, const Int chan=-1)
 Calculate residuals (optionally for specific chan).
void diffResiduals (CalVisBuffer &cvb)
 Calculate residuals and differentiated residuals (optionally for specific chan).
void diffResiduals (VisBuffer &vb, Cube< Complex > &R, Array< Complex > &dR, Matrix< Bool > &Rflg)
void diffResiduals (VisBuffer &R, VisBuffer &dR0, VisBuffer &dR1, Matrix< Bool > &Rflg)
void differentiate (SolveDataBuffer &sdb)
 SolveDataBuffer version.
void state ()
 Report the VisEq's state.
void setPrtlev (const Int &prtlev)
 Set the print level.

Protected Member Functions

Bool ok ()
PtrBlock< VisCal * > & vc ()
 Access to the PB of apply terms.
SolvableVisCalsvc ()
 Access to SVC.
void setFreqDep ()
 Detect freq dependence along the Vis Equation.
void divideCorrByModel (vi::VisBuffer2 &vb)
 Divide corr data by model.

Private Member Functions

Int & prtlev ()
 Diagnostic print level access.

Private Attributes

PtrBlock< VisCal * > * vcpb_
 A local copy of the list of VisCal (pointers) for applying (No ownership responsibilities).
Int napp_
 Number of apply VisCals in vc_.
Int lfd_
 Frequency dependence indices.
Int rfd_
Bool freqAveOK_
 Trap for frequency averaging in collapse.
SolvableVisCalsvc_
 VisCal with solving interface (No ownership responsibilities).
VisCal::Type pivot_
 The pivot point used by collapse2.
Bool useInternalModel_
 An internal (global) point source model.
Vector< Float > stokesModel_
Int prtlev_
 Diagnostic print level.

Detailed Description

Definition at line 92 of file VisEquation.h.


Constructor & Destructor Documentation

casa::VisEquation::VisEquation (  ) 

Contructor.

casa::VisEquation::VisEquation ( const VisEquation other  ) 

Copy ctor.

virtual casa::VisEquation::~VisEquation (  )  [virtual]

Destructor.


Member Function Documentation

Record casa::VisEquation::actionRec (  ) 

Report flag-by-cal statistics.

void casa::VisEquation::collapse ( VisBuffer vb  ) 

Correct/Corrupt in place the OBSERVED/MODEL visibilities in a VisBuffer with the apply-able VisCals on either side of the SolvableVisCal.

void casa::VisEquation::collapse2 ( vi::VisBuffer2 vb  ) 
void casa::VisEquation::collapseForSim ( VisBuffer vb  ) 

This collapse avoids I/O (assumes the vb data/model are ready), and uses a generic pivot (see setPivot) rather than the svc void collapseForSim(VisBuffer& vb);.

void casa::VisEquation::correct ( VisBuffer vb,
Bool  trial = False 
)

Correct in place the OBSERVED visibilities in a VisBuffer with the apply-able VisCals.

void casa::VisEquation::correct2 ( vi::VisBuffer2 vb,
Bool  trial = False,
Bool  doWtSp = False 
)
void casa::VisEquation::corrupt ( VisBuffer vb  ) 

Corrupt in place the MODEL visibilities in a VisBuffer with the apply-able VisCals.

void casa::VisEquation::differentiate ( SolveDataBuffer sdb  ) 

SolveDataBuffer version.

void casa::VisEquation::diffResiduals ( VisBuffer R,
VisBuffer dR0,
VisBuffer dR1,
Matrix< Bool > &  Rflg 
)
void casa::VisEquation::diffResiduals ( VisBuffer vb,
Cube< Complex > &  R,
Array< Complex > &  dR,
Matrix< Bool > &  Rflg 
)
void casa::VisEquation::diffResiduals ( CalVisBuffer cvb  ) 

Calculate residuals and differentiated residuals (optionally for specific chan).

void casa::VisEquation::divideCorrByModel ( vi::VisBuffer2 vb  )  [protected]

Divide corr data by model.

Vector<VisCal::Type> casa::VisEquation::listTypes (  )  const

List the terms.

Int casa::VisEquation::nTerms (  )  const [inline]

How many terms are arranged for apply?

Definition at line 124 of file VisEquation.h.

References napp_.

Bool casa::VisEquation::ok (  )  [protected]
VisEquation& casa::VisEquation::operator= ( const VisEquation other  ) 

Assignment.

VisCal::Type casa::VisEquation::pivot (  )  const [inline]

Where is the pivot?

Definition at line 117 of file VisEquation.h.

References pivot_.

Int& casa::VisEquation::prtlev (  )  [inline, private]

Diagnostic print level access.

Definition at line 202 of file VisEquation.h.

void casa::VisEquation::residuals ( VisBuffer vb,
Cube< Complex > &  R,
const Int  chan = -1 
)

Calculate residuals (optionally for specific chan).

void casa::VisEquation::setapply ( PtrBlock< VisCal * > &  vcin  ) 

Arrange for apply of a VisCal list (i.e., sort them into the correct order).

void casa::VisEquation::setFreqDep (  )  [protected]

Detect freq dependence along the Vis Equation.

void casa::VisEquation::setModel ( const Vector< Float > &  stokes  ) 

Arrange the model to use for calibration.

void casa::VisEquation::setPivot ( VisCal::Type  pivot  ) 

Arrange a pivot point for evaluating the equation in collapseForSim.

void casa::VisEquation::setPrtlev ( const Int &  prtlev  )  [inline]

Set the print level.

Definition at line 180 of file VisEquation.h.

References prtlev_.

void casa::VisEquation::setsolve ( SolvableVisCal svc  ) 

Arrange for solve of a single SolvableVisCal.

Bool casa::VisEquation::spwOK ( const Int &  spw  ) 

Report if spw has solutions available from all applied tables.

void casa::VisEquation::state (  ) 

Report the VisEq's state.

SolvableVisCal& casa::VisEquation::svc (  )  [inline, protected]

Access to SVC.

Definition at line 190 of file VisEquation.h.

References svc_.

void casa::VisEquation::unSetModel (  )  [inline]

Definition at line 121 of file VisEquation.h.

References casacore::False, and useInternalModel_.

PtrBlock<VisCal*>& casa::VisEquation::vc (  )  [inline, protected]

Access to the PB of apply terms.

Definition at line 187 of file VisEquation.h.

References vcpb_.


Member Data Documentation

Trap for frequency averaging in collapse.

Definition at line 216 of file VisEquation.h.

Int casa::VisEquation::lfd_ [private]

Frequency dependence indices.

Definition at line 212 of file VisEquation.h.

Int casa::VisEquation::napp_ [private]

Number of apply VisCals in vc_.

Definition at line 209 of file VisEquation.h.

Referenced by nTerms().

The pivot point used by collapse2.

Definition at line 223 of file VisEquation.h.

Referenced by pivot().

Diagnostic print level.

Definition at line 230 of file VisEquation.h.

Referenced by setPrtlev().

Int casa::VisEquation::rfd_ [private]

Definition at line 213 of file VisEquation.h.

Vector<Float> casa::VisEquation::stokesModel_ [private]

Definition at line 227 of file VisEquation.h.

VisCal with solving interface (No ownership responsibilities).

Definition at line 220 of file VisEquation.h.

Referenced by svc().

An internal (global) point source model.

Definition at line 226 of file VisEquation.h.

Referenced by unSetModel().

PtrBlock<VisCal*>* casa::VisEquation::vcpb_ [private]

A local copy of the list of VisCal (pointers) for applying (No ownership responsibilities).

Definition at line 202 of file VisEquation.h.

Referenced by vc().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1