Calibrater.h

Classes

Calibrater -- Controls the solution of calibration components (Jones Matrices) (full description)

class Calibrater

Interface

Public Members
Calibrater()
Calibrater(const Calibrater&)
Calibrater& operator=(const Calibrater&)
~Calibrater()
Bool initialize(MeasurementSet& inputMS, Bool compress=True)
void setdata(const String& mode, const Int& nchan, const Int& start, const Int& step, const MRadialVelocity& mStart, const MRadialVelocity& mStep, const String& msSelect)
Bool write()
Bool setApply(const String& typeComp, const Record& interpolation, Vector<Int> rawspw= Vector<Int>(0))
Bool setSolve(const String& typeComp, const Record& solver)
Bool unset(String typeComp)
Bool unsetSolve()
Bool correct()
Bool solve(String typeComp)
Vector<Double> modelfit(const Int& iter, const String& stype, const Vector<Double>& par, const Vector<Bool>& vary, const String& file)
Bool smooth(const String& infile, const String& outfile, const Bool& append, const String& select, const String& smoothtype, const Double& smoothtime, const String& interptype, const Double& interptime)
Bool put(String typeComp, String tableName, Bool append)
void fluxscale(const String& infile, const String& outfile, const Vector<Int>& refField, const Vector<Int>& refSpwMap, const Vector<Int>& tranField, const Bool& append, Matrix<Double>& fluxScaleFactor)
void accumulate(const String& intab, const String& incrtab, const String& outtab, const Vector<Int>& fields, const Vector<Int>& calFields, const String& interp="linear", const Double& t=-1.0)
Bool reset()
Bool initCalSet(const Int& calSet)
void setPhaseSplineParam(const Int& npoi, const Double& phaseWrap)
void writeHistory(LogIO& os, Bool cliCommand=False)
Private Members
LogIO& logSink()
String timerString()
Bool ok()
void getRawPhaseVisSet(Vector<Int>& spwid)

Description

Member Description

Calibrater()

Default constructor

Calibrater(const Calibrater&)

Copy constructor and assignment operator

Calibrater& operator=(const Calibrater&)

~Calibrater()

Destructor

Bool initialize(MeasurementSet& inputMS, Bool compress=True)

Initialize the calibrator object from an input MeasurementSet. Optional compression of the calibration columns (MODEL_DATA, CORRECTED_DATA and IMAGING_WEIGHT) is supported.

void setdata(const String& mode, const Int& nchan, const Int& start, const Int& step, const MRadialVelocity& mStart, const MRadialVelocity& mStep, const String& msSelect)

Set uv-data selection criteria

Bool write()

Flush the underlying uv-data to disk

Bool setApply(const String& typeComp, const Record& interpolation, Vector<Int> rawspw= Vector<Int>(0))

Initialize calibration components to be solved for or applied

Bool setSolve(const String& typeComp, const Record& solver)

Bool unset(String typeComp)

Unset a calibration component

Bool unsetSolve()

Unset the solved-for calibration component

Bool correct()

Apply all set calibration components to update the CORRECTED_DATA column

Bool solve(String typeComp)

Solve for a given calibration component (Jones matrix)

Vector<Double> modelfit(const Int& iter, const String& stype, const Vector<Double>& par, const Vector<Bool>& vary, const String& file)

Modelfit

Bool smooth(const String& infile, const String& outfile, const Bool& append, const String& select, const String& smoothtype, const Double& smoothtime, const String& interptype, const Double& interptime)

Smooth and Interpolate calibration

Bool put(String typeComp, String tableName, Bool append)

Flush calibration solutions to disk

void fluxscale(const String& infile, const String& outfile, const Vector<Int>& refField, const Vector<Int>& refSpwMap, const Vector<Int>& tranField, const Bool& append, Matrix<Double>& fluxScaleFactor)

Fluxscale

void accumulate(const String& intab, const String& incrtab, const String& outtab, const Vector<Int>& fields, const Vector<Int>& calFields, const String& interp="linear", const Double& t=-1.0)

Accumulate (incremental)

Bool reset()

Reset the calibrator object

Bool initCalSet(const Int& calSet)

Re-initialize the calibration scratch columns

void setPhaseSplineParam(const Int& npoi, const Double& phaseWrap)

Set parameters for 360 jump de-wrapping in spline solver

void writeHistory(LogIO& os, Bool cliCommand=False)

Method to update MS HISTORY Table

LogIO& logSink()

String timerString()

Time functions and variables

Bool ok()

Returns True if calibrator object is in a valid state

void getRawPhaseVisSet(Vector<Int>& spwid)

Create a VisSet for raw phase transfer if needed