29 #ifndef SYNTHESIS_GSPLINE_H
30 #define SYNTHESIS_GSPLINE_H
void writeAsciiLog(const casacore::String &filename, const casacore::Matrix< casacore::Double > &coeff, const casacore::Vector< casacore::Double > &rmsFit, casacore::Bool phasesoln)
Logging solution and rms.
std::map< casacore::String, casacore::Int > timeValueMap_p
Parameters for raw phase removal from another spw VisSet* rawvs_p; casacore::Bool rawPhaseRemoval_p;...
virtual Jones::JonesType jonesType()
Type of Jones matrix according to nPar() TBD:
virtual casacore::String typeName()
Return type name as a string.
casacore::Double solTimeStamp_p
Solution timestamp.
virtual casacore::String longTypeName()
virtual Type type()
Return the type enum.
casacore::Bool solvePhase_p
VisSet * vs_p
The underlying VisSet.
*void plotsolve(const casacore::Vector< casacore::Double > &x, const casacore::Matrix< casacore::Double > &yall, const casacore::Matrix< casacore::Double > &weightall, const casacore::Vector< casacore::Double > &errall, casacore::Matrix< casacore::Double > &coeff, casacore::Bool phasesoln)
Plot solutions as compare with data.
virtual void setApply()
Set the application parameters.
casacore::Double & refFreq()
virtual ~GJonesSpline()
Destructor.
virtual casacore::Int nPar()
GSPLINE has one trivial casacore::Complex parameter (single pol, for now) TBD:
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};.
casacore::Int getKnots(const casacore::Vector< casacore::Double > ×, casacore::Vector< casacore::Double > &knots)
Compute the number of spline knots required and their location.
casacore::Double splinetime_p
void newCalBuffer(const casacore::Vector< casacore::Int > &fieldIdKeys, const casacore::Vector< casacore::Int > &antennaId)
Create and fill an empty output calibration buffer.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
virtual casacore::Bool useGenericGatherForSolve()
GSpline gathers/solves for itself.
casacore::Bool solveAmp_p
Private variables containing the solver parameters.
casacore::Double phaseWrap_p
casacore::Double getSplineVal(casacore::Double x, casacore::Vector< casacore::Double > &knots, casacore::Vector< casacore::Double > &coeff)
Compute a spline polynomial value.
*void doCalcPar()
Expose calculating pars for plotting.
casacore::Vector< casacore::Int > fieldIdRange()
Return all field id.
virtual void calcPar()
Calc G pars from spline info.
virtual void updateCalTable(const casacore::Vector< casacore::Int > &fieldIdKeys, const casacore::Vector< casacore::Int > &antennaId, const casacore::Vector< casacore::String > &freqGrpName, const casacore::Vector< casacore::String > &polyType, const casacore::Vector< casacore::String > &polyMode, const casacore::Vector< casacore::Complex > &scaleFactor, const casacore::Matrix< casacore::Double > &polyCoeffAmp, const casacore::Matrix< casacore::Double > &polyCoeffPhase, const casacore::Vector< casacore::String > &phaseUnits, const casacore::Vector< casacore::Double > &splineKnotsAmp, const casacore::Vector< casacore::Double > &splineKnotsPhase, const casacore::Vector< casacore::MFrequency > &refFreq, const casacore::Vector< casacore::Int > &refAnt)
Update the output calibration table.
GJonesSpline(VisSet &vs)
Construct from a visibility data set.
const MSMetaInfoForCal & msmc() const
Access to the MSMetaInfoForCal (throws if none)
String: the storage and methods of handling collections of characters.
GJonesSplineMBuf: GJonesSpline calibration main table buffer.
virtual void setSolve()
Set the solving parameters.
virtual void selfGatherAndSolve(VisSet &vs, VisEquation &ve)
Solve.
casacore::Matrix< casacore::Double > rawPhase_p
GJonesSplineMBuf * calBuffer_p
casacore::Time for which the current calibration cache is valid casacore::Double cacheTimeValid_p; ...