casa::VBGContinuumSubtractor Class Reference

VBGContinuumSubtractors subtract the continuum out of VisBuffGroups. More...

#include <VBGContinuumSubtractor.h>

Inheritance diagram for casa::VBGContinuumSubtractor:
casa::GroupWriteToNewMS casa::GroupWorkerBase

List of all members.

Public Member Functions

 VBGContinuumSubtractor (MeasurementSet &outms, MSColumns *msc, const VBRemapper &remapper, const ROVisibilityIterator &invi, const uInt fitorder=1, const MS::PredefinedColumns datacols=MS::DATA, const String &fitspw="*", const String &outspw="*")
 Construct an object that will write to outms after subtracting a continuum estimated by fitting a polynomial of order fitorder.
Copy construct VBGContinuumSubtractor (const VBGContinuumSubtractor &other)
Destructor *virtual ~VBGContinuumSubtractor ()
virtual Assignment
VBGContinuumSubtractor
operator= (const VBGContinuumSubtractor &gw)
virtual asyncio::PrefetchColumnsprefetchColumns () const
This is where all the work
gets done *virtual Bool 
process (VisBuffGroup &vbg)
 This is where all the work gets done!
void setTVIDebug (Bool debug)
void setWantCont (Bool want_cont)

Private Member Functions

 VBGContinuumSubtractor ()
 Disable null c'tor.

Private Attributes

uInt fitorder_p
 Initialized by c'tor:.
MS::PredefinedColumns datacol_p
 Which of DATA, MODEL_DATA, or CORRECTED_DATA to fit.
String fitspw_p
String outspw_p
uInt rowsdone_p
std::set< Int > outspws_p
Bool doWS_p
Bool doFC_p
Cube< Complex > coeffs_p
 Not initialized by c'tor:.
Cube< Bool > coeffsOK_p
 order, hash(ant1, ant2).
std::set< Int > appliedSpWs_p
 order, hash(ant1, ant2).
std::map< Int, Vector< Bool > * > fitmask_p
Bool tvi_debug
Bool want_cont_p

Detailed Description

VBGContinuumSubtractors subtract the continuum out of VisBuffGroups.

Intended use:

Public interface

Prerequisite

Etymology

VBGContinuumSubtractors subtract the continuum out of VisBuffGroups.

Synopsis

This estimates the continuum by fitting a low order polynomial in frequency for each baseline in a VisBuffGroup, and then writes those visibilities, with the continuum subtracted, to a different MS. The VisBuffers in the VisBuffGroup do not all have to have the same spw, set of baselines, or even set of correlations, but output visibilities for which the continuum cannot be estimated will be flagged.

To Do

Definition at line 73 of file VBGContinuumSubtractor.h.


Constructor & Destructor Documentation

casa::VBGContinuumSubtractor::VBGContinuumSubtractor ( MeasurementSet &  outms,
MSColumns *  msc,
const VBRemapper remapper,
const ROVisibilityIterator invi,
const uInt  fitorder = 1,
const MS::PredefinedColumns  datacols = MS::DATA,
const String &  fitspw = "*",
const String &  outspw = "*" 
)

Construct an object that will write to outms after subtracting a continuum estimated by fitting a polynomial of order fitorder.

It will always _write_ to DATA if datacols.nelements() == 1, and write to all 3 otherwise. Thus datacols.nelements() should be either 1 or 3. Anything else will result in an AipsError. 4 and 2 are right out, and FLOAT_DATA isn't handled by this yet.

invi is the input VisibilityIterator, only used directly here to get the sort columns and whether or not WEIGHT_SPECTRUM and/or FLAG_CATEGORY are present.

Copy construct casa::VBGContinuumSubtractor::VBGContinuumSubtractor ( const VBGContinuumSubtractor other  )  [inline]

Definition at line 97 of file VBGContinuumSubtractor.h.

Destructor* virtual casa::VBGContinuumSubtractor::~VBGContinuumSubtractor (  )  [virtual]
casa::VBGContinuumSubtractor::VBGContinuumSubtractor (  )  [private]

Disable null c'tor.


Member Function Documentation

virtual Assignment VBGContinuumSubtractor& casa::VBGContinuumSubtractor::operator= ( const VBGContinuumSubtractor gw  )  [inline, virtual]

Reimplemented from casa::GroupWorkerBase.

Definition at line 103 of file VBGContinuumSubtractor.h.

virtual asyncio::PrefetchColumns* casa::VBGContinuumSubtractor::prefetchColumns (  )  const [virtual]

Reimplemented from casa::GroupWorkerBase.

This is where all the work gets done* virtual Bool casa::VBGContinuumSubtractor::process ( VisBuffGroup vbg  )  [virtual]

This is where all the work gets done!

Implements casa::GroupWorkerBase.

void casa::VBGContinuumSubtractor::setTVIDebug ( Bool  debug  )  [inline]

Definition at line 111 of file VBGContinuumSubtractor.h.

References tvi_debug.

void casa::VBGContinuumSubtractor::setWantCont ( Bool  want_cont  )  [inline]

Definition at line 112 of file VBGContinuumSubtractor.h.

References want_cont_p.


Member Data Documentation

order, hash(ant1, ant2).

Definition at line 146 of file VBGContinuumSubtractor.h.

Cube<Complex> casa::VBGContinuumSubtractor::coeffs_p [private]

Not initialized by c'tor:.

These cubes could be made local to process(), but I want to avoid repeated c'ting and d'ting.

Definition at line 141 of file VBGContinuumSubtractor.h.

order, hash(ant1, ant2).

Definition at line 143 of file VBGContinuumSubtractor.h.

MS::PredefinedColumns casa::VBGContinuumSubtractor::datacol_p [private]

Which of DATA, MODEL_DATA, or CORRECTED_DATA to fit.

It will always _write_ to DATA if datacols_p.nelements() == 1, and write to all 3 otherwise. Thus datacols_p.nelements() should be either 1 or 3. 4 and 2 are right out, and FLOAT_DATA isn't handled by this yet.

Definition at line 127 of file VBGContinuumSubtractor.h.

Definition at line 135 of file VBGContinuumSubtractor.h.

Definition at line 134 of file VBGContinuumSubtractor.h.

std::map<Int, Vector<Bool>*> casa::VBGContinuumSubtractor::fitmask_p [private]

Definition at line 148 of file VBGContinuumSubtractor.h.

Initialized by c'tor:.

Order of the fit polynomials.

Definition at line 121 of file VBGContinuumSubtractor.h.

Definition at line 129 of file VBGContinuumSubtractor.h.

Definition at line 130 of file VBGContinuumSubtractor.h.

std::set<Int> casa::VBGContinuumSubtractor::outspws_p [private]

Definition at line 132 of file VBGContinuumSubtractor.h.

Reimplemented from casa::GroupWriteToNewMS.

Definition at line 131 of file VBGContinuumSubtractor.h.

Definition at line 150 of file VBGContinuumSubtractor.h.

Referenced by setTVIDebug().

Definition at line 151 of file VBGContinuumSubtractor.h.

Referenced by setWantCont().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1