casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
casa::VisEquation Class Reference

Visibility Measurement Equation. More...

#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.
void setModel (const Vector< Float > &stokes)
 Arrange the model to use for calibration.
void unSetModel ()
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.
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 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 state ()
 Report the VisEq's state.
const VisCal::Type pivot () const
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.

Private Member Functions

Intprtlev ()
 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< FloatstokesModel_
Int prtlev_
 Diagnostic print level.

Detailed Description

Visibility Measurement Equation.

Intended use:

Public interface

Prerequisite

Etymology

Visibility Equation describes a model for measurements from a generic synthesis telescope

Synopsis

This is responsible for the Measurement Equation of the Generic Interferometer due to Hamaker, Bregman and Sault and later extended by Noordam, and Cornwell.

See MeasurementEquations for more details of the form of the VisEquation.

VisEquation provides the following:

Example

Motivation

VisEquation is part of a framework of classes that are designed for synthesis calibration and imaging. The others are the MeasurementComponents .

Definition at line 89 of file VisEquation.h.


Constructor & Destructor Documentation

Contructor.

Copy ctor.

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

Destructor.


Member Function Documentation

Report flag-by-cal statistics.

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

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.

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

Calculate residuals and differentiated residuals (optionally for specific chan)

void casa::VisEquation::diffResiduals ( VisBuffer vb,
Cube< Complex > &  R,
Array< Complex > &  dR,
Matrix< Bool > &  Rflg 
)
void casa::VisEquation::diffResiduals ( VisBuffer R,
VisBuffer dR0,
VisBuffer dR1,
Matrix< Bool > &  Rflg 
)
Bool casa::VisEquation::ok ( ) [protected]
VisEquation& casa::VisEquation::operator= ( const VisEquation other)

Assignment.

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

Definition at line 163 of file VisEquation.h.

References pivot_.

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

Diagnostic print level access.

Definition at line 184 of file VisEquation.h.

Referenced by setPrtlev().

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

Calculate residuals (optionally for specific chan)

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.

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 166 of file VisEquation.h.

References prtlev(), and prtlev_.

Arrange for solve of a single SolvableVisCal.

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

Report if spw has solutions available from all applied tables.

Report the VisEq's state.

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

Access to SVC.

Definition at line 176 of file VisEquation.h.

References svc_.

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

Definition at line 115 of file VisEquation.h.

References casa::False, and useInternalModel_.

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

Access to the PB of apply terms.

Definition at line 173 of file VisEquation.h.

References vcpb_.


Member Data Documentation

Trap for frequency averaging in collapse.

Definition at line 198 of file VisEquation.h.

Frequency dependence indices.

Definition at line 194 of file VisEquation.h.

Number of apply VisCals in vc_.

Definition at line 191 of file VisEquation.h.

The pivot point used by collapse2.

Definition at line 205 of file VisEquation.h.

Referenced by pivot().

Diagnostic print level.

Definition at line 212 of file VisEquation.h.

Referenced by setPrtlev().

Definition at line 195 of file VisEquation.h.

Definition at line 209 of file VisEquation.h.

VisCal with solving interface (No ownership responsibilities)

Definition at line 202 of file VisEquation.h.

Referenced by svc().

An internal (global) point source model.

Definition at line 208 of file VisEquation.h.

Referenced by unSetModel().

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

Definition at line 184 of file VisEquation.h.

Referenced by vc().


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