28 #ifndef SYNTHESIS_VISEQUATION_H
29 #define SYNTHESIS_VISEQUATION_H
90 class SolveDataBuffer;
void state()
Report the VisEq's state.
casacore::Record actionRec()
Report flag-by-cal statistics.
void setapply(casacore::PtrBlock< VisCal * > &vcin)
Arrange for apply of a VisCal list (i.e., sort them into the correct order)
void collapseForSim(VisBuffer &vb)
This collapse avoids I/O (assumes the vb data/model are ready), and uses a generic pivot (see setPivo...
casacore::PtrBlock< VisCal * > & vc()
Access to the PB of apply terms.
void setPivot(VisCal::Type pivot)
Arrange a pivot point for evaluating the equation in collapseForSim.
void corrupt2(vi::VisBuffer2 &vb)
casacore::Bool VBOKforCalApply(vi::VisBuffer2 &vb)
Report if VB can be calibrated by all supplied calibration.
void setPrtlev(const casacore::Int &prtlev)
Set the print level.
casacore::Int nVisTotal_
Keep count of total visibilities processed NB: this is Sum-over-spws(ncorr*nchan*nrow) ...
CalVisBuffer extends VisBuffer to support storage and recall of associated residual and differentiate...
void correct2(vi::VisBuffer2 &vb, casacore::Bool trial=false, casacore::Bool doWtSp=false)
void collapse(VisBuffer &vb)
Correct/Corrupt in place the OBSERVED/MODEL visibilities in a VisBuffer with the apply-able VisCals o...
casacore::Bool freqAveOK_
Trap for frequency averaging in collapse.
void diffResiduals(CalVisBuffer &cvb)
Calculate residuals and differentiated residuals (optionally for specific chan)
void differentiate(SolveDataBuffer &sdb)
SolveDataBuffer version.
void divideCorrByModel(vi::VisBuffer2 &vb)
Divide corr data by model (per correlation)
casacore::Vector< casacore::Float > stokesModel_
casacore::Int prtlev_
Diagnostic print level.
casacore::Int nTerms() const
How many terms are arranged for apply?
void setsolve(SolvableVisCal &svc)
Arrange for solve of a single SolvableVisCal.
casacore::Bool spwOK(const casacore::Int &spw)
Report if spw has solutions available from all applied tables To be deprecated in favor of VBOKforCal...
casacore::Vector< VisCal::Type > listTypes() const
casacore::List the terms
void diffModelStokes(vi::VisBuffer2 &vb, std::map< casacore::String, casacore::Cube< casacore::Complex > > dMdS)
Differentiate w.r.t.
SolveDataBuffer is a container for VisBuffer2 data and related residual and differentiation results r...
VisCal::Type pivot_
The pivot point used by collapse2.
casacore::Bool useInternalModel_
An internal (global) point source model.
void divideByStokesIModel(vi::VisBuffer2 &vb)
Divide corr data by Stokes I model.
Type
Allowed types of VisCal matrices - 'correct' order enum Type{UVMOD,Mf,M,K,B,G,D,C,E,P,T,EP,F}; enum Type{Test=0,ANoise,M,KAntPos,K,B,G,J,D,X,C,P,E,T,F,A,ALL};.
void collapse2(vi::VisBuffer2 &vb)
void setModel(const casacore::Vector< casacore::Float > &stokes)
Arrange the model to use for calibration.
void correct(VisBuffer &vb, casacore::Bool trial=false)
Correct in place the OBSERVED visibilities in a VisBuffer with the apply-able VisCals.
VisEquation & operator=(const VisEquation &other)
Assignment.
void corrupt(VisBuffer &vb)
Corrupt in place the MODEL visibilities in a VisBuffer with the apply-able VisCals.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
casacore::Int lfd_
Frequency dependence indices.
SolvableVisCal * svc_
VisCal with solving interface (No ownership responsibilities)
A drop-in replacement for Block<T*>.
casacore::Int napp_
Number of apply VisCals in vc_.
casacore::Int & prtlev()
Diagnostic print level access.
VisBuffer2s encapsulate one chunk of visibility data for processing.
void residuals(VisBuffer &vb, casacore::Cube< casacore::Complex > &R, const casacore::Int chan=-1)
Calculate residuals (optionally for specific chan)
String: the storage and methods of handling collections of characters.
virtual ~VisEquation()
Destructor.
VisBuffers encapsulate one chunk of visibility data for processing.
VisCal::Type pivot() const
Where is the pivot?
SolvableVisCal & svc()
Access to SVC.
casacore::PtrBlock< VisCal * > * vcpb_
A local copy of the list of VisCal (pointers) for applying (No ownership responsibilities) ...
void setFreqDep()
Detect freq dependence along the Vis Equation.