VisSet.h

Classes

VisSet -- (full description)

class VisSet

Interface

Public Members
VisSet()
VisSet(MeasurementSet & ms, const Block<Int>& columns, const Matrix<Int>& chanSelection, Double timeInterval=0, Bool compress=False)
VisSet(Block<MeasurementSet>& mss, const Block<Int>& columns, const Block< Matrix<Int> >& chanSelections, Double timeInterval=0, Bool compress=False)
VisSet(MeasurementSet & ms, const Matrix<Int>& chanSelection, Double timeInterval=0)
VisSet(const VisSet & vs, const Block<Int>& columns, Double timeInterval=0)
~VisSet()
VisSet& operator=(const VisSet& other)
void resetVisIter(const Block<Int>& columns, Double timeInterval=0)
void initCalSet(Int calSet=0)
void flush()
VisIter& iter()
void selectChannel(Int nGroup,Int start, Int width, Int increment, Int spectralWindow)
Int numberAnt()
Int numberSpw()
Vector<Int> numberChan() const
Vector<Int> startChan() const
Int numberCoh() const
void lock()
void unlock()
String msName()
Private Members
void addScratchCols(MeasurementSet& ms, Bool compress=False)
void addCalSet(MeasurementSet& ms, Bool compress=True)
void removeCalSet(MeasurementSet& ms)

Description

Member Description

VisSet()

default constructor, only useful to assign to later.

VisSet(MeasurementSet & ms, const Block<Int>& columns, const Matrix<Int>& chanSelection, Double timeInterval=0, Bool compress=False)

Construct from a MeasurementSet, with iteration order specified in columns (giving the MS enum for the column) Specify channel selection as a Matrix(3,nSpw) where for each spectral window the three values are start,nChannel and spectral window number. Spectral windows without an entry will have all channels selected. Specify a time interval for iterating in 'chunks' of time. The default time interval of 0 groups all times together. This constructor creates three new columns: MODEL_DATA and CORRECTED_DATA and IMAGING_WEIGHT If they already exist and have the same channel selection applied, they are reused. Note that the contents of these columns are NOT initialized, you should fill them before trying to read the data. The MS calibration scratch columns can be optionally compressed.

VisSet(Block<MeasurementSet>& mss, const Block<Int>& columns, const Block< Matrix<Int> >& chanSelections, Double timeInterval=0, Bool compress=False)

This is a constructor for multiple MS...but everything is same as the one above

VisSet(MeasurementSet & ms, const Matrix<Int>& chanSelection, Double timeInterval=0)

This is a no frills constructor, no re-sorting, the default order is used, no scratch columns is made even if they don't exist. So if you use this constructor and plan to use the scratch columns make sure that they exist prior to constructing the VisSet this way.

VisSet(const VisSet & vs, const Block<Int>& columns, Double timeInterval=0)

Construct from an existing VisSet, this references the underlying MeasurementSet(s) but allows a new iteration order and time interval to be specified.

~VisSet()

Destructor, flushes the data to disk

VisSet& operator=(const VisSet& other)

referencing assignment operator

void resetVisIter(const Block<Int>& columns, Double timeInterval=0)

Re-initialize the VisibilityIterator (cf copy ctor)

void initCalSet(Int calSet=0)

Initializes scratch columns

void flush()

Flushes the data to disk

VisIter& iter()

Iterator access to the data

void selectChannel(Int nGroup,Int start, Int width, Int increment, Int spectralWindow)

Reset the channel selection. Only subsets of the original selection (set in constructor) can be specified. Note: this calls origin on the iterator.

Int numberAnt()

number of antennas

Int numberSpw()

number of spectral windows

Vector<Int> numberChan() const

number of channels in each spectral window

Vector<Int> startChan() const

start channel of VisSet selection in each spectral window

Int numberCoh() const

number of coherences

void lock()

Lock and unlock the associated MS

void unlock()

String msName()

Return the associated MS name

void addScratchCols(MeasurementSet& ms, Bool compress=False)

Add the scratch columns

void addCalSet(MeasurementSet& ms, Bool compress=True)

Add a calibration set (comprising a set of CORRECTED_DATA, MODEL_DATA and IMAGING_WEIGHT columns) to the MeasurementSet (MS). Optionally compress these columns using the CompressComplex column engine.

void removeCalSet(MeasurementSet& ms)

Remove an existing cal set (a CORRECTED_DATA, MODEL_DATA and IMAGING_WEIGHT column set and, optionally, any associated compression columns)