#include <Calibrater.h>
Collaboration diagram for casa::Calibrater:

Definition at line 49 of file Calibrater.h.
Public Member Functions | |
| Calibrater () | |
| Default constructor. | |
| Calibrater (const Calibrater &) | |
| Copy constructor and assignment operator. | |
| Calibrater & | operator= (const Calibrater &) |
| ~Calibrater () | |
| Destructor. | |
| void | selectvis (const String &time="", const String &spw="", const String &scan="", const String &field="", const String &baseline="", const String &uvrange="", const String &chanmode="none", const Int &nchan=1, const Int &start=0, const Int &step=1, const MRadialVelocity &mStart=MRadialVelocity(), const MRadialVelocity &mStep=MRadialVelocity(), const String &msSelect="") |
| Set uv-data selection via MSSelection. | |
| Bool | setapply (const String &type, const Double &t, const String &table, const String &interp, const String &select, const Bool &calwt, const Vector< Int > &spwmap, const Float &opacity) |
| Initialize calibration components to be apply or solved for Bool setapply(const String& type, const Record& applypar);. | |
| Bool | setapply (const String &type, const Double &t, const String &table, const String &spw, const String &field, const String &interp, const Bool &calwt, const Vector< Int > &spwmap, const Float &opacity) |
| Set up to apply calibration (using MSSelection syntax). | |
| Bool | setapply (const String &type, const Record &applypar) |
| Bool | setmodel (const String &modelImage) |
| Bool | setsolve (const String &type, const Double &t, const Double &preavg, const Bool &phaseonly, const Int &refant, const String &table, const Bool &append, const String &cfCache="", const Float &paInc=360.0f) |
| Arrange to solve. | |
| Bool | setsolve (const String &type, const String &solint, const String &table, const Bool &append, const Double &preavg, const String &apmode="AP", const Int &minblperant=4, const String &refant="", const Bool &solnorm=False, const Float &minsnr=0.0f, const String &combine="", const Int &fillgaps=0, const String &cfcache="", const Double &painc=360.0) |
| Arrange to solve (using MSSelection syntax). | |
| Bool | setsolvebandpoly (const String &table, const Bool &append, const Vector< Int > °ree, const Bool &visnorm, const Bool &bpnorm, const Int &maskcenter, const Float &maskedge, const Int &refant) |
| Arrange to solve for BPOLY. | |
| Bool | setsolvebandpoly (const String &table, const Bool &append, const String &solint, const String &combine, const Vector< Int > °ree, const Bool &visnorm, const Bool &solnorm, const Int &maskcenter, const Float &maskedge, const String &refant) |
| Arrange to solve for BPOLY (using MSSelection syntax). | |
| Bool | setsolvegainspline (const String &table, const Bool &append, const String &mode, const Double &splinetime, const Double &preavg, const Int &refant, const Int &numpoint, const Double &phasewrap) |
| Arrange to solve for GSPLINE. | |
| Bool | setsolvegainspline (const String &table, const Bool &append, const String &mode, const Double &splinetime, const Double &preavg, const Int &numpoint, const Double &phasewrap, const String &refant) |
| Arrange to solve for GSPLINE (using MSSelection syntax). | |
| Bool | setsolve (const String &type, const Record &solvepar) |
| Bool | unsetapply (const Int &which=-1) |
| Unset all (default) or one apply calibration component. | |
| Bool | unsetsolve () |
| TBD: Bool unsetapply(const String& type); // by type? | |
| Bool | reset (const Bool &apply=True, const Bool &solve=True) |
| Reset the calibrator object. | |
| Bool | correct () |
| Apply all setapply'd calibration components to DATA and deposit in the CORRECTED_DATA column. | |
| Bool | corrupt () |
| Apply all setapply'd calibration components to MODEL_DATA and deposit in the MODEL_DATA column. | |
| Bool | solve () |
| Solve for a given calibration component. | |
| Vector< Double > | modelfit (const Int &iter, const String &stype, const Vector< Double > &par, const Vector< Bool > &vary, const String &file) |
| Modelfit. | |
| void | fluxscale (const String &infile, const String &outfile, const Vector< String > &refFields, const Vector< Int > &refSpwMap, const Vector< String > &tranFields, const Bool &append, Matrix< Double > &fluxScaleFactor) |
| Fluxscale. | |
| void | fluxscale (const String &infile, const String &outfile, const String &refFields, const Vector< Int > &refSpwMap, const String &tranFields, const Bool &append, Matrix< Double > &fluxScaleFactor) |
| Fluxscale (using MSSelection syntax for fields). | |
| 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 (via field indices). | |
| void | accumulate (const String &intab, const String &incrtab, const String &outtab, const Vector< String > &fields, const Vector< String > &calFields, const String &interp="linear", const Double &t=-1.0, const Vector< Int > &spwmap=Vector< Int >(1,-1)) |
| Accumulate (incremental). | |
| void | accumulate (const String &intab, const String &incrtab, const String &outtab, const String &fields, const String &calFields, const String &interp="linear", const Double &t=-1.0, const Vector< Int > &spwmap=Vector< Int >(1,-1)) |
| Accumulate (using MSSelection syntax). | |
| 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, const Vector< Int > &spwmap=Vector< Int >(1,-1)) |
| Accumululate (via field indices). | |
| Bool | smooth (const String &infile, String &outfile, const String &smoothtype, const Double &smoothtime, const Vector< String > &fields) |
| Smooth calibration. | |
| Bool | smooth (const String &infile, String &outfile, const String &smoothtype, const Double &smoothtime, const String &fields) |
| Smooth calibration (using MSSelection syntax. | |
| Bool | listCal (const String &infile, const String &field, const String &antenna, const String &spw, const String &listfile="", const Int &pagerows=50) |
| List a calibration table. | |
| Bool | initialize (MeasurementSet &inputMS, Bool compress=True) |
| Initialize the calibrator object from an input MeasurementSet. | |
| Bool | initCalSet (const Int &calSet) |
| Re-initialize the calibration scratch columns. | |
| Bool | state () |
| Report apply/solve state. | |
| Bool | applystate () |
| Bool | solvestate () |
| Bool | cleanup () |
| void | writeHistory (LogIO &os, Bool cliCommand=False) |
| Method to update MS HISTORY Table. | |
Private Member Functions | |
| LogIO & | logSink () |
| String | timerString () |
| Time functions and variables. | |
| void | selectChannel (const String &spw) |
| Select on channel using MSSelection. | |
| void | initChanMask () |
| Channel mask services. | |
| void | selectChannel (const String &mode, const Int &nchan, const Int &start, const Int &step, const MRadialVelocity &mStart, const MRadialVelocity &mStep) |
| Select on channel in the VisSet. | |
| Int | getRefantIdx (const String &refant) |
| Interpret refant index. | |
| Vector< Int > | getAntIdx (const String &antenna) |
| Vector< Int > | getFieldIdx (const String &fields) |
| Interpret field indices (MSSelection). | |
| Vector< Int > | getSpwIdx (const String &spws) |
| Interpret spw indices (MSSelection). | |
| Matrix< Int > | getChanIdx (const String &spws) |
| Interpret spw indices (MSSelection). | |
| Bool | calWt () |
| Query apply types to see if we need to calibrate the weights. | |
| 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. | |
| Bool | standardSolve () |
| The standard solving mechanism. | |
| Bool | standardSolve2 () |
| Bool | standardSolve3 () |
Private Attributes | |
| LogIO | sink_p |
| Log functions and variables. | |
| Timer | timer_p |
| String | msname_p |
| Input MeasurementSet and derived selected MeasurementSet. | |
| MeasurementSet * | ms_p |
| MeasurementSet * | mssel_p |
| MeasurementSet * | msselRaw_p |
| VisSet * | vs_p |
| VisSet and VisEquation derived from the input MeasurementSet. | |
| VisSet * | rawvs_p |
| VisEquation * | ve_p |
| PtrBlock< VisCal * > | vc_p |
| VisCals for applying and solving:. | |
| SolvableVisCal * | svc_p |
| String | dataMode_p |
| MeasurementSet selection parameters. | |
| Int | dataNchan_p |
| Int | dataStart_p |
| Int | dataStep_p |
| MRadialVelocity | mDataStart_p |
| MRadialVelocity | mDataStep_p |
| Double | phasewrap_p |
| Spline phase wrapping helper params. | |
| Int | splinepoint_p |
| Int | histLockCounter_p |
| Used to update the MS HISTORY Table. | |
| MSHistoryHandler * | hist_p |
| Table | historytab_p |
| PtrBlock< Vector< Bool > * > | chanmask_ |
| channel masking | |
| casa::Calibrater::Calibrater | ( | ) |
Default constructor.
| casa::Calibrater::Calibrater | ( | const Calibrater & | ) |
Copy constructor and assignment operator.
| casa::Calibrater::~Calibrater | ( | ) |
Destructor.
| Calibrater& casa::Calibrater::operator= | ( | const Calibrater & | ) |
| void casa::Calibrater::selectvis | ( | const String & | time = "", |
|
| const String & | spw = "", |
|||
| const String & | scan = "", |
|||
| const String & | field = "", |
|||
| const String & | baseline = "", |
|||
| const String & | uvrange = "", |
|||
| const String & | chanmode = "none", |
|||
| const Int & | nchan = 1, |
|||
| const Int & | start = 0, |
|||
| const Int & | step = 1, |
|||
| const MRadialVelocity & | mStart = MRadialVelocity(), |
|||
| const MRadialVelocity & | mStep = MRadialVelocity(), |
|||
| const String & | msSelect = "" | |||
| ) |
Set uv-data selection via MSSelection.
| Bool casa::Calibrater::setapply | ( | const String & | type, | |
| const Double & | t, | |||
| const String & | table, | |||
| const String & | interp, | |||
| const String & | select, | |||
| const Bool & | calwt, | |||
| const Vector< Int > & | spwmap, | |||
| const Float & | opacity | |||
| ) |
Initialize calibration components to be apply or solved for Bool setapply(const String& type, const Record& applypar);.
| Bool casa::Calibrater::setapply | ( | const String & | type, | |
| const Double & | t, | |||
| const String & | table, | |||
| const String & | spw, | |||
| const String & | field, | |||
| const String & | interp, | |||
| const Bool & | calwt, | |||
| const Vector< Int > & | spwmap, | |||
| const Float & | opacity | |||
| ) |
Set up to apply calibration (using MSSelection syntax).
| Bool casa::Calibrater::setapply | ( | const String & | type, | |
| const Record & | applypar | |||
| ) |
| Bool casa::Calibrater::setmodel | ( | const String & | modelImage | ) |
| Bool casa::Calibrater::setsolve | ( | const String & | type, | |
| const Double & | t, | |||
| const Double & | preavg, | |||
| const Bool & | phaseonly, | |||
| const Int & | refant, | |||
| const String & | table, | |||
| const Bool & | append, | |||
| const String & | cfCache = "", |
|||
| const Float & | paInc = 360.0f | |||
| ) |
Arrange to solve.
| Bool casa::Calibrater::setsolve | ( | const String & | type, | |
| const String & | solint, | |||
| const String & | table, | |||
| const Bool & | append, | |||
| const Double & | preavg, | |||
| const String & | apmode = "AP", |
|||
| const Int & | minblperant = 4, |
|||
| const String & | refant = "", |
|||
| const Bool & | solnorm = False, |
|||
| const Float & | minsnr = 0.0f, |
|||
| const String & | combine = "", |
|||
| const Int & | fillgaps = 0, |
|||
| const String & | cfcache = "", |
|||
| const Double & | painc = 360.0 | |||
| ) |
Arrange to solve (using MSSelection syntax).
| Bool casa::Calibrater::setsolvebandpoly | ( | const String & | table, | |
| const Bool & | append, | |||
| const Vector< Int > & | degree, | |||
| const Bool & | visnorm, | |||
| const Bool & | bpnorm, | |||
| const Int & | maskcenter, | |||
| const Float & | maskedge, | |||
| const Int & | refant | |||
| ) |
Arrange to solve for BPOLY.
| Bool casa::Calibrater::setsolvebandpoly | ( | const String & | table, | |
| const Bool & | append, | |||
| const String & | solint, | |||
| const String & | combine, | |||
| const Vector< Int > & | degree, | |||
| const Bool & | visnorm, | |||
| const Bool & | solnorm, | |||
| const Int & | maskcenter, | |||
| const Float & | maskedge, | |||
| const String & | refant | |||
| ) |
Arrange to solve for BPOLY (using MSSelection syntax).
| Bool casa::Calibrater::setsolvegainspline | ( | const String & | table, | |
| const Bool & | append, | |||
| const String & | mode, | |||
| const Double & | splinetime, | |||
| const Double & | preavg, | |||
| const Int & | refant, | |||
| const Int & | numpoint, | |||
| const Double & | phasewrap | |||
| ) |
Arrange to solve for GSPLINE.
| Bool casa::Calibrater::setsolvegainspline | ( | const String & | table, | |
| const Bool & | append, | |||
| const String & | mode, | |||
| const Double & | splinetime, | |||
| const Double & | preavg, | |||
| const Int & | numpoint, | |||
| const Double & | phasewrap, | |||
| const String & | refant | |||
| ) |
Arrange to solve for GSPLINE (using MSSelection syntax).
| Bool casa::Calibrater::setsolve | ( | const String & | type, | |
| const Record & | solvepar | |||
| ) |
| Bool casa::Calibrater::unsetapply | ( | const Int & | which = -1 |
) |
Unset all (default) or one apply calibration component.
| Bool casa::Calibrater::unsetsolve | ( | ) |
TBD: Bool unsetapply(const String& type); // by type?
Unset the solved-for calibration component
Reset the calibrator object.
| Bool casa::Calibrater::correct | ( | ) |
Apply all setapply'd calibration components to DATA and deposit in the CORRECTED_DATA column.
| Bool casa::Calibrater::corrupt | ( | ) |
Apply all setapply'd calibration components to MODEL_DATA and deposit in the MODEL_DATA column.
| Bool casa::Calibrater::solve | ( | ) |
Solve for a given calibration component.
| Vector<Double> casa::Calibrater::modelfit | ( | const Int & | iter, | |
| const String & | stype, | |||
| const Vector< Double > & | par, | |||
| const Vector< Bool > & | vary, | |||
| const String & | file | |||
| ) |
Modelfit.
| void casa::Calibrater::fluxscale | ( | const String & | infile, | |
| const String & | outfile, | |||
| const Vector< String > & | refFields, | |||
| const Vector< Int > & | refSpwMap, | |||
| const Vector< String > & | tranFields, | |||
| const Bool & | append, | |||
| Matrix< Double > & | fluxScaleFactor | |||
| ) |
Fluxscale.
| void casa::Calibrater::fluxscale | ( | const String & | infile, | |
| const String & | outfile, | |||
| const String & | refFields, | |||
| const Vector< Int > & | refSpwMap, | |||
| const String & | tranFields, | |||
| const Bool & | append, | |||
| Matrix< Double > & | fluxScaleFactor | |||
| ) |
Fluxscale (using MSSelection syntax for fields).
| void casa::Calibrater::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 (via field indices).
| void casa::Calibrater::accumulate | ( | const String & | intab, | |
| const String & | incrtab, | |||
| const String & | outtab, | |||
| const Vector< String > & | fields, | |||
| const Vector< String > & | calFields, | |||
| const String & | interp = "linear", |
|||
| const Double & | t = -1.0, |
|||
| const Vector< Int > & | spwmap = Vector< Int >(1,-1) | |||
| ) |
Accumulate (incremental).
| void casa::Calibrater::accumulate | ( | const String & | intab, | |
| const String & | incrtab, | |||
| const String & | outtab, | |||
| const String & | fields, | |||
| const String & | calFields, | |||
| const String & | interp = "linear", |
|||
| const Double & | t = -1.0, |
|||
| const Vector< Int > & | spwmap = Vector< Int >(1,-1) | |||
| ) |
Accumulate (using MSSelection syntax).
| void casa::Calibrater::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, |
|||
| const Vector< Int > & | spwmap = Vector< Int >(1,-1) | |||
| ) |
Accumululate (via field indices).
| Bool casa::Calibrater::smooth | ( | const String & | infile, | |
| String & | outfile, | |||
| const String & | smoothtype, | |||
| const Double & | smoothtime, | |||
| const Vector< String > & | fields | |||
| ) |
Smooth calibration.
| Bool casa::Calibrater::smooth | ( | const String & | infile, | |
| String & | outfile, | |||
| const String & | smoothtype, | |||
| const Double & | smoothtime, | |||
| const String & | fields | |||
| ) |
Smooth calibration (using MSSelection syntax.
| Bool casa::Calibrater::listCal | ( | const String & | infile, | |
| const String & | field, | |||
| const String & | antenna, | |||
| const String & | spw, | |||
| const String & | listfile = "", |
|||
| const Int & | pagerows = 50 | |||
| ) |
List a calibration table.
| Bool casa::Calibrater::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.
| Bool casa::Calibrater::initCalSet | ( | const Int & | calSet | ) |
Re-initialize the calibration scratch columns.
| Bool casa::Calibrater::state | ( | ) |
Report apply/solve state.
| Bool casa::Calibrater::applystate | ( | ) |
| Bool casa::Calibrater::solvestate | ( | ) |
| Bool casa::Calibrater::cleanup | ( | ) |
| void casa::Calibrater::writeHistory | ( | LogIO & | os, | |
| Bool | cliCommand = False | |||
| ) |
Method to update MS HISTORY Table.
| LogIO& casa::Calibrater::logSink | ( | ) | [private] |
| String casa::Calibrater::timerString | ( | ) | [private] |
Time functions and variables.
| void casa::Calibrater::selectChannel | ( | const String & | spw | ) | [private] |
Select on channel using MSSelection.
| void casa::Calibrater::initChanMask | ( | ) | [private] |
Channel mask services.
| void casa::Calibrater::selectChannel | ( | const String & | mode, | |
| const Int & | nchan, | |||
| const Int & | start, | |||
| const Int & | step, | |||
| const MRadialVelocity & | mStart, | |||
| const MRadialVelocity & | mStep | |||
| ) | [private] |
Select on channel in the VisSet.
| Int casa::Calibrater::getRefantIdx | ( | const String & | refant | ) | [private] |
Interpret refant index.
| Vector<Int> casa::Calibrater::getAntIdx | ( | const String & | antenna | ) | [private] |
| Vector<Int> casa::Calibrater::getFieldIdx | ( | const String & | fields | ) | [private] |
Interpret field indices (MSSelection).
| Vector<Int> casa::Calibrater::getSpwIdx | ( | const String & | spws | ) | [private] |
Interpret spw indices (MSSelection).
| Matrix<Int> casa::Calibrater::getChanIdx | ( | const String & | spws | ) | [private] |
Interpret spw indices (MSSelection).
| Bool casa::Calibrater::calWt | ( | ) | [private] |
Query apply types to see if we need to calibrate the weights.
| Bool casa::Calibrater::ok | ( | ) | [private] |
Returns True if calibrator object is in a valid state.
| void casa::Calibrater::getRawPhaseVisSet | ( | Vector< Int > & | spwid | ) | [private] |
Create a VisSet for raw phase transfer if needed.
| Bool casa::Calibrater::standardSolve | ( | ) | [private] |
The standard solving mechanism.
| Bool casa::Calibrater::standardSolve2 | ( | ) | [private] |
| Bool casa::Calibrater::standardSolve3 | ( | ) | [private] |
LogIO casa::Calibrater::sink_p [private] |
Timer casa::Calibrater::timer_p [private] |
Definition at line 314 of file Calibrater.h.
String casa::Calibrater::msname_p [private] |
Input MeasurementSet and derived selected MeasurementSet.
Definition at line 357 of file Calibrater.h.
MeasurementSet* casa::Calibrater::ms_p [private] |
Definition at line 358 of file Calibrater.h.
MeasurementSet* casa::Calibrater::mssel_p [private] |
Definition at line 359 of file Calibrater.h.
MeasurementSet* casa::Calibrater::msselRaw_p [private] |
Definition at line 360 of file Calibrater.h.
VisSet* casa::Calibrater::vs_p [private] |
VisSet and VisEquation derived from the input MeasurementSet.
Definition at line 363 of file Calibrater.h.
VisSet* casa::Calibrater::rawvs_p [private] |
Definition at line 364 of file Calibrater.h.
VisEquation* casa::Calibrater::ve_p [private] |
Definition at line 365 of file Calibrater.h.
PtrBlock<VisCal*> casa::Calibrater::vc_p [private] |
SolvableVisCal* casa::Calibrater::svc_p [private] |
Definition at line 369 of file Calibrater.h.
String casa::Calibrater::dataMode_p [private] |
Int casa::Calibrater::dataNchan_p [private] |
Definition at line 373 of file Calibrater.h.
Int casa::Calibrater::dataStart_p [private] |
Definition at line 373 of file Calibrater.h.
Int casa::Calibrater::dataStep_p [private] |
Definition at line 373 of file Calibrater.h.
MRadialVelocity casa::Calibrater::mDataStart_p [private] |
Definition at line 374 of file Calibrater.h.
MRadialVelocity casa::Calibrater::mDataStep_p [private] |
Definition at line 374 of file Calibrater.h.
Double casa::Calibrater::phasewrap_p [private] |
Int casa::Calibrater::splinepoint_p [private] |
Definition at line 378 of file Calibrater.h.
Int casa::Calibrater::histLockCounter_p [private] |
MSHistoryHandler* casa::Calibrater::hist_p [private] |
Definition at line 382 of file Calibrater.h.
Table casa::Calibrater::historytab_p [private] |
Definition at line 383 of file Calibrater.h.
PtrBlock<Vector<Bool>*> casa::Calibrater::chanmask_ [private] |
1.5.1