29 #ifndef SYNTHESIS_BPOLY_H
30 #define SYNTHESIS_BPOLY_H
71 class VisBuffGroupAcc;
virtual casacore::Int nPar()
BPOLY has two trivial casacore::Complex parameter (formed at fill)
casacore::Double meanFrequency(const casacore::Vector< casacore::Int > &spwids)
Load bandpass parameters from a calibration table and pre-compute the corrections (and their inverse)...
casacore::Bool maskedChannel(const casacore::Int &chan, const casacore::Int &nChan)
Determine if a given channel is masked.
virtual casacore::String longTypeName()
virtual casacore::Bool useGenericGatherForSolve()
BPOLY gathers generically...
casacore::Vector< casacore::Int > spwIdsInGroup(const casacore::String &freqGrpName)
Utility function to return the spw id.
virtual casacore::String typeName()
Return type name as string.
virtual Type type()
Return the type enum.
void updateCalTable(const casacore::String &freqGrpName, const casacore::Vector< casacore::Int > &antennaId, const casacore::Vector< casacore::String > &polyType, const casacore::Vector< casacore::Complex > &scaleFactor, const casacore::Matrix< casacore::Double > &validDomain, const casacore::Matrix< casacore::Double > &polyCoeffAmp, const casacore::Matrix< casacore::Double > &polyCoeffPhase, const casacore::Vector< casacore::String > &phaseUnits, const casacore::Vector< casacore::Complex > &sideBandRef, const casacore::Vector< casacore::MFrequency > &refFreq, const casacore::Vector< casacore::Int > &refAnt)
Update the output calibration table to include the current solution parameters.
casacore::Int maskcenterHalf_p
Derived solver parameters Center mask half width (in channels)
virtual void setApply()
Set the application parameters.
casacore::Double & refFreq()
casacore::Double getChebVal(const casacore::Vector< casacore::Double > &coeff, const casacore::Double &xinit, const casacore::Double &xfinal, const casacore::Double &x)
Compute a casacore::Chebyshev polynomial using the CLIC library.
virtual void loadMemCalTable(casacore::String applyTable, casacore::String field)
void plotsolve2(const casacore::Vector< casacore::Double > &x, const casacore::Matrix< casacore::Double > &data, const casacore::Matrix< casacore::Double > &phadata, const casacore::Matrix< casacore::Double > &wtdata, const casacore::Vector< casacore::Int > &ant1idx, const casacore::Vector< casacore::Int > &ant2idx, const casacore::Vector< casacore::Double > &err, casacore::Matrix< casacore::Double > &coeff, const casacore::Vector< casacore::Double > &phaerr, casacore::Matrix< casacore::Double > &phacoeff)
virtual ~BJonesPoly()
Destructor.
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};.
virtual casacore::Bool useGenericSolveOne()
...then solves for itself per solution:
virtual void calcPar()
Calculate current parameters.
VisSet * vs_p
The underlying VisSet.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
casacore::Double solTimeStamp
Some meta info.
A class to group separately averaged VisBuffers.
BJonesPoly(VisSet &vs)
Construct from a visibility data set.
casacore::Vector< casacore::Double > freqAxis(const casacore::Int &spwId)
Utility function to return the frequency axis for a given spw.
const MSMetaInfoForCal & msmc() const
Access to the MSMetaInfoForCal (throws if none)
String: the storage and methods of handling collections of characters.
casacore::String freqGrpName(const casacore::Int &spwId)
Utility function to return the frequency group name for a given spw.
casacore::Float maskedgeFrac_p
Fractional edge mask.
virtual void setSolve()
Set the solving parameters.
virtual Jones::JonesType jonesType()
Type of Jones matrix according to nPar()
casacore::Vector< casacore::Int > calDescId_p
CalDescId per spw.
virtual void selfSolveOne(VisBuffGroupAcc &vbga)
Solve (old self-directed gather and solve) virtual void selfGatherAndSolve(VisSet& vs...
casacore::Int degamp_p
Private variables containing the solver parameters.
casacore::Float maskedge_p
casacore::Int maskcenter_p