casa
5.7.0-16
|
#include <VisEquation.h>
Public Member Functions | |
VisEquation () | |
Contructor. More... | |
VisEquation (const VisEquation &other) | |
Copy ctor. More... | |
virtual | ~VisEquation () |
Destructor. More... | |
VisEquation & | operator= (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::Type > | listTypes () 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... | |
SolvableVisCal & | svc () |
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::Int & | prtlev () |
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... | |
SolvableVisCal * | svc_ |
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::Float > | stokesModel_ |
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... | |
Definition at line 92 of file VisEquation.h.
casa::VisEquation::VisEquation | ( | ) |
Contructor.
casa::VisEquation::VisEquation | ( | const VisEquation & | other | ) |
Copy ctor.
|
virtual |
Destructor.
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 | ||
) |
|
protected |
Divide corr data by Stokes I model.
|
protected |
Divide corr data by model (per correlation)
casacore::Vector<VisCal::Type> casa::VisEquation::listTypes | ( | ) | const |
casacore::List the terms
|
inline |
How many terms are arranged for apply?
Definition at line 124 of file VisEquation.h.
References napp_.
|
protected |
VisEquation& casa::VisEquation::operator= | ( | const VisEquation & | other | ) |
Assignment.
|
inline |
|
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)
|
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.
|
inline |
Set the print level.
Definition at line 194 of file VisEquation.h.
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.
|
inlineprotected |
|
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)
|
inlineprotected |
|
private |
Trap for frequency averaging in collapse.
Definition at line 233 of file VisEquation.h.
|
private |
Frequency dependence indices.
Definition at line 229 of file VisEquation.h.
|
private |
Number of apply VisCals in vc_.
Definition at line 226 of file VisEquation.h.
Referenced by nTerms().
|
private |
Keep count of total visibilities processed NB: this is Sum-over-spws(ncorr*nchan*nrow)
Definition at line 248 of file VisEquation.h.
|
private |
The pivot point used by collapse2.
Definition at line 240 of file VisEquation.h.
Referenced by pivot().
|
private |
|
private |
Definition at line 230 of file VisEquation.h.
|
private |
Definition at line 244 of file VisEquation.h.
|
private |
VisCal with solving interface (No ownership responsibilities)
Definition at line 237 of file VisEquation.h.
Referenced by svc().
|
private |
An internal (global) point source model.
Definition at line 243 of file VisEquation.h.
Referenced by unSetModel().
|
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().