casa
$Rev:20696$
|
#include <VisSet.h>
Public Member Functions | |
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, Bool doModelData=True) | |
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. | |
VisSet (MeasurementSet &ms, const Block< Int > &columns, const Matrix< Int > &chanSelection, Bool addScratch, Double timeInterval=0, Bool compress=False, Bool doModelData=True) | |
Same as above, but provide scratch column option. | |
VisSet (Block< MeasurementSet > &mss, const Block< Int > &columns, const Block< Matrix< Int > > &chanSelections, Bool addStratch=False, Double timeInterval=0, Bool compress=False, Bool doModelData=True) | |
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. | |
VisSet (ROVisibilityIterator &vi) | |
Constructor from visibility iterator ....a temporary fix as EPJones as Imager stops using VisSet. | |
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, asyncio::PrefetchColumns *prefetchColumns=NULL) |
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. | |
void | selectChannel (Int nGroup, Int start, Int width, Int increment, Int spectralWindow, Bool callOrigin) |
call to VisIter origin optional: | |
void | selectChannel (const Matrix< Int > &chansel) |
Collective selection via MSSelection channel selection Matrix. | |
void | selectAllChans () |
Set nominal selection to ALL channels. | |
Int | numberAnt () |
number of antennas | |
Int | numberFld () |
number of fields | |
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. | |
String | sysCalTableName () |
SYSCAL table name of the associated MS. | |
String | spectralWindowTableName () |
SPECTRAL_WINDOW table name of the associated MS. | |
String | fieldTableName () |
FIELD table name of the associated MS. | |
String | syspowerTableName () |
SYSPOWER table name of the associated MS. | |
String | caldeviceTableName () |
CALDEVICE table name of the associated MS. | |
Private Member Functions | |
void | addScratchCols (MeasurementSet &ms, Bool compress=False, Bool doModelData=True) |
Add the scratch columns. | |
void | addCalSet (MeasurementSet &ms, Bool compress=True, Bool doModelData=True) |
Add a calibration set (comprising a set of CORRECTED_DATA and MODEL_DATA) to the MeasurementSet (MS). | |
void | addCalSet2 (MeasurementSet &ms, Bool compress=False, Bool doModelData=True) |
Private Attributes | |
MeasurementSet | ms_p |
VisIter * | iter_p |
Matrix< Int > | selection_p |
Block< MeasurementSet > * | blockOfMS_p |
Bool | multims_p |
casa::VisSet::VisSet | ( | ) | [inline] |
casa::VisSet::VisSet | ( | MeasurementSet & | ms, |
const Block< Int > & | columns, | ||
const Matrix< Int > & | chanSelection, | ||
Double | timeInterval = 0 , |
||
Bool | compress = False , |
||
Bool | doModelData = True |
||
) |
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 two new columns: MODEL_DATA and CORRECTED_DATA 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.
casa::VisSet::VisSet | ( | MeasurementSet & | ms, |
const Block< Int > & | columns, | ||
const Matrix< Int > & | chanSelection, | ||
Bool | addScratch, | ||
Double | timeInterval = 0 , |
||
Bool | compress = False , |
||
Bool | doModelData = True |
||
) |
Same as above, but provide scratch column option.
casa::VisSet::VisSet | ( | Block< MeasurementSet > & | mss, |
const Block< Int > & | columns, | ||
const Block< Matrix< Int > > & | chanSelections, | ||
Bool | addStratch = False , |
||
Double | timeInterval = 0 , |
||
Bool | compress = False , |
||
Bool | doModelData = True |
||
) |
This is a constructor for multiple MS...but everything is same as the one above.
casa::VisSet::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.
casa::VisSet::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.
Destructor, flushes the data to disk.
void casa::VisSet::addCalSet | ( | MeasurementSet & | ms, |
Bool | compress = True , |
||
Bool | doModelData = True |
||
) | [private] |
Add a calibration set (comprising a set of CORRECTED_DATA and MODEL_DATA) to the MeasurementSet (MS).
Optionally compress these columns using the CompressComplex column engine.
void casa::VisSet::addCalSet2 | ( | MeasurementSet & | ms, |
Bool | compress = False , |
||
Bool | doModelData = True |
||
) | [private] |
void casa::VisSet::addScratchCols | ( | MeasurementSet & | ms, |
Bool | compress = False , |
||
Bool | doModelData = True |
||
) | [private] |
Add the scratch columns.
CALDEVICE table name of the associated MS.
FIELD table name of the associated MS.
void casa::VisSet::flush | ( | ) |
Flushes the data to disk.
void casa::VisSet::initCalSet | ( | Int | calSet = 0 | ) |
Initializes scratch columns.
Iterator access to the data.
void casa::VisSet::lock | ( | ) | [inline] |
Lock and unlock the associated MS.
Definition at line 211 of file VisSet.h.
References casa::Table::lock(), and ms_p.
Return the associated MS name.
number of antennas
Vector<Int> casa::VisSet::numberChan | ( | ) | const |
number of channels in each spectral window
Int casa::VisSet::numberCoh | ( | ) | const |
number of coherences
number of fields
number of spectral windows
void casa::VisSet::resetVisIter | ( | const Block< Int > & | columns, |
Double | timeInterval = 0 , |
||
asyncio::PrefetchColumns * | prefetchColumns = NULL |
||
) |
Re-initialize the VisibilityIterator (cf copy ctor)
void casa::VisSet::selectAllChans | ( | ) |
Set nominal selection to ALL channels.
void casa::VisSet::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.
void casa::VisSet::selectChannel | ( | Int | nGroup, |
Int | start, | ||
Int | width, | ||
Int | increment, | ||
Int | spectralWindow, | ||
Bool | callOrigin | ||
) |
call to VisIter origin optional:
void casa::VisSet::selectChannel | ( | const Matrix< Int > & | chansel | ) |
Collective selection via MSSelection channel selection Matrix.
SPECTRAL_WINDOW table name of the associated MS.
Vector<Int> casa::VisSet::startChan | ( | ) | const |
start channel of VisSet selection in each spectral window
SYSCAL table name of the associated MS.
SYSPOWER table name of the associated MS.
void casa::VisSet::unlock | ( | ) | [inline] |
Definition at line 212 of file VisSet.h.
References ms_p, and casa::Table::unlock().
Block<MeasurementSet>* casa::VisSet::blockOfMS_p [private] |
VisIter* casa::VisSet::iter_p [private] |
MeasurementSet casa::VisSet::ms_p [private] |
Bool casa::VisSet::multims_p [private] |
Matrix<Int> casa::VisSet::selection_p [private] |