casa
$Rev:20696$
|
#include <PlotCalCache.h>
Public Member Functions | |
PlotCalCache (PlotMSApp *parent) | |
Constructor which takes parent PlotMS. | |
virtual | ~PlotCalCache () |
Destructor. | |
PlotMSCache::Type | cacheType () |
Identify myself. | |
virtual void | load (const vector< PMS::Axis > &axes, const vector< PMS::DataColumn > &data, const String &filename, const PlotMSSelection &selection, const PlotMSAveraging &averaging, const PlotMSTransformations &transformations, PlotMSCacheThread *thread=NULL) |
Loads the cache for the given axes and data columns. | |
virtual void | flagToDisk (const PlotMSFlagging &flagging, Vector< Int > &chunks, Vector< Int > &relids, Bool flag) |
Set flags in the Cal table. | |
Private Member Functions | |
PlotCalCache (const PlotCalCache &mc) | |
Forbid copy for now. | |
void | openCal (const String &msname, const PlotMSSelection &selection, Bool readonly=True) |
Manage the cal table. | |
void | closeCal () |
void | selectCal (const PlotMSSelection &selection) |
Select on the caltable (via MSSelection semantics) | |
void | countCalChunks () |
Count the chunks required in the cache. | |
void | loadCalChunks (const vector< PMS::Axis > loadAxes, const vector< PMS::DataColumn > loadData, PlotMSCacheThread *thread) |
Iterate over selected cal table, filling the cache. | |
void | reportMeta (Double x, Double y, stringstream &ss) |
Issue meta info report to the given stringstream. | |
void | loadCalAxis (Table &tab, Int vbnum, PMS::Axis axis) |
Loads the specific axis/metadata into the cache using the given VisBuffer. | |
Vector< Int > | getAntIdx (const String &antenna) |
Support MS-oriented selection. | |
Vector< Int > | getFieldIdx (const String &field) |
Vector< Int > | getSpwIdx (const String &spw) |
Vector< Int > | getCalDescIds (const Vector< Int > selspws) |
Matrix< Double > | getTimeRange (const String &time) |
void | getFrequencyInfo () |
Manage freq info we get from the MS. | |
void | deleteFreqInfo () |
Private Attributes | |
String | calname_ |
Private data. | |
String | msname_ |
A copy of the Data parameters. | |
Int | nCDI_ |
Spw index, nchan, startchan for each CAL_DESC_ID index. | |
Vector< Int > | cdi_ |
Vector< Int > | spwFromCDI_ |
Vector< Int > | nchanFromCDI_ |
Vector< Int > | startFromCDI_ |
PtrBlock< Vector< Double > * > | freqFromCDI_ |
Table * | tab_p |
Transient Table objects used when loading/flagging. | |
Table * | seltab_p |
TableIterator * | iter_p |
Friends | |
class | PlotMSData |
Friend class declarations. |
Definition at line 48 of file PlotCalCache.h.
casa::PlotCalCache::PlotCalCache | ( | PlotMSApp * | parent | ) |
Constructor which takes parent PlotMS.
virtual casa::PlotCalCache::~PlotCalCache | ( | ) | [virtual] |
Destructor.
casa::PlotCalCache::PlotCalCache | ( | const PlotCalCache & | mc | ) | [private] |
Forbid copy for now.
PlotMSCache::Type casa::PlotCalCache::cacheType | ( | ) | [inline] |
Identify myself.
Reimplemented from casa::PlotMSCache.
Definition at line 62 of file PlotCalCache.h.
References casa::PlotMSCache::CAL.
void casa::PlotCalCache::closeCal | ( | ) | [private] |
void casa::PlotCalCache::countCalChunks | ( | ) | [private] |
Count the chunks required in the cache.
void casa::PlotCalCache::deleteFreqInfo | ( | ) | [private] |
virtual void casa::PlotCalCache::flagToDisk | ( | const PlotMSFlagging & | flagging, |
Vector< Int > & | chunks, | ||
Vector< Int > & | relids, | ||
Bool | flag | ||
) | [virtual] |
Set flags in the Cal table.
Reimplemented from casa::PlotMSCache.
Support MS-oriented selection.
void casa::PlotCalCache::getFrequencyInfo | ( | ) | [private] |
Manage freq info we get from the MS.
virtual void casa::PlotCalCache::load | ( | const vector< PMS::Axis > & | axes, |
const vector< PMS::DataColumn > & | data, | ||
const String & | filename, | ||
const PlotMSSelection & | selection, | ||
const PlotMSAveraging & | averaging, | ||
const PlotMSTransformations & | transformations, | ||
PlotMSCacheThread * | thread = NULL |
||
) | [virtual] |
Loads the cache for the given axes and data columns.
IMPORTANT: this method assumes that any currently loaded data is valid for the given VisIter; i.e., if the meta-information or either of the axes are already loaded, then they don't need to be reloaded. If this is not the case, then clear() should be called BEFORE append(). If a PlotMSCacheThreadHelper object is given, it will be used to report progress information.
Reimplemented from casa::PlotMSCache.
Loads the specific axis/metadata into the cache using the given VisBuffer.
void casa::PlotCalCache::loadCalChunks | ( | const vector< PMS::Axis > | loadAxes, |
const vector< PMS::DataColumn > | loadData, | ||
PlotMSCacheThread * | thread | ||
) | [private] |
Iterate over selected cal table, filling the cache.
void casa::PlotCalCache::openCal | ( | const String & | msname, |
const PlotMSSelection & | selection, | ||
Bool | readonly = True |
||
) | [private] |
Manage the cal table.
Issue meta info report to the given stringstream.
Reimplemented from casa::PlotMSCache.
void casa::PlotCalCache::selectCal | ( | const PlotMSSelection & | selection | ) | [private] |
Select on the caltable (via MSSelection semantics)
friend class PlotMSData [friend] |
Friend class declarations.
Reimplemented from casa::PlotMSCache.
Definition at line 51 of file PlotCalCache.h.
String casa::PlotCalCache::calname_ [private] |
Private data.
The name of the caltable, associated MS
Definition at line 130 of file PlotCalCache.h.
Vector<Int> casa::PlotCalCache::cdi_ [private] |
Definition at line 134 of file PlotCalCache.h.
PtrBlock<Vector<Double>*> casa::PlotCalCache::freqFromCDI_ [private] |
Definition at line 139 of file PlotCalCache.h.
TableIterator* casa::PlotCalCache::iter_p [private] |
Definition at line 143 of file PlotCalCache.h.
String casa::PlotCalCache::msname_ [private] |
A copy of the Data parameters.
Reimplemented from casa::PlotMSCache.
Definition at line 130 of file PlotCalCache.h.
Int casa::PlotCalCache::nCDI_ [private] |
Spw index, nchan, startchan for each CAL_DESC_ID index.
Definition at line 133 of file PlotCalCache.h.
Vector<Int> casa::PlotCalCache::nchanFromCDI_ [private] |
Definition at line 136 of file PlotCalCache.h.
Table * casa::PlotCalCache::seltab_p [private] |
Definition at line 142 of file PlotCalCache.h.
Vector<Int> casa::PlotCalCache::spwFromCDI_ [private] |
Definition at line 135 of file PlotCalCache.h.
Vector<Int> casa::PlotCalCache::startFromCDI_ [private] |
Definition at line 137 of file PlotCalCache.h.
Table* casa::PlotCalCache::tab_p [private] |
Transient Table objects used when loading/flagging.
Definition at line 142 of file PlotCalCache.h.