casa
5.7.0-16
|
#include <Calibrater.h>
Public Member Functions | |
Calibrater () | |
Default constructor. More... | |
Calibrater (casacore::String msname) | |
Simple MS-only ctor. More... | |
Calibrater (const vi::SimpleSimVi2Parameters &ssvp) | |
Simple simulated-data Calibrater. More... | |
virtual | ~Calibrater () |
Destructor. More... | |
virtual void | selectvis (const casacore::String &time="", const casacore::String &spw="", const casacore::String &scan="", const casacore::String &field="", const casacore::String &intent="", const casacore::String &obsIDs="", const casacore::String &baseline="", const casacore::String &uvrange="", const casacore::String &chanmode="none", const casacore::Int &nchan=1, const casacore::Int &start=0, const casacore::Int &step=1, const casacore::MRadialVelocity &mStart=casacore::MRadialVelocity(), const casacore::MRadialVelocity &mStep=casacore::MRadialVelocity(), const casacore::String &msSelect="") |
Set uv-data selection via MSSelection. More... | |
casacore::Bool | setapply (const casacore::String &type, const casacore::Double &t, const casacore::String &table, const casacore::String &spw, const casacore::String &field, const casacore::String &interp, const casacore::Bool &calwt, const casacore::Vector< casacore::Int > &spwmap, const casacore::Vector< casacore::Double > &opacity) |
Set up to apply calibration (using casacore::MSSelection syntax) More... | |
virtual casacore::Bool | setapply (const casacore::String &type, const casacore::Record &applypar) |
virtual casacore::Bool | setcallib (casacore::Record) |
Set up apply-able calibration via a Cal Library. More... | |
virtual casacore::Bool | setcallib2 (casacore::Record callib, const casacore::MeasurementSet *ms=0) |
casacore::Bool | validatecallib (casacore::Record callib) |
casacore::Bool | setmodel (const casacore::String &modelImage) |
casacore::Bool | setModel (const casacore::Vector< casacore::Double > &stokes) |
casacore::Bool | setsolve (const casacore::String &type, const casacore::String &solint, const casacore::String &table, const casacore::Bool append, const casacore::Double preavg, const casacore::String &apmode="AP", const casacore::Int minblperant=4, const casacore::String &refant="", const casacore::String &refantmode="flex", const casacore::Bool solnorm=false, const casacore::String &normtype="mean", const casacore::Float minsnr=0.0f, const casacore::String &combine="", const casacore::Int fillgaps=0, const casacore::String &cfcache="", const casacore::Double painc=360.0, const casacore::Int fitorder=0, const casacore::Float fraction=0.1, const casacore::Int numedge=-1, const casacore::String &radius="", const casacore::Bool smooth=true, const casacore::Bool zerorates=false, const casacore::Bool globalsolve=true, const casacore::Int niter=100, const casacore::Vector< casacore::Double > &delaywindow=casacore::Vector< casacore::Double >(), const casacore::Vector< casacore::Double > &ratewindow=casacore::Vector< casacore::Double >(), const casacore::String &solmode="", const casacore::Vector< casacore::Double > &rmsthresh=casacore::Vector< casacore::Double >()) |
Arrange to solve (using casacore::MSSelection syntax) More... | |
casacore::Bool | setsolvebandpoly (const casacore::String &table, const casacore::Bool &append, const casacore::String &solint, const casacore::String &combine, const casacore::Vector< casacore::Int > °ree, const casacore::Bool &visnorm, const casacore::Bool &solnorm, const casacore::Int &maskcenter, const casacore::Float &maskedge, const casacore::String &refant) |
Arrange to solve for BPOLY (using casacore::MSSelection syntax) More... | |
casacore::Bool | setsolvegainspline (const casacore::String &table, const casacore::Bool &append, const casacore::String &mode, const casacore::Double &splinetime, const casacore::Double &preavg, const casacore::Int &numpoint, const casacore::Double &phasewrap, const casacore::String &refant) |
Arrange to solve for GSPLINE (using casacore::MSSelection syntax) More... | |
virtual casacore::Bool | setsolve (const casacore::String &type, const casacore::Record &solvepar) |
casacore::Bool | unsetapply (const casacore::Int &which=-1) |
Unset all (default) or one apply calibration component. More... | |
casacore::Bool | unsetsolve () |
TBD: casacore::Bool unsetapply(const casacore::String& type); // by type? More... | |
casacore::Bool | reset (const casacore::Bool &apply=true, const casacore::Bool &solve=true) |
Reset the VisCal lists in the Calibrator object. More... | |
virtual casacore::Bool | correct (casacore::String) |
Apply all setapply'd calibration components to DATA and deposit in the CORRECTED_DATA column. More... | |
casacore::Bool | correct2 (casacore::String mode="calflag") |
virtual casacore::Bool | corrupt () |
Apply all setapply'd calibration components to MODEL_DATA and deposit in the MODEL_DATA column. More... | |
casacore::Bool | corrupt2 () |
casacore::Bool | initWeights (casacore::String wtmode, casacore::Bool dowtsp=false) |
Initialize sigma/weight, and possibly weight_spectrum. More... | |
casacore::Bool | initWeights (casacore::Bool doBT=true, casacore::Bool dowtsp=false) |
virtual casacore::Bool | initWeightsWithTsys (casacore::String wtmode, casacore::Bool dowtsp=false, casacore::String tsystable="", casacore::String gainfield="", casacore::String interp="linear", casacore::Vector< casacore::Int > spwmap=casacore::Vector< casacore::Int >()) |
virtual casacore::Bool | solve () |
Solve for a given calibration component. More... | |
virtual casacore::Vector < casacore::Double > | modelfit (const casacore::Int &, const casacore::String &, const casacore::Vector< casacore::Double > &, const casacore::Vector< casacore::Bool > &, const casacore::String &) |
Modelfit. More... | |
void | fluxscale (const casacore::String &infile, const casacore::String &outfile, const casacore::String &refFields, const casacore::Vector< casacore::Int > &refSpwMap, const casacore::String &tranFields, const casacore::Bool &append, const casacore::Float &inGainThres, const casacore::String &antSel, const casacore::String &timerangeSel, const casacore::String &scanSel, SolvableVisCal::fluxScaleStruct &oFluxScaleFactor, casacore::Vector< casacore::Int > &tranidx, const casacore::String &oListFile, const casacore::Bool &incremental, const casacore::Int &fitorder, const casacore::Bool &display) |
Fluxscale (using casacore::MSSelection syntax for fields) More... | |
virtual void | fluxscale (const casacore::String &infile, const casacore::String &outfile, const casacore::Vector< casacore::Int > &refField, const casacore::Vector< casacore::Int > &refSpwMap, const casacore::Vector< casacore::Int > &tranField, const casacore::Bool &append, const casacore::Float &inGainThres, const casacore::String &antSel, const casacore::String &timerangeSel, const casacore::String &scanSel, SolvableVisCal::fluxScaleStruct &oFluxScaleFactor, const casacore::String &oListFile, const casacore::Bool &incremental, const casacore::Int &fitorder, const casacore::Bool &display) |
Fluxscale (via field indices) More... | |
virtual void | accumulate (const casacore::String &, const casacore::String &, const casacore::String &, const casacore::String &, const casacore::String &, const casacore::String &, const casacore::Double &, const casacore::Vector< casacore::Int > &) |
Accumulate (using casacore::MSSelection syntax) More... | |
virtual void | specifycal (const casacore::String &type, const casacore::String &caltable, const casacore::String &time, const casacore::String &spw, const casacore::String &antenna, const casacore::String &pol, const casacore::Vector< casacore::Double > ¶meter, const casacore::String &infile, const casacore::Bool &uniform) |
Generate cal table from specified values. More... | |
virtual casacore::Bool | smooth (const casacore::String &infile, casacore::String &outfile, const casacore::String &smoothtype, const casacore::Double &smoothtime, const casacore::String &fields) |
casacore::Smooth calibration (using casacore::MSSelection syntax More... | |
virtual casacore::Bool | reRefant (const casacore::String &infile, casacore::String &outfile, const casacore::String &refantmode, const casacore::String &refant) |
Apply new reference antenna to calibration. More... | |
virtual casacore::Bool | listCal (const casacore::String &infile, const casacore::String &field, const casacore::String &antenna, const casacore::String &spw, const casacore::String &listfile="", const casacore::Int &pagerows=50) |
casacore::List a calibration table More... | |
virtual casacore::Bool | initialize (casacore::MeasurementSet &inputMS, casacore::Bool compress=true, casacore::Bool addScratch=true, casacore::Bool addModel=true) |
Initialize the calibrator object from an input MeasurementSet. More... | |
virtual casacore::Bool | initCalSet (const casacore::Int &) |
Re-initialize the calibration scratch columns. More... | |
casacore::Bool | state () |
Report apply/solve state. More... | |
casacore::Bool | applystate () |
casacore::Bool | solvestate () |
casacore::Record & | getActRec () |
VisEquation * | ve () |
Return access to the VisEquation. More... | |
virtual casacore::Bool | ok () |
Returns true if calibrator object is in a valid state. More... | |
Static Public Member Functions | |
static Calibrater * | factory (casacore::Bool old=true) |
Calibrater factories. More... | |
static Calibrater * | factory (casacore::String msname, casacore::Bool old=true) |
static casacore::Bool | updateCalTable (const casacore::String &caltable) |
Handle caltable backward compatibility. More... | |
Protected Member Functions | |
casacore::Bool | cleanup () |
casacore::LogIO & | logSink () |
void | writeHistory (casacore::LogIO &os, casacore::Bool cliCommand=false) |
Method to update casacore::MS HISTORY Table. More... | |
casacore::String | timerString () |
casacore::Time functions and variables More... | |
virtual void | selectChannel (const casacore::String &spw) |
Select on channel using MSSelection. More... | |
casacore::Vector< casacore::Int > | getRefantIdxList (const casacore::String &refant) |
Interpret refant index. More... | |
casacore::Vector< casacore::Int > | getAntIdx (const casacore::String &antenna) |
casacore::Vector< casacore::Int > | getFieldIdx (const casacore::String &fields) |
Interpret field indices (casacore::MSSelection) More... | |
casacore::Vector< casacore::Int > | getSpwIdx (const casacore::String &spws) |
Interpret spw indices (casacore::MSSelection) More... | |
casacore::Matrix< casacore::Int > | getChanIdx (const casacore::String &spws) |
Interpret spw indices (casacore::MSSelection) More... | |
casacore::Bool | calWt () |
Query apply types to see if we need to calibrate the weights. More... | |
casacore::Bool | summarize_uncalspws (const casacore::Vector< casacore::Bool > &uncalspw, const casacore::String &origin, casacore::Bool strictflag=false) |
Given a (supplied) list of uncalibrated spws, determines and returns if there were any, and if so sends them as a warning message to the logger. More... | |
void | getRawPhaseVisSet (casacore::Vector< casacore::Int > &spwid) |
Create a VisSet for raw phase transfer if needed. More... | |
virtual casacore::Bool | genericGatherAndSolve () |
The standard solving mechanism (VI2/SDB version) More... | |
Private Member Functions | |
Calibrater (const Calibrater &) | |
Copy constructor and assignment operator are forbidden. More... | |
Calibrater & | operator= (const Calibrater &) |
void | setCalFilterConfiguration (casacore::String const &type, casacore::Record const &config) |
Private Attributes | |
const bool | simdata_p |
Simulated-data/testing context info. More... | |
const vi::SimpleSimVi2Parameters | ssvp_p |
casacore::Record | calFilterConfig_p |
configuration for calibration dependent data filter More... | |
Definition at line 55 of file Calibrater.h.
casa::Calibrater::Calibrater | ( | ) |
Default constructor.
casa::Calibrater::Calibrater | ( | casacore::String | msname | ) |
Simple MS-only ctor.
casa::Calibrater::Calibrater | ( | const vi::SimpleSimVi2Parameters & | ssvp | ) |
Simple simulated-data Calibrater.
|
virtual |
Destructor.
|
private |
Copy constructor and assignment operator are forbidden.
|
inlinevirtual |
Accumulate (using casacore::MSSelection syntax)
Reimplemented in casa::OldCalibrater.
Definition at line 245 of file Calibrater.h.
casacore::Bool casa::Calibrater::applystate | ( | ) |
|
protected |
Query apply types to see if we need to calibrate the weights.
|
protected |
|
inlinevirtual |
Apply all setapply'd calibration components to DATA and deposit in the CORRECTED_DATA column.
Reimplemented in casa::OldCalibrater.
Definition at line 184 of file Calibrater.h.
casacore::Bool casa::Calibrater::correct2 | ( | casacore::String | mode = "calflag" | ) |
|
inlinevirtual |
Apply all setapply'd calibration components to MODEL_DATA and deposit in the MODEL_DATA column.
Reimplemented in casa::OldCalibrater.
Definition at line 189 of file Calibrater.h.
References corrupt2().
casacore::Bool casa::Calibrater::corrupt2 | ( | ) |
Referenced by corrupt().
|
static |
Calibrater factories.
|
static |
void casa::Calibrater::fluxscale | ( | const casacore::String & | infile, |
const casacore::String & | outfile, | ||
const casacore::String & | refFields, | ||
const casacore::Vector< casacore::Int > & | refSpwMap, | ||
const casacore::String & | tranFields, | ||
const casacore::Bool & | append, | ||
const casacore::Float & | inGainThres, | ||
const casacore::String & | antSel, | ||
const casacore::String & | timerangeSel, | ||
const casacore::String & | scanSel, | ||
SolvableVisCal::fluxScaleStruct & | oFluxScaleFactor, | ||
casacore::Vector< casacore::Int > & | tranidx, | ||
const casacore::String & | oListFile, | ||
const casacore::Bool & | incremental, | ||
const casacore::Int & | fitorder, | ||
const casacore::Bool & | display | ||
) |
Fluxscale (using casacore::MSSelection syntax for fields)
|
virtual |
Fluxscale (via field indices)
Reimplemented in casa::OldCalibrater.
|
protectedvirtual |
The standard solving mechanism (VI2/SDB version)
Reimplemented in casa::OldCalibrater.
|
inline |
Definition at line 305 of file Calibrater.h.
References actRec_.
|
protected |
|
protected |
Interpret spw indices (casacore::MSSelection)
|
protected |
Interpret field indices (casacore::MSSelection)
|
protected |
Create a VisSet for raw phase transfer if needed.
|
protected |
Interpret refant index.
|
protected |
Interpret spw indices (casacore::MSSelection)
|
inlinevirtual |
Re-initialize the calibration scratch columns.
Reimplemented in casa::OldCalibrater.
Definition at line 298 of file Calibrater.h.
|
virtual |
Initialize the calibrator object from an input MeasurementSet.
Optional compression of the calibration columns (MODEL_DATA, and CORRECTED_DATA) is supported. if addScratch=true, optionally one can just add CORRECTED_DATA by setting addModel to false
Reimplemented in casa::OldCalibrater.
casacore::Bool casa::Calibrater::initWeights | ( | casacore::String | wtmode, |
casacore::Bool | dowtsp = false |
||
) |
Initialize sigma/weight, and possibly weight_spectrum.
casacore::Bool casa::Calibrater::initWeights | ( | casacore::Bool | doBT = true , |
casacore::Bool | dowtsp = false |
||
) |
|
virtual |
Reimplemented in casa::OldCalibrater.
|
virtual |
casacore::List a calibration table
Reimplemented in casa::OldCalibrater.
|
protected |
|
inlinevirtual |
|
virtual |
Returns true if calibrator object is in a valid state.
Reimplemented in casa::OldCalibrater.
|
private |
|
virtual |
Apply new reference antenna to calibration.
casacore::Bool casa::Calibrater::reset | ( | const casacore::Bool & | apply = true , |
const casacore::Bool & | solve = true |
||
) |
Reset the VisCal lists in the Calibrator object.
|
protectedvirtual |
Select on channel using MSSelection.
Reimplemented in casa::OldCalibrater.
|
virtual |
Set uv-data selection via MSSelection.
Reimplemented in casa::OldCalibrater.
casacore::Bool casa::Calibrater::setapply | ( | const casacore::String & | type, |
const casacore::Double & | t, | ||
const casacore::String & | table, | ||
const casacore::String & | spw, | ||
const casacore::String & | field, | ||
const casacore::String & | interp, | ||
const casacore::Bool & | calwt, | ||
const casacore::Vector< casacore::Int > & | spwmap, | ||
const casacore::Vector< casacore::Double > & | opacity | ||
) |
Set up to apply calibration (using casacore::MSSelection syntax)
|
virtual |
Reimplemented in casa::OldCalibrater.
|
private |
|
inlinevirtual |
Set up apply-able calibration via a Cal Library.
Reimplemented in casa::OldCalibrater.
Definition at line 108 of file Calibrater.h.
|
virtual |
Reimplemented in casa::OldCalibrater.
casacore::Bool casa::Calibrater::setmodel | ( | const casacore::String & | modelImage | ) |
casacore::Bool casa::Calibrater::setModel | ( | const casacore::Vector< casacore::Double > & | stokes | ) |
casacore::Bool casa::Calibrater::setsolve | ( | const casacore::String & | type, |
const casacore::String & | solint, | ||
const casacore::String & | table, | ||
const casacore::Bool | append, | ||
const casacore::Double | preavg, | ||
const casacore::String & | apmode = "AP" , |
||
const casacore::Int | minblperant = 4 , |
||
const casacore::String & | refant = "" , |
||
const casacore::String & | refantmode = "flex" , |
||
const casacore::Bool | solnorm = false , |
||
const casacore::String & | normtype = "mean" , |
||
const casacore::Float | minsnr = 0.0f , |
||
const casacore::String & | combine = "" , |
||
const casacore::Int | fillgaps = 0 , |
||
const casacore::String & | cfcache = "" , |
||
const casacore::Double | painc = 360.0 , |
||
const casacore::Int | fitorder = 0 , |
||
const casacore::Float | fraction = 0.1 , |
||
const casacore::Int | numedge = -1 , |
||
const casacore::String & | radius = "" , |
||
const casacore::Bool | smooth = true , |
||
const casacore::Bool | zerorates = false , |
||
const casacore::Bool | globalsolve = true , |
||
const casacore::Int | niter = 100 , |
||
const casacore::Vector< casacore::Double > & | delaywindow = casacore::Vector< casacore::Double >() , |
||
const casacore::Vector< casacore::Double > & | ratewindow = casacore::Vector< casacore::Double >() , |
||
const casacore::String & | solmode = "" , |
||
const casacore::Vector< casacore::Double > & | rmsthresh = casacore::Vector< casacore::Double >() |
||
) |
Arrange to solve (using casacore::MSSelection syntax)
|
virtual |
Reimplemented in casa::OldCalibrater.
casacore::Bool casa::Calibrater::setsolvebandpoly | ( | const casacore::String & | table, |
const casacore::Bool & | append, | ||
const casacore::String & | solint, | ||
const casacore::String & | combine, | ||
const casacore::Vector< casacore::Int > & | degree, | ||
const casacore::Bool & | visnorm, | ||
const casacore::Bool & | solnorm, | ||
const casacore::Int & | maskcenter, | ||
const casacore::Float & | maskedge, | ||
const casacore::String & | refant | ||
) |
Arrange to solve for BPOLY (using casacore::MSSelection syntax)
casacore::Bool casa::Calibrater::setsolvegainspline | ( | const casacore::String & | table, |
const casacore::Bool & | append, | ||
const casacore::String & | mode, | ||
const casacore::Double & | splinetime, | ||
const casacore::Double & | preavg, | ||
const casacore::Int & | numpoint, | ||
const casacore::Double & | phasewrap, | ||
const casacore::String & | refant | ||
) |
Arrange to solve for GSPLINE (using casacore::MSSelection syntax)
|
virtual |
casacore::Smooth calibration (using casacore::MSSelection syntax
Reimplemented in casa::OldCalibrater.
|
virtual |
Solve for a given calibration component.
Reimplemented in casa::OldCalibrater.
casacore::Bool casa::Calibrater::solvestate | ( | ) |
|
virtual |
Generate cal table from specified values.
Reimplemented in casa::OldCalibrater.
casacore::Bool casa::Calibrater::state | ( | ) |
Report apply/solve state.
|
protected |
Given a (supplied) list of uncalibrated spws, determines and returns if there were any, and if so sends them as a warning message to the logger.
|
protected |
casacore::Time functions and variables
casacore::Bool casa::Calibrater::unsetapply | ( | const casacore::Int & | which = -1 | ) |
Unset all (default) or one apply calibration component.
casacore::Bool casa::Calibrater::unsetsolve | ( | ) |
TBD: casacore::Bool unsetapply(const casacore::String& type); // by type?
Unset the solved-for calibration component
|
static |
Handle caltable backward compatibility.
casacore::Bool casa::Calibrater::validatecallib | ( | casacore::Record | callib | ) |
|
inline |
|
protected |
Method to update casacore::MS HISTORY Table.
|
protected |
|
private |
configuration for calibration dependent data filter
Definition at line 413 of file Calibrater.h.
|
protected |
casacore::MeasurementSet selection parameters
Definition at line 385 of file Calibrater.h.
|
protected |
Definition at line 386 of file Calibrater.h.
|
protected |
Definition at line 386 of file Calibrater.h.
|
protected |
Definition at line 386 of file Calibrater.h.
|
protected |
Definition at line 372 of file Calibrater.h.
|
protected |
Definition at line 395 of file Calibrater.h.
|
protected |
Used to update the casacore::MS HISTORY Table.
Definition at line 394 of file Calibrater.h.
|
protected |
Definition at line 396 of file Calibrater.h.
|
protected |
Definition at line 387 of file Calibrater.h.
|
protected |
Definition at line 387 of file Calibrater.h.
|
protected |
Definition at line 366 of file Calibrater.h.
|
protected |
Meta-info server for calibration.
Definition at line 375 of file Calibrater.h.
|
protected |
casacore::Input casacore::MeasurementSet and derived selected MeasurementSet
Definition at line 365 of file Calibrater.h.
|
protected |
casacore::MSSelection object
Definition at line 371 of file Calibrater.h.
|
protected |
Definition at line 367 of file Calibrater.h.
|
protected |
Definition at line 368 of file Calibrater.h.
|
protected |
Spline phase wrapping helper params.
Definition at line 390 of file Calibrater.h.
|
private |
Simulated-data/testing context info.
Definition at line 409 of file Calibrater.h.
|
protected |
Log functions and variables.
Definition at line 322 of file Calibrater.h.
|
protected |
Definition at line 391 of file Calibrater.h.
|
private |
Definition at line 410 of file Calibrater.h.
|
protected |
Definition at line 382 of file Calibrater.h.
|
protected |
Definition at line 331 of file Calibrater.h.
|
protected |
Definition at line 398 of file Calibrater.h.
|
protected |
VisCals for applying and solving:
Definition at line 381 of file Calibrater.h.
|
protected |
VisEquation derived from the input MeasurementSet.
Definition at line 378 of file Calibrater.h.
Referenced by ve().