casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
casa::Calibrater Class Reference

#include <Calibrater.h>

Inheritance diagram for casa::Calibrater:
casa::OldCalibrater

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 > &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) 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 > &parameter, 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::RecordgetActRec ()
 
VisEquationve ()
 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 Calibraterfactory (casacore::Bool old=true)
 Calibrater factories. More...
 
static Calibraterfactory (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::LogIOlogSink ()
 
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::IntgetRefantIdxList (const casacore::String &refant)
 Interpret refant index. More...
 
casacore::Vector< casacore::IntgetAntIdx (const casacore::String &antenna)
 
casacore::Vector< casacore::IntgetFieldIdx (const casacore::String &fields)
 Interpret field indices (casacore::MSSelection) More...
 
casacore::Vector< casacore::IntgetSpwIdx (const casacore::String &spws)
 Interpret spw indices (casacore::MSSelection) More...
 
casacore::Matrix< casacore::IntgetChanIdx (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...
 

Protected Attributes

casacore::LogIO sink_p
 Log functions and variables. More...
 
casacore::Timer timer_p
 
casacore::String msname_p
 casacore::Input casacore::MeasurementSet and derived selected MeasurementSet More...
 
casacore::MeasurementSetms_p
 
casacore::MeasurementSetmssel_p
 
casacore::MeasurementSetmsselRaw_p
 
casacore::MSSelectionmss_p
 casacore::MSSelection object More...
 
std::shared_ptr
< vi::FrequencySelections
frequencySelections_p
 
MSMetaInfoForCalmsmc_p
 Meta-info server for calibration. More...
 
VisEquationve_p
 VisEquation derived from the input MeasurementSet. More...
 
casacore::PtrBlock< VisCal * > vc_p
 VisCals for applying and solving: More...
 
SolvableVisCalsvc_p
 
casacore::String dataMode_p
 casacore::MeasurementSet selection parameters More...
 
casacore::Int dataNchan_p
 
casacore::Int dataStart_p
 
casacore::Int dataStep_p
 
casacore::MRadialVelocity mDataStart_p
 
casacore::MRadialVelocity mDataStep_p
 
casacore::Double phasewrap_p
 Spline phase wrapping helper params. More...
 
casacore::Int splinepoint_p
 
casacore::Int histLockCounter_p
 Used to update the casacore::MS HISTORY Table. More...
 
casacore::MSHistoryHandlerhist_p
 
casacore::Table historytab_p
 
casacore::Bool usingCalLibrary_
 
casacore::Record actRec_
 Activity record. More...
 

Private Member Functions

 Calibrater (const Calibrater &)
 Copy constructor and assignment operator are forbidden. More...
 
Calibrateroperator= (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...
 

Detailed Description

Definition at line 55 of file Calibrater.h.

Constructor & Destructor Documentation

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 casa::Calibrater::~Calibrater ( )
virtual

Destructor.

casa::Calibrater::Calibrater ( const Calibrater )
private

Copy constructor and assignment operator are forbidden.

Member Function Documentation

virtual void casa::Calibrater::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 > &   
)
inlinevirtual

Accumulate (using casacore::MSSelection syntax)

Reimplemented in casa::OldCalibrater.

Definition at line 245 of file Calibrater.h.

casacore::Bool casa::Calibrater::applystate ( )
casacore::Bool casa::Calibrater::calWt ( )
protected

Query apply types to see if we need to calibrate the weights.

casacore::Bool casa::Calibrater::cleanup ( )
protected
virtual casacore::Bool casa::Calibrater::correct ( casacore::String  )
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")
virtual casacore::Bool casa::Calibrater::corrupt ( )
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* casa::Calibrater::factory ( casacore::Bool  old = true)
static

Calibrater factories.

static Calibrater* casa::Calibrater::factory ( casacore::String  msname,
casacore::Bool  old = true 
)
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 void casa::Calibrater::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 
)
virtual

Fluxscale (via field indices)

Reimplemented in casa::OldCalibrater.

virtual casacore::Bool casa::Calibrater::genericGatherAndSolve ( )
protectedvirtual

The standard solving mechanism (VI2/SDB version)

Reimplemented in casa::OldCalibrater.

casacore::Record& casa::Calibrater::getActRec ( )
inline

Definition at line 305 of file Calibrater.h.

References actRec_.

casacore::Vector<casacore::Int> casa::Calibrater::getAntIdx ( const casacore::String antenna)
protected
casacore::Matrix<casacore::Int> casa::Calibrater::getChanIdx ( const casacore::String spws)
protected

Interpret spw indices (casacore::MSSelection)

casacore::Vector<casacore::Int> casa::Calibrater::getFieldIdx ( const casacore::String fields)
protected

Interpret field indices (casacore::MSSelection)

void casa::Calibrater::getRawPhaseVisSet ( casacore::Vector< casacore::Int > &  spwid)
protected

Create a VisSet for raw phase transfer if needed.

casacore::Vector<casacore::Int> casa::Calibrater::getRefantIdxList ( const casacore::String refant)
protected

Interpret refant index.

casacore::Vector<casacore::Int> casa::Calibrater::getSpwIdx ( const casacore::String spws)
protected

Interpret spw indices (casacore::MSSelection)

virtual casacore::Bool casa::Calibrater::initCalSet ( const casacore::Int )
inlinevirtual

Re-initialize the calibration scratch columns.

Reimplemented in casa::OldCalibrater.

Definition at line 298 of file Calibrater.h.

virtual casacore::Bool casa::Calibrater::initialize ( casacore::MeasurementSet inputMS,
casacore::Bool  compress = true,
casacore::Bool  addScratch = true,
casacore::Bool  addModel = true 
)
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 casacore::Bool casa::Calibrater::initWeightsWithTsys ( casacore::String  wtmode,
casacore::Bool  dowtsp = false,
casacore::String  tsystable = "",
casacore::String  gainfield = "",
casacore::String  interp = "linear",
casacore::Vector< casacore::Int spwmap = casacore::Vectorcasacore::Int >() 
)
virtual

Reimplemented in casa::OldCalibrater.

virtual casacore::Bool casa::Calibrater::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 
)
virtual

casacore::List a calibration table

Reimplemented in casa::OldCalibrater.

casacore::LogIO& casa::Calibrater::logSink ( )
protected
virtual casacore::Vector<casacore::Double> casa::Calibrater::modelfit ( const casacore::Int ,
const casacore::String ,
const casacore::Vector< casacore::Double > &  ,
const casacore::Vector< casacore::Bool > &  ,
const casacore::String  
)
inlinevirtual

Modelfit.

Reimplemented in casa::OldCalibrater.

Definition at line 203 of file Calibrater.h.

virtual casacore::Bool casa::Calibrater::ok ( )
virtual

Returns true if calibrator object is in a valid state.

Reimplemented in casa::OldCalibrater.

Calibrater& casa::Calibrater::operator= ( const Calibrater )
private
virtual casacore::Bool casa::Calibrater::reRefant ( const casacore::String infile,
casacore::String outfile,
const casacore::String refantmode,
const casacore::String refant 
)
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.

virtual void casa::Calibrater::selectChannel ( const casacore::String spw)
protectedvirtual

Select on channel using MSSelection.

Reimplemented in casa::OldCalibrater.

virtual void casa::Calibrater::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 = "" 
)
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 casacore::Bool casa::Calibrater::setapply ( const casacore::String type,
const casacore::Record applypar 
)
virtual

Reimplemented in casa::OldCalibrater.

void casa::Calibrater::setCalFilterConfiguration ( casacore::String const &  type,
casacore::Record const &  config 
)
private
virtual casacore::Bool casa::Calibrater::setcallib ( casacore::Record  )
inlinevirtual

Set up apply-able calibration via a Cal Library.

Reimplemented in casa::OldCalibrater.

Definition at line 108 of file Calibrater.h.

virtual casacore::Bool casa::Calibrater::setcallib2 ( casacore::Record  callib,
const casacore::MeasurementSet ms = 0 
)
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::Vectorcasacore::Double >(),
const casacore::Vector< casacore::Double > &  ratewindow = casacore::Vectorcasacore::Double >(),
const casacore::String solmode = "",
const casacore::Vector< casacore::Double > &  rmsthresh = casacore::Vectorcasacore::Double >() 
)

Arrange to solve (using casacore::MSSelection syntax)

virtual casacore::Bool casa::Calibrater::setsolve ( const casacore::String type,
const casacore::Record solvepar 
)
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::Bool casa::Calibrater::smooth ( const casacore::String infile,
casacore::String outfile,
const casacore::String smoothtype,
const casacore::Double smoothtime,
const casacore::String fields 
)
virtual

casacore::Smooth calibration (using casacore::MSSelection syntax

Reimplemented in casa::OldCalibrater.

virtual casacore::Bool casa::Calibrater::solve ( )
virtual

Solve for a given calibration component.

Reimplemented in casa::OldCalibrater.

casacore::Bool casa::Calibrater::solvestate ( )
virtual void casa::Calibrater::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 > &  parameter,
const casacore::String infile,
const casacore::Bool uniform 
)
virtual

Generate cal table from specified values.

Reimplemented in casa::OldCalibrater.

casacore::Bool casa::Calibrater::state ( )

Report apply/solve state.

casacore::Bool casa::Calibrater::summarize_uncalspws ( const casacore::Vector< casacore::Bool > &  uncalspw,
const casacore::String origin,
casacore::Bool  strictflag = false 
)
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.

casacore::String casa::Calibrater::timerString ( )
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 casacore::Bool casa::Calibrater::updateCalTable ( const casacore::String caltable)
static

Handle caltable backward compatibility.

casacore::Bool casa::Calibrater::validatecallib ( casacore::Record  callib)
VisEquation* casa::Calibrater::ve ( )
inline

Return access to the VisEquation.

Definition at line 312 of file Calibrater.h.

References ve_p.

void casa::Calibrater::writeHistory ( casacore::LogIO os,
casacore::Bool  cliCommand = false 
)
protected

Method to update casacore::MS HISTORY Table.

Member Data Documentation

casacore::Record casa::Calibrater::actRec_
protected

Activity record.

Definition at line 401 of file Calibrater.h.

Referenced by getActRec().

casacore::Record casa::Calibrater::calFilterConfig_p
private

configuration for calibration dependent data filter

Definition at line 413 of file Calibrater.h.

casacore::String casa::Calibrater::dataMode_p
protected

casacore::MeasurementSet selection parameters

Definition at line 385 of file Calibrater.h.

casacore::Int casa::Calibrater::dataNchan_p
protected

Definition at line 386 of file Calibrater.h.

casacore::Int casa::Calibrater::dataStart_p
protected

Definition at line 386 of file Calibrater.h.

casacore::Int casa::Calibrater::dataStep_p
protected

Definition at line 386 of file Calibrater.h.

std::shared_ptr<vi::FrequencySelections> casa::Calibrater::frequencySelections_p
protected

Definition at line 372 of file Calibrater.h.

casacore::MSHistoryHandler* casa::Calibrater::hist_p
protected

Definition at line 395 of file Calibrater.h.

casacore::Int casa::Calibrater::histLockCounter_p
protected

Used to update the casacore::MS HISTORY Table.

Definition at line 394 of file Calibrater.h.

casacore::Table casa::Calibrater::historytab_p
protected

Definition at line 396 of file Calibrater.h.

casacore::MRadialVelocity casa::Calibrater::mDataStart_p
protected

Definition at line 387 of file Calibrater.h.

casacore::MRadialVelocity casa::Calibrater::mDataStep_p
protected

Definition at line 387 of file Calibrater.h.

casacore::MeasurementSet* casa::Calibrater::ms_p
protected

Definition at line 366 of file Calibrater.h.

MSMetaInfoForCal* casa::Calibrater::msmc_p
protected

Meta-info server for calibration.

Definition at line 375 of file Calibrater.h.

casacore::String casa::Calibrater::msname_p
protected

casacore::Input casacore::MeasurementSet and derived selected MeasurementSet

Definition at line 365 of file Calibrater.h.

casacore::MSSelection* casa::Calibrater::mss_p
protected

casacore::MSSelection object

Definition at line 371 of file Calibrater.h.

casacore::MeasurementSet* casa::Calibrater::mssel_p
protected

Definition at line 367 of file Calibrater.h.

casacore::MeasurementSet* casa::Calibrater::msselRaw_p
protected

Definition at line 368 of file Calibrater.h.

casacore::Double casa::Calibrater::phasewrap_p
protected

Spline phase wrapping helper params.

Definition at line 390 of file Calibrater.h.

const bool casa::Calibrater::simdata_p
private

Simulated-data/testing context info.

Definition at line 409 of file Calibrater.h.

casacore::LogIO casa::Calibrater::sink_p
protected

Log functions and variables.

Definition at line 322 of file Calibrater.h.

casacore::Int casa::Calibrater::splinepoint_p
protected

Definition at line 391 of file Calibrater.h.

const vi::SimpleSimVi2Parameters casa::Calibrater::ssvp_p
private

Definition at line 410 of file Calibrater.h.

SolvableVisCal* casa::Calibrater::svc_p
protected

Definition at line 382 of file Calibrater.h.

casacore::Timer casa::Calibrater::timer_p
protected

Definition at line 331 of file Calibrater.h.

casacore::Bool casa::Calibrater::usingCalLibrary_
protected

Definition at line 398 of file Calibrater.h.

casacore::PtrBlock<VisCal*> casa::Calibrater::vc_p
protected

VisCals for applying and solving:

Definition at line 381 of file Calibrater.h.

VisEquation* casa::Calibrater::ve_p
protected

VisEquation derived from the input MeasurementSet.

Definition at line 378 of file Calibrater.h.

Referenced by ve().


The documentation for this class was generated from the following file: