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 Member Functions | Private Attributes | List of all members
casa::VisEquation Class Reference

#include <VisEquation.h>

Public Member Functions

 VisEquation ()
 Contructor. More...
 
 VisEquation (const VisEquation &other)
 Copy ctor. More...
 
virtual ~VisEquation ()
 Destructor. More...
 
VisEquationoperator= (const VisEquation &other)
 Assignment. More...
 
void setapply (casacore::PtrBlock< VisCal * > &vcin)
 Arrange for apply of a VisCal list (i.e., sort them into the correct order) More...
 
void setsolve (SolvableVisCal &svc)
 Arrange for solve of a single SolvableVisCal. More...
 
void setPivot (VisCal::Type pivot)
 Arrange a pivot point for evaluating the equation in collapseForSim. More...
 
VisCal::Type pivot () const
 Where is the pivot? More...
 
void setModel (const casacore::Vector< casacore::Float > &stokes)
 Arrange the model to use for calibration. More...
 
void unSetModel ()
 
casacore::Int nTerms () const
 How many terms are arranged for apply? More...
 
casacore::Vector< VisCal::TypelistTypes () const
 casacore::List the terms More...
 
casacore::Bool spwOK (const casacore::Int &spw)
 Report if spw has solutions available from all applied tables To be deprecated in favor of VBOKforCalApply. More...
 
casacore::Bool VBOKforCalApply (vi::VisBuffer2 &vb)
 Report if VB can be calibrated by all supplied calibration. More...
 
void correct (VisBuffer &vb, casacore::Bool trial=false)
 Correct in place the OBSERVED visibilities in a VisBuffer with the apply-able VisCals. More...
 
void correct2 (vi::VisBuffer2 &vb, casacore::Bool trial=false, casacore::Bool doWtSp=false)
 
casacore::Record actionRec ()
 Report flag-by-cal statistics. More...
 
void corrupt (VisBuffer &vb)
 Corrupt in place the MODEL visibilities in a VisBuffer with the apply-able VisCals. More...
 
void corrupt2 (vi::VisBuffer2 &vb)
 
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. More...
 
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);. More...
 
void residuals (VisBuffer &vb, casacore::Cube< casacore::Complex > &R, const casacore::Int chan=-1)
 Calculate residuals (optionally for specific chan) More...
 
void diffResiduals (CalVisBuffer &cvb)
 Calculate residuals and differentiated residuals (optionally for specific chan) More...
 
void diffResiduals (VisBuffer &vb, casacore::Cube< casacore::Complex > &R, casacore::Array< casacore::Complex > &dR, casacore::Matrix< casacore::Bool > &Rflg)
 
void diffResiduals (VisBuffer &R, VisBuffer &dR0, VisBuffer &dR1, casacore::Matrix< casacore::Bool > &Rflg)
 
void differentiate (SolveDataBuffer &sdb)
 SolveDataBuffer version. More...
 
void diffModelStokes (vi::VisBuffer2 &vb, std::map< casacore::String, casacore::Cube< casacore::Complex > > dMdS)
 Differentiate w.r.t. More...
 
void state ()
 Report the VisEq's state. More...
 
void setPrtlev (const casacore::Int &prtlev)
 Set the print level. More...
 

Protected Member Functions

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

Private Member Functions

casacore::Intprtlev ()
 Diagnostic print level access. More...
 

Private Attributes

casacore::PtrBlock< VisCal * > * vcpb_
 A local copy of the list of VisCal (pointers) for applying (No ownership responsibilities) More...
 
casacore::Int napp_
 Number of apply VisCals in vc_. More...
 
casacore::Int lfd_
 Frequency dependence indices. More...
 
casacore::Int rfd_
 
casacore::Bool freqAveOK_
 Trap for frequency averaging in collapse. More...
 
SolvableVisCalsvc_
 VisCal with solving interface (No ownership responsibilities) More...
 
VisCal::Type pivot_
 The pivot point used by collapse2. More...
 
casacore::Bool useInternalModel_
 An internal (global) point source model. More...
 
casacore::Vector< casacore::FloatstokesModel_
 
casacore::Int nVisTotal_
 Keep count of total visibilities processed NB: this is Sum-over-spws(ncorr*nchan*nrow) More...
 
casacore::Int prtlev_
 Diagnostic print level. More...
 

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

casacore::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,
casacore::Bool  trial = false 
)

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

void casa::VisEquation::correct2 ( vi::VisBuffer2 vb,
casacore::Bool  trial = false,
casacore::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::corrupt2 ( vi::VisBuffer2 vb)
void casa::VisEquation::differentiate ( SolveDataBuffer sdb)

SolveDataBuffer version.

void casa::VisEquation::diffModelStokes ( vi::VisBuffer2 vb,
std::map< casacore::String, casacore::Cube< casacore::Complex > >  dMdS 
)

Differentiate w.r.t.

MODEL Stokes Params I.e., corrupt dM/d(I,Q,U,V) NB: results stored in the sdb

void casa::VisEquation::diffResiduals ( CalVisBuffer cvb)

Calculate residuals and differentiated residuals (optionally for specific chan)

void casa::VisEquation::diffResiduals ( VisBuffer vb,
casacore::Cube< casacore::Complex > &  R,
casacore::Array< casacore::Complex > &  dR,
casacore::Matrix< casacore::Bool > &  Rflg 
)
void casa::VisEquation::diffResiduals ( VisBuffer R,
VisBuffer dR0,
VisBuffer dR1,
casacore::Matrix< casacore::Bool > &  Rflg 
)
void casa::VisEquation::divideByStokesIModel ( vi::VisBuffer2 vb)
protected

Divide corr data by Stokes I model.

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

Divide corr data by model (per correlation)

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

casacore::List the terms

casacore::Int casa::VisEquation::nTerms ( ) const
inline

How many terms are arranged for apply?

Definition at line 124 of file VisEquation.h.

References napp_.

casacore::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_.

casacore::Int& casa::VisEquation::prtlev ( )
inlineprivate

Diagnostic print level access.

Definition at line 219 of file VisEquation.h.

Referenced by setPrtlev().

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

Calculate residuals (optionally for specific chan)

void casa::VisEquation::setapply ( casacore::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 casacore::Vector< casacore::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 casacore::Int prtlev)
inline

Set the print level.

Definition at line 194 of file VisEquation.h.

References prtlev(), and prtlev_.

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

Arrange for solve of a single SolvableVisCal.

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

Report if spw has solutions available from all applied tables To be deprecated in favor of VBOKforCalApply.

void casa::VisEquation::state ( )

Report the VisEq's state.

SolvableVisCal& casa::VisEquation::svc ( )
inlineprotected

Access to SVC.

Definition at line 204 of file VisEquation.h.

References svc_.

void casa::VisEquation::unSetModel ( )
inline

Definition at line 121 of file VisEquation.h.

References useInternalModel_.

casacore::Bool casa::VisEquation::VBOKforCalApply ( vi::VisBuffer2 vb)

Report if VB can be calibrated by all supplied calibration.

If not, we can't ask it to! Modern replacement for spwOK(spw) which is sensitive to obs, fld, and intent, and which supports per-caltable agnosticism (see SVC::VBOKforCalApply)

casacore::PtrBlock<VisCal*>& casa::VisEquation::vc ( )
inlineprotected

Access to the PB of apply terms.

Definition at line 201 of file VisEquation.h.

References vcpb_.

Member Data Documentation

casacore::Bool casa::VisEquation::freqAveOK_
private

Trap for frequency averaging in collapse.

Definition at line 233 of file VisEquation.h.

casacore::Int casa::VisEquation::lfd_
private

Frequency dependence indices.

Definition at line 229 of file VisEquation.h.

casacore::Int casa::VisEquation::napp_
private

Number of apply VisCals in vc_.

Definition at line 226 of file VisEquation.h.

Referenced by nTerms().

casacore::Int casa::VisEquation::nVisTotal_
private

Keep count of total visibilities processed NB: this is Sum-over-spws(ncorr*nchan*nrow)

Definition at line 248 of file VisEquation.h.

VisCal::Type casa::VisEquation::pivot_
private

The pivot point used by collapse2.

Definition at line 240 of file VisEquation.h.

Referenced by pivot().

casacore::Int casa::VisEquation::prtlev_
private

Diagnostic print level.

Definition at line 251 of file VisEquation.h.

Referenced by setPrtlev().

casacore::Int casa::VisEquation::rfd_
private

Definition at line 230 of file VisEquation.h.

casacore::Vector<casacore::Float> casa::VisEquation::stokesModel_
private

Definition at line 244 of file VisEquation.h.

SolvableVisCal* casa::VisEquation::svc_
private

VisCal with solving interface (No ownership responsibilities)

Definition at line 237 of file VisEquation.h.

Referenced by svc().

casacore::Bool casa::VisEquation::useInternalModel_
private

An internal (global) point source model.

Definition at line 243 of file VisEquation.h.

Referenced by unSetModel().

casacore::PtrBlock<VisCal*>* casa::VisEquation::vcpb_
private

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

Definition at line 219 of file VisEquation.h.

Referenced by vc().


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