casa
$Rev:20696$
|
Visibility Measurement Equation. More...
#include <VisEquation.h>
Public Member Functions | |
VisEquation () | |
Contructor. | |
VisEquation (const VisEquation &other) | |
Copy ctor. | |
virtual | ~VisEquation () |
Destructor. | |
VisEquation & | operator= (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. | |
SolvableVisCal & | svc () |
Access to SVC. | |
void | setFreqDep () |
Detect freq dependence along the Vis Equation. | |
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. | |
SolvableVisCal * | svc_ |
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. |
Visibility Measurement Equation.
Public interface
Visibility Equation describes a model for measurements from a generic synthesis telescope
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:
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.
Contructor.
casa::VisEquation::VisEquation | ( | const VisEquation & | other | ) |
Copy ctor.
virtual casa::VisEquation::~VisEquation | ( | ) | [virtual] |
Destructor.
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::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::corrupt | ( | VisBuffer & | vb | ) |
Corrupt in place the MODEL visibilities in a VisBuffer with the apply-able VisCals.
void casa::VisEquation::diffResiduals | ( | CalVisBuffer & | cvb | ) |
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)
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 166 of file VisEquation.h.
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] |
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] |
Bool casa::VisEquation::freqAveOK_ [private] |
Trap for frequency averaging in collapse.
Definition at line 198 of file VisEquation.h.
Int casa::VisEquation::lfd_ [private] |
Frequency dependence indices.
Definition at line 194 of file VisEquation.h.
Int casa::VisEquation::napp_ [private] |
Number of apply VisCals in vc_.
Definition at line 191 of file VisEquation.h.
VisCal::Type casa::VisEquation::pivot_ [private] |
The pivot point used by collapse2.
Definition at line 205 of file VisEquation.h.
Referenced by pivot().
Int casa::VisEquation::prtlev_ [private] |
Int casa::VisEquation::rfd_ [private] |
Definition at line 195 of file VisEquation.h.
Vector<Float> casa::VisEquation::stokesModel_ [private] |
Definition at line 209 of file VisEquation.h.
SolvableVisCal* casa::VisEquation::svc_ [private] |
VisCal with solving interface (No ownership responsibilities)
Definition at line 202 of file VisEquation.h.
Referenced by svc().
Bool casa::VisEquation::useInternalModel_ [private] |
An internal (global) point source model.
Definition at line 208 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 184 of file VisEquation.h.
Referenced by vc().