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

Preserve old-fashioned Calibrater here: More...

#include <Calibrater.h>

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

Public Member Functions

 OldCalibrater ()
 Default constructor. More...
 
 OldCalibrater (casacore::String msname)
 Simple casacore::MS-only ctor. More...
 
virtual ~OldCalibrater ()
 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...
 
virtual casacore::Bool setapply (const casacore::String &type, const casacore::Record &applypar)
 
virtual casacore::Bool setcallib (casacore::Record callib)
 Set up apply-able calibration via a Cal Library. More...
 
virtual casacore::Bool setcallib2 (casacore::Record callib, const casacore::MeasurementSet *ms=0)
 
virtual casacore::Bool setsolve (const casacore::String &type, const casacore::Record &solvepar)
 Uses *vs_p to ctor the SolvableVisCal. More...
 
virtual casacore::Bool correct (casacore::String mode="calflag")
 Apply all setapply'd calibration components to DATA and deposit in the CORRECTED_DATA column. More...
 
virtual casacore::Bool corrupt ()
 Apply all setapply'd calibration components to MODEL_DATA and deposit in the MODEL_DATA column. More...
 
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 >())
 Initialize sigma/weight, and possibly weight_spectrum Tsys-specific version (SD) More...
 
virtual casacore::Bool solve ()
 Solve for a given calibration component. More...
 
virtual casacore::Vector
< casacore::Double
modelfit (const casacore::Int &iter, const casacore::String &stype, const casacore::Vector< casacore::Double > &par, const casacore::Vector< casacore::Bool > &vary, const casacore::String &file)
 Modelfit. 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) NB: uses *vs_p to make SVCs. More...
 
virtual void accumulate (const casacore::String &intab, const casacore::String &incrtab, const casacore::String &outtab, const casacore::String &fields, const casacore::String &calFields, const casacore::String &interp="linear", const casacore::Double &t=-1.0, const casacore::Vector< casacore::Int > &spwmap=casacore::Vector< casacore::Int >(1,-1))
 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 NB: creates VCs with *vs_p. 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 NB: uses *vs_p to create SVC 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 &calSet)
 Re-initialize the calibration scratch columns. More...
 
casacore::Bool cleanupVisSet ()
 
- Public Member Functions inherited from casa::Calibrater
 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...
 
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...
 
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...
 
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...
 
casacore::Bool correct2 (casacore::String mode="calflag")
 
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)
 
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 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...
 
casacore::Bool state ()
 Report apply/solve state. More...
 
casacore::Bool applystate ()
 
casacore::Bool solvestate ()
 
casacore::RecordgetActRec ()
 
VisEquationve ()
 Return access to the VisEquation. More...
 

Protected Member Functions

virtual
VisibilityIterator::DataColumn 
configureForCorrection ()
 Organize sort columns for correction. More...
 
virtual void selectChannel (const casacore::String &spw)
 Select on channel using MSSelection. More...
 
virtual void initChanMask ()
 Channel mask services. More...
 
virtual void selectChannel (const casacore::String &mode, const casacore::Int &nchan, const casacore::Int &start, const casacore::Int &step, const casacore::MRadialVelocity &mStart, const casacore::MRadialVelocity &mStep)
 Select on channel in the VisSet. More...
 
virtual casacore::Bool ok ()
 Returns true if calibrator object is in a valid state. More...
 
virtual casacore::Bool genericGatherAndSolve ()
 The standard solving mechanism. More...
 
- Protected Member Functions inherited from casa::Calibrater
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...
 
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...
 

Protected Attributes

VisSetvs_p
 VisSet that hosts an old VI. More...
 
VisSetrawvs_p
 
casacore::PtrBlock
< casacore::Vector
< casacore::Bool > * > 
chanmask_
 channel masking More...
 
- Protected Attributes inherited from casa::Calibrater
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

 OldCalibrater (const OldCalibrater &)
 Copy constructor and assignment operator are forbidden. More...
 
OldCalibrateroperator= (const OldCalibrater &)
 

Additional Inherited Members

- Static Public Member Functions inherited from casa::Calibrater
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...
 

Detailed Description

Preserve old-fashioned Calibrater here:

Definition at line 421 of file Calibrater.h.

Constructor & Destructor Documentation

casa::OldCalibrater::OldCalibrater ( )

Default constructor.

casa::OldCalibrater::OldCalibrater ( casacore::String  msname)

Simple casacore::MS-only ctor.

virtual casa::OldCalibrater::~OldCalibrater ( )
virtual

Destructor.

casa::OldCalibrater::OldCalibrater ( const OldCalibrater )
private

Copy constructor and assignment operator are forbidden.

Member Function Documentation

virtual void casa::OldCalibrater::accumulate ( const casacore::String intab,
const casacore::String incrtab,
const casacore::String outtab,
const casacore::String fields,
const casacore::String calFields,
const casacore::String interp = "linear",
const casacore::Double t = -1.0,
const casacore::Vector< casacore::Int > &  spwmap = casacore::Vectorcasacore::Int >(1,-1) 
)
virtual

Accumulate (using casacore::MSSelection syntax)

Reimplemented from casa::Calibrater.

casacore::Bool casa::OldCalibrater::cleanupVisSet ( )
virtual VisibilityIterator::DataColumn casa::OldCalibrater::configureForCorrection ( )
protectedvirtual

Organize sort columns for correction.

virtual casacore::Bool casa::OldCalibrater::correct ( casacore::String  mode = "calflag")
virtual

Apply all setapply'd calibration components to DATA and deposit in the CORRECTED_DATA column.

Reimplemented from casa::Calibrater.

virtual casacore::Bool casa::OldCalibrater::corrupt ( )
virtual

Apply all setapply'd calibration components to MODEL_DATA and deposit in the MODEL_DATA column.

Reimplemented from casa::Calibrater.

virtual void casa::OldCalibrater::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) NB: uses *vs_p to make SVCs.

Reimplemented from casa::Calibrater.

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

The standard solving mechanism.

Reimplemented from casa::Calibrater.

virtual casacore::Bool casa::OldCalibrater::initCalSet ( const casacore::Int calSet)
virtual

Re-initialize the calibration scratch columns.

Reimplemented from casa::Calibrater.

virtual void casa::OldCalibrater::initChanMask ( )
protectedvirtual

Channel mask services.

virtual casacore::Bool casa::OldCalibrater::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 from casa::Calibrater.

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

Initialize sigma/weight, and possibly weight_spectrum Tsys-specific version (SD)

Reimplemented from casa::Calibrater.

virtual casacore::Bool casa::OldCalibrater::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 from casa::Calibrater.

virtual casacore::Vector<casacore::Double> casa::OldCalibrater::modelfit ( const casacore::Int iter,
const casacore::String stype,
const casacore::Vector< casacore::Double > &  par,
const casacore::Vector< casacore::Bool > &  vary,
const casacore::String file 
)
virtual

Modelfit.

Reimplemented from casa::Calibrater.

virtual casacore::Bool casa::OldCalibrater::ok ( )
protectedvirtual

Returns true if calibrator object is in a valid state.

Reimplemented from casa::Calibrater.

OldCalibrater& casa::OldCalibrater::operator= ( const OldCalibrater )
private
virtual void casa::OldCalibrater::selectChannel ( const casacore::String spw)
protectedvirtual

Select on channel using MSSelection.

Reimplemented from casa::Calibrater.

virtual void casa::OldCalibrater::selectChannel ( const casacore::String mode,
const casacore::Int nchan,
const casacore::Int start,
const casacore::Int step,
const casacore::MRadialVelocity mStart,
const casacore::MRadialVelocity mStep 
)
protectedvirtual

Select on channel in the VisSet.

virtual void casa::OldCalibrater::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 from casa::Calibrater.

virtual casacore::Bool casa::OldCalibrater::setapply ( const casacore::String type,
const casacore::Record applypar 
)
virtual

Reimplemented from casa::Calibrater.

virtual casacore::Bool casa::OldCalibrater::setcallib ( casacore::Record  callib)
virtual

Set up apply-able calibration via a Cal Library.

Reimplemented from casa::Calibrater.

virtual casacore::Bool casa::OldCalibrater::setcallib2 ( casacore::Record  callib,
const casacore::MeasurementSet ms = 0 
)
virtual

Reimplemented from casa::Calibrater.

virtual casacore::Bool casa::OldCalibrater::setsolve ( const casacore::String type,
const casacore::Record solvepar 
)
virtual

Uses *vs_p to ctor the SolvableVisCal.

Reimplemented from casa::Calibrater.

virtual casacore::Bool casa::OldCalibrater::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 NB: uses *vs_p to create SVC

Reimplemented from casa::Calibrater.

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

Solve for a given calibration component.

Reimplemented from casa::Calibrater.

virtual void casa::OldCalibrater::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 NB: creates VCs with *vs_p.

Reimplemented from casa::Calibrater.

Member Data Documentation

casacore::PtrBlock<casacore::Vector<casacore::Bool>*> casa::OldCalibrater::chanmask_
protected

channel masking

Definition at line 594 of file Calibrater.h.

VisSet* casa::OldCalibrater::rawvs_p
protected

Definition at line 591 of file Calibrater.h.

VisSet* casa::OldCalibrater::vs_p
protected

VisSet that hosts an old VI.

Definition at line 590 of file Calibrater.h.


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