casa
$Rev:20696$
|
#include <PlotMSCacheBase.h>
Public Types | |
enum | Type { MS, CAL } |
TBD: friend class PlotMSData;. More... | |
Public Member Functions | |
PlotMSCacheBase (PlotMSApp *parent) | |
Constructor which takes parent PlotMS. | |
virtual | ~PlotMSCacheBase () |
Destructor. | |
virtual PlotMSCacheBase::Type | cacheType ()=0 |
Identify myself pure virtual. | |
virtual String | polname (Int ipol)=0 |
Access to pol names. | |
int | nmetadata () const |
Meta axes info. | |
PMS::Axis | metadata (int i) |
Int | nIter () const |
Reference an indexer. | |
PlotMSIndexer & | indexer (uInt i) |
PlotMSIndexer & | indexer0 () |
Int | nChunk () const |
Report the number of chunks. | |
bool | cacheReady () const |
Returns whether cache is filled. | |
Matrix< Int > & | chunkShapes () |
Report the data shapes. | |
Bool | goodChunk (Int ichunk) |
A chunk is good (T) if it contains data (when averaging, some chunks may have nrows=0) | |
bool | hasReferenceValue (PMS::Axis axis) |
Is there a reference value for the specified axis? TBD: actually make this axis-dep? | |
double | referenceValue (PMS::Axis axis) |
Double | refTime () const |
Report the reference time for this cache (in seconds) | |
vector< pair< PMS::Axis, unsigned int > > | loadedAxes () const |
Returns which axes have been loaded into the cache, including metadata. | |
PlotMSAveraging & | averaging () |
Access to averaging state in the cache: | |
PlotMSTransformations & | transformations () |
Access to transformations state in the cache. | |
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. | |
void | clear () |
Clears the cache of all stored values. | |
void | release (const vector< PMS::Axis > &axes) |
Releases the given axes from the cache. | |
void | setUpIndexer (PMS::Axis iteraxis=PMS::SCAN, Bool globalXRange=False, Bool globalYRange=False) |
Set up indexing for the plot. | |
Array< Bool > & | flag (Int chunk) |
Access to flags per chunk. | |
Vector< Bool > & | flagrow (Int chunk) |
Double | getScan (Int chnk, Int irel) |
Axis-specific generic gets. | |
Double | getField (Int chnk, Int irel) |
Double | getTime (Int chnk, Int irel) |
Double | getTimeIntr (Int chnk, Int irel) |
Double | getSpw (Int chnk, Int irel) |
Double | getFreq (Int chnk, Int irel) |
Double | getVel (Int chnk, Int irel) |
Double | getChan (Int chnk, Int irel) |
Double | getCorr (Int chnk, Int irel) |
Double | getAnt1 (Int chnk, Int irel) |
Double | getAnt2 (Int chnk, Int irel) |
Double | getBsln (Int chnk, Int irel) |
Double | getUVDist (Int chnk, Int irel) |
Double | getUVDistL (Int chnk, Int irel) |
Double | getU (Int chnk, Int irel) |
Double | getV (Int chnk, Int irel) |
Double | getW (Int chnk, Int irel) |
Double | getUwave (Int chnk, Int irel) |
Double | getVwave (Int chnk, Int irel) |
Double | getWwave (Int chnk, Int irel) |
Double | getAmp (Int chnk, Int irel) |
Double | getPha (Int chnk, Int irel) |
Double | getReal (Int chnk, Int irel) |
Double | getImag (Int chnk, Int irel) |
Double | getFlag (Int chnk, Int irel) |
Double | getFlagRow (Int chnk, Int irel) |
Double | getRow (Int chnk, Int irel) |
Double | getWt (Int chnk, Int irel) |
Double | getWtxAmp (Int chnk, Int irel) |
Double | getAz0 (Int chnk, Int irel) |
These are array-global (one value per chunk) | |
Double | getEl0 (Int chnk, Int irel) |
Double | getHA0 (Int chnk, Int irel) |
Double | getPA0 (Int chnk, Int irel) |
Double | getAntenna (Int chnk, Int irel) |
These are antenna-based. | |
Double | getAz (Int chnk, Int irel) |
Double | getEl (Int chnk, Int irel) |
Double | getParAng (Int chnk, Int irel) |
Double | getPar (Int chnk, Int irel) |
These support generic non-complex calibration. | |
Static Public Member Functions | |
static bool | axisIsMetaData (PMS::Axis axis) |
Static Public Attributes | |
static const unsigned int | THREAD_SEGMENT |
static const PMS::Axis | METADATA [] |
static const unsigned int | N_METADATA |
Protected Member Functions | |
PlotMSCacheBase (const PlotMSCacheBase &) | |
Forbid copy for now. | |
void | increaseChunks (Int nc=0) |
Increase the number of chunks. | |
virtual void | loadIt (vector< PMS::Axis > &loadAxes, vector< PMS::DataColumn > &loadData, PlotMSCacheThread *thread=NULL)=0 |
Specialized method for loading the cache (pure virtual: implemented specifically in child classes) | |
virtual void | flagToDisk (const PlotMSFlagging &flagging, Vector< Int > &chunks, Vector< Int > &relids, Bool flag, PlotMSIndexer *indexer)=0 |
void | deleteCache () |
Clean up the PtrBlocks. | |
void | deleteIndexer () |
void | setAxesMask (PMS::Axis axis, Vector< Bool > &axismask) |
Set the net axes mask (defines how to collapse flags for the chosen plot axes) | |
Vector< Bool > | netAxesMask (PMS::Axis xaxis, PMS::Axis yaxis) |
Return the net axes mask for the currently set plot axes. | |
void | setPlotMask () |
Derive the plot mask by appropriately collapsing the flags. | |
void | setPlotMask (Int chunk) |
void | deletePlotMask () |
Delete the whole plot mask. | |
unsigned int | nPointsForAxis (PMS::Axis axis) const |
Returns the number of points loaded for the given axis or 0 if not loaded. | |
void | logInfo (const String &method, const String &message) |
Convenience methods that call log() with the given method name and the appropriate event type. | |
void | logDebug (const String &method, const String &message) |
void | logWarn (const String &method, const String &message) |
void | logError (const String &method, const String &message) |
void | logLoad (const String &message) |
void | logFlag (const String &message) |
void | log (const String &method, const String &message, int eventType) |
Logs the given message from the given method name as the given event type (see PlotLogger). | |
Protected Attributes | |
PlotMSApp * | plotms_ |
Private data. | |
PlotMSIndexer * | indexer0_ |
An empty indexer (its an empty PlotData object used for initialization) | |
PtrBlock< PlotMSIndexer * > | indexer_ |
The indexer into the cache. | |
Int | nChunk_ |
The number of chunks in the cache. | |
Double | refTime_p |
The reference time for this cache, in seconds. | |
Int | nAnt_ |
The number of antennas. | |
Double | minX_ |
Global min/max. | |
Double | maxX_ |
Double | minY_ |
Double | maxY_ |
Matrix< Int > | chshapes_ |
The fundamental meta-data cache. | |
Vector< Bool > | goodChunk_ |
Vector< Double > | time_ |
Vector< Double > | timeIntr_ |
Vector< Int > | field_ |
Vector< Int > | spw_ |
Vector< Int > | scan_ |
PtrBlock< Vector< uInt > * > | row_ |
PtrBlock< Vector< Int > * > | antenna1_ |
PtrBlock< Vector< Int > * > | antenna2_ |
PtrBlock< Vector< Int > * > | baseline_ |
PtrBlock< Vector< Double > * > | uvdist_ |
PtrBlock< Vector< Double > * > | u_ |
PtrBlock< Vector< Double > * > | v_ |
PtrBlock< Vector< Double > * > | w_ |
PtrBlock< Matrix< Double > * > | uvdistL_ |
PtrBlock< Matrix< Double > * > | uwave_ |
PtrBlock< Matrix< Double > * > | vwave_ |
PtrBlock< Matrix< Double > * > | wwave_ |
PtrBlock< Vector< Double > * > | freq_ |
PtrBlock< Vector< Double > * > | vel_ |
PtrBlock< Vector< Int > * > | chan_ |
PtrBlock< Vector< Int > * > | corr_ |
PtrBlock< Vector< Float > * > | pa_ |
Optional parts of the cache. | |
PtrBlock< Array< Float > * > | amp_ |
Data (the heavy part) | |
PtrBlock< Array< Float > * > | pha_ |
PtrBlock< Array< Float > * > | real_ |
PtrBlock< Array< Float > * > | imag_ |
PtrBlock< Array< Float > * > | wtxamp_ |
PtrBlock< Array< Bool > * > | flag_ |
PtrBlock< Vector< Bool > * > | flagrow_ |
PtrBlock< Array< Float > * > | wt_ |
PtrBlock< Vector< Float > * > | parang_ |
PtrBlock< Vector< Int > * > | antenna_ |
PtrBlock< Vector< Double > * > | az_ |
PtrBlock< Vector< Double > * > | el_ |
Vector< Double > | az0_ |
Vector< Double > | el0_ |
Vector< Double > | ha0_ |
Vector< Double > | pa0_ |
PtrBlock< Array< Float > * > | par_ |
bool | dataLoaded_ |
Current setup/state. | |
PMS::Axis | currentX_ |
PMS::Axis | currentY_ |
map< PMS::Axis, bool > | loadedAxes_ |
map< PMS::Axis, PMS::DataColumn > | loadedAxesData_ |
map< PMS::Axis, bool > | pendingLoadAxes_ |
Double | xminG_ |
Global ranges. | |
Double | yminG_ |
Double | xflminG_ |
Double | yflminG_ |
Double | xmaxG_ |
Double | ymaxG_ |
Double | xflmaxG_ |
Double | yflmaxG_ |
String | filename_ |
A copy of the Data parameters. | |
PlotMSSelection | selection_ |
PlotMSAveraging | averaging_ |
PlotMSTransformations | transformations_ |
Vector< Bool > | netAxesMask_ |
Axes mask. | |
PtrBlock< Array< Bool > * > | plmask_ |
collapsed flag mask for plotting | |
Vector< String > | antnames_ |
meta info for locate output | |
Vector< String > | stanames_ |
Vector< String > | antstanames_ |
Vector< String > | fldnames_ |
Friends | |
class | PlotMSIndexer |
Friend class declarations. |
Definition at line 47 of file PlotMSCacheBase.h.
TBD: friend class PlotMSData;.
Varieties of cache TBD: move to PlotMSConstants?
Definition at line 58 of file PlotMSCacheBase.h.
casa::PlotMSCacheBase::PlotMSCacheBase | ( | PlotMSApp * | parent | ) |
Constructor which takes parent PlotMS.
virtual casa::PlotMSCacheBase::~PlotMSCacheBase | ( | ) | [virtual] |
Destructor.
casa::PlotMSCacheBase::PlotMSCacheBase | ( | const PlotMSCacheBase & | ) | [protected] |
Forbid copy for now.
PlotMSAveraging& casa::PlotMSCacheBase::averaging | ( | ) | [inline] |
Access to averaging state in the cache:
Definition at line 117 of file PlotMSCacheBase.h.
References averaging_.
static bool casa::PlotMSCacheBase::axisIsMetaData | ( | PMS::Axis | axis | ) | [static] |
bool casa::PlotMSCacheBase::cacheReady | ( | ) | const [inline] |
Returns whether cache is filled.
Definition at line 93 of file PlotMSCacheBase.h.
References dataLoaded_.
Referenced by hasReferenceValue().
virtual PlotMSCacheBase::Type casa::PlotMSCacheBase::cacheType | ( | ) | [pure virtual] |
Identify myself pure virtual.
Implemented in casa::MSCache, and casa::CalCache.
Matrix<Int>& casa::PlotMSCacheBase::chunkShapes | ( | ) | [inline] |
void casa::PlotMSCacheBase::clear | ( | ) |
Clears the cache of all stored values.
This should be called when the underlying MS or MS selection is changed, thus invalidating stored data.
Referenced by casa::PlotMSIterPlot::updateData(), and casa::PlotMSPlot::updateData().
void casa::PlotMSCacheBase::deleteCache | ( | ) | [protected] |
Clean up the PtrBlocks.
void casa::PlotMSCacheBase::deleteIndexer | ( | ) | [protected] |
void casa::PlotMSCacheBase::deletePlotMask | ( | ) | [protected] |
Delete the whole plot mask.
Array<Bool>& casa::PlotMSCacheBase::flag | ( | Int | chunk | ) | [inline] |
Access to flags per chunk.
Definition at line 149 of file PlotMSCacheBase.h.
References casa::vi::chunk(), and flag_.
Vector<Bool>& casa::PlotMSCacheBase::flagrow | ( | Int | chunk | ) | [inline] |
Definition at line 150 of file PlotMSCacheBase.h.
References casa::vi::chunk(), and flagrow_.
virtual void casa::PlotMSCacheBase::flagToDisk | ( | const PlotMSFlagging & | flagging, |
Vector< Int > & | chunks, | ||
Vector< Int > & | relids, | ||
Bool | flag, | ||
PlotMSIndexer * | indexer | ||
) | [protected, pure virtual] |
Implemented in casa::MSCache, and casa::CalCache.
Double casa::PlotMSCacheBase::getAmp | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 175 of file PlotMSCacheBase.h.
References amp_.
Double casa::PlotMSCacheBase::getAnt1 | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 163 of file PlotMSCacheBase.h.
References antenna1_.
Double casa::PlotMSCacheBase::getAnt2 | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 164 of file PlotMSCacheBase.h.
References antenna2_.
Double casa::PlotMSCacheBase::getAntenna | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Double casa::PlotMSCacheBase::getAz | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 195 of file PlotMSCacheBase.h.
References az_.
Double casa::PlotMSCacheBase::getAz0 | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
These are array-global (one value per chunk)
Definition at line 188 of file PlotMSCacheBase.h.
References az0_.
Double casa::PlotMSCacheBase::getBsln | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 165 of file PlotMSCacheBase.h.
References baseline_.
Double casa::PlotMSCacheBase::getChan | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 161 of file PlotMSCacheBase.h.
References chan_.
Double casa::PlotMSCacheBase::getCorr | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 162 of file PlotMSCacheBase.h.
References corr_.
Double casa::PlotMSCacheBase::getEl | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 196 of file PlotMSCacheBase.h.
References el_.
Double casa::PlotMSCacheBase::getEl0 | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 189 of file PlotMSCacheBase.h.
References el0_.
Double casa::PlotMSCacheBase::getField | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 154 of file PlotMSCacheBase.h.
References field_.
Double casa::PlotMSCacheBase::getFlag | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 180 of file PlotMSCacheBase.h.
References flag_.
Double casa::PlotMSCacheBase::getFlagRow | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 181 of file PlotMSCacheBase.h.
References flagrow_.
Double casa::PlotMSCacheBase::getFreq | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 159 of file PlotMSCacheBase.h.
References freq_.
Double casa::PlotMSCacheBase::getHA0 | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 190 of file PlotMSCacheBase.h.
References ha0_.
Double casa::PlotMSCacheBase::getImag | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 178 of file PlotMSCacheBase.h.
References imag_.
Double casa::PlotMSCacheBase::getPA0 | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 191 of file PlotMSCacheBase.h.
References pa0_.
Double casa::PlotMSCacheBase::getPar | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
These support generic non-complex calibration.
Definition at line 200 of file PlotMSCacheBase.h.
References par_.
Double casa::PlotMSCacheBase::getParAng | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 197 of file PlotMSCacheBase.h.
References parang_.
Double casa::PlotMSCacheBase::getPha | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 176 of file PlotMSCacheBase.h.
References pha_.
Double casa::PlotMSCacheBase::getReal | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 177 of file PlotMSCacheBase.h.
References real_.
Double casa::PlotMSCacheBase::getRow | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 182 of file PlotMSCacheBase.h.
References row_.
Double casa::PlotMSCacheBase::getScan | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Double casa::PlotMSCacheBase::getSpw | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 157 of file PlotMSCacheBase.h.
References spw_.
Double casa::PlotMSCacheBase::getTime | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 155 of file PlotMSCacheBase.h.
References time_.
Double casa::PlotMSCacheBase::getTimeIntr | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 156 of file PlotMSCacheBase.h.
References timeIntr_.
Double casa::PlotMSCacheBase::getU | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 168 of file PlotMSCacheBase.h.
References u_.
Double casa::PlotMSCacheBase::getUVDist | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 166 of file PlotMSCacheBase.h.
References uvdist_.
Double casa::PlotMSCacheBase::getUVDistL | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 167 of file PlotMSCacheBase.h.
References uvdistL_.
Double casa::PlotMSCacheBase::getUwave | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 171 of file PlotMSCacheBase.h.
References uwave_.
Double casa::PlotMSCacheBase::getV | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 169 of file PlotMSCacheBase.h.
References v_.
Double casa::PlotMSCacheBase::getVel | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 160 of file PlotMSCacheBase.h.
References vel_.
Double casa::PlotMSCacheBase::getVwave | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 172 of file PlotMSCacheBase.h.
References vwave_.
Double casa::PlotMSCacheBase::getW | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 170 of file PlotMSCacheBase.h.
References w_.
Double casa::PlotMSCacheBase::getWt | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 184 of file PlotMSCacheBase.h.
References wt_.
Double casa::PlotMSCacheBase::getWtxAmp | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 185 of file PlotMSCacheBase.h.
References wtxamp_.
Double casa::PlotMSCacheBase::getWwave | ( | Int | chnk, |
Int | irel | ||
) | [inline] |
Definition at line 173 of file PlotMSCacheBase.h.
References wwave_.
Bool casa::PlotMSCacheBase::goodChunk | ( | Int | ichunk | ) | [inline] |
A chunk is good (T) if it contains data (when averaging, some chunks may have nrows=0)
Definition at line 100 of file PlotMSCacheBase.h.
References goodChunk_.
bool casa::PlotMSCacheBase::hasReferenceValue | ( | PMS::Axis | axis | ) | [inline] |
Is there a reference value for the specified axis? TBD: actually make this axis-dep?
Definition at line 104 of file PlotMSCacheBase.h.
References cacheReady().
Referenced by referenceValue().
void casa::PlotMSCacheBase::increaseChunks | ( | Int | nc = 0 | ) | [protected] |
Increase the number of chunks.
PlotMSIndexer& casa::PlotMSCacheBase::indexer | ( | uInt | i | ) | [inline] |
Definition at line 86 of file PlotMSCacheBase.h.
References indexer_.
PlotMSIndexer& casa::PlotMSCacheBase::indexer0 | ( | ) | [inline] |
Definition at line 87 of file PlotMSCacheBase.h.
References indexer0_.
virtual void casa::PlotMSCacheBase::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.
vector<pair<PMS::Axis, unsigned int> > casa::PlotMSCacheBase::loadedAxes | ( | ) | const |
Returns which axes have been loaded into the cache, including metadata.
Also includes the size (number of points) for each axis (which will eventually be used for a cache manager to let the user know the relative memory use of each axis).
virtual void casa::PlotMSCacheBase::loadIt | ( | vector< PMS::Axis > & | loadAxes, |
vector< PMS::DataColumn > & | loadData, | ||
PlotMSCacheThread * | thread = NULL |
||
) | [protected, pure virtual] |
Specialized method for loading the cache (pure virtual: implemented specifically in child classes)
Implemented in casa::CalCache, and casa::MSCache.
void casa::PlotMSCacheBase::log | ( | const String & | method, |
const String & | message, | ||
int | eventType | ||
) | [protected] |
Logs the given message from the given method name as the given event type (see PlotLogger).
Referenced by logDebug(), logError(), logFlag(), logInfo(), logLoad(), and logWarn().
void casa::PlotMSCacheBase::logDebug | ( | const String & | method, |
const String & | message | ||
) | [inline, protected] |
Definition at line 248 of file PlotMSCacheBase.h.
References log(), and casa::PlotLogger::MSG_DEBUG.
void casa::PlotMSCacheBase::logError | ( | const String & | method, |
const String & | message | ||
) | [inline, protected] |
Definition at line 252 of file PlotMSCacheBase.h.
References log(), and casa::PlotLogger::MSG_ERROR.
void casa::PlotMSCacheBase::logFlag | ( | const String & | message | ) | [inline, protected] |
Definition at line 257 of file PlotMSCacheBase.h.
References log(), casa::PMS::LOG_EVENT_FLAG, and casa::PMS::LOG_ORIGIN_FLAG.
void casa::PlotMSCacheBase::logInfo | ( | const String & | method, |
const String & | message | ||
) | [inline, protected] |
Convenience methods that call log() with the given method name and the appropriate event type.
Definition at line 246 of file PlotMSCacheBase.h.
References log(), and casa::PlotLogger::MSG_INFO.
void casa::PlotMSCacheBase::logLoad | ( | const String & | message | ) | [inline, protected] |
Definition at line 255 of file PlotMSCacheBase.h.
References log(), casa::PMS::LOG_EVENT_LOAD_CACHE, and casa::PMS::LOG_ORIGIN_LOAD_CACHE.
void casa::PlotMSCacheBase::logWarn | ( | const String & | method, |
const String & | message | ||
) | [inline, protected] |
Definition at line 250 of file PlotMSCacheBase.h.
References log(), and casa::PlotLogger::MSG_WARN.
PMS::Axis casa::PlotMSCacheBase::metadata | ( | int | i | ) | [inline] |
Definition at line 82 of file PlotMSCacheBase.h.
References METADATA.
Int casa::PlotMSCacheBase::nChunk | ( | ) | const [inline] |
Report the number of chunks.
Definition at line 90 of file PlotMSCacheBase.h.
References nChunk_.
Referenced by casa::PlotMSIndexer::nChunk().
Vector<Bool> casa::PlotMSCacheBase::netAxesMask | ( | PMS::Axis | xaxis, |
PMS::Axis | yaxis | ||
) | [protected] |
Return the net axes mask for the currently set plot axes.
Int casa::PlotMSCacheBase::nIter | ( | ) | const [inline] |
Reference an indexer.
Definition at line 85 of file PlotMSCacheBase.h.
References indexer_, and casa::PtrBlock< T >::nelements().
int casa::PlotMSCacheBase::nmetadata | ( | ) | const [inline] |
unsigned int casa::PlotMSCacheBase::nPointsForAxis | ( | PMS::Axis | axis | ) | const [protected] |
Returns the number of points loaded for the given axis or 0 if not loaded.
virtual String casa::PlotMSCacheBase::polname | ( | Int | ipol | ) | [pure virtual] |
Access to pol names.
Implemented in casa::CalCache, and casa::MSCache.
double casa::PlotMSCacheBase::referenceValue | ( | PMS::Axis | axis | ) | [inline] |
Definition at line 105 of file PlotMSCacheBase.h.
References hasReferenceValue(), and refTime().
Double casa::PlotMSCacheBase::refTime | ( | ) | const [inline] |
Report the reference time for this cache (in seconds)
Definition at line 108 of file PlotMSCacheBase.h.
References refTime_p.
Referenced by referenceValue(), and casa::PlotMSIndexer::refTime().
void casa::PlotMSCacheBase::release | ( | const vector< PMS::Axis > & | axes | ) |
Releases the given axes from the cache.
void casa::PlotMSCacheBase::setAxesMask | ( | PMS::Axis | axis, |
Vector< Bool > & | axismask | ||
) | [protected] |
Set the net axes mask (defines how to collapse flags for the chosen plot axes)
void casa::PlotMSCacheBase::setPlotMask | ( | ) | [protected] |
Derive the plot mask by appropriately collapsing the flags.
void casa::PlotMSCacheBase::setPlotMask | ( | Int | chunk | ) | [protected] |
void casa::PlotMSCacheBase::setUpIndexer | ( | PMS::Axis | iteraxis = PMS::SCAN , |
Bool | globalXRange = False , |
||
Bool | globalYRange = False |
||
) |
Set up indexing for the plot.
PlotMSTransformations& casa::PlotMSCacheBase::transformations | ( | ) | [inline] |
Access to transformations state in the cache.
Definition at line 120 of file PlotMSCacheBase.h.
References transformations_.
friend class PlotMSIndexer [friend] |
Friend class declarations.
Reimplemented in casa::MSCache, and casa::CalCache.
Definition at line 50 of file PlotMSCacheBase.h.
PtrBlock<Array<Float>*> casa::PlotMSCacheBase::amp_ [protected] |
PtrBlock<Vector<Int>*> casa::PlotMSCacheBase::antenna1_ [protected] |
Definition at line 295 of file PlotMSCacheBase.h.
Referenced by getAnt1().
PtrBlock<Vector<Int>*> casa::PlotMSCacheBase::antenna2_ [protected] |
Definition at line 295 of file PlotMSCacheBase.h.
Referenced by getAnt2().
PtrBlock<Vector<Int>*> casa::PlotMSCacheBase::antenna_ [protected] |
Definition at line 313 of file PlotMSCacheBase.h.
Referenced by getAntenna().
Vector<String> casa::PlotMSCacheBase::antnames_ [protected] |
meta info for locate output
Definition at line 343 of file PlotMSCacheBase.h.
Vector<String> casa::PlotMSCacheBase::antstanames_ [protected] |
Definition at line 345 of file PlotMSCacheBase.h.
PlotMSAveraging casa::PlotMSCacheBase::averaging_ [protected] |
Definition at line 333 of file PlotMSCacheBase.h.
Referenced by averaging().
Vector<Double> casa::PlotMSCacheBase::az0_ [protected] |
Definition at line 316 of file PlotMSCacheBase.h.
Referenced by getAz0().
PtrBlock<Vector<Double>*> casa::PlotMSCacheBase::az_ [protected] |
Definition at line 314 of file PlotMSCacheBase.h.
Referenced by getAz().
PtrBlock<Vector<Int>*> casa::PlotMSCacheBase::baseline_ [protected] |
Definition at line 295 of file PlotMSCacheBase.h.
Referenced by getBsln().
PtrBlock<Vector<Int>*> casa::PlotMSCacheBase::chan_ [protected] |
Definition at line 299 of file PlotMSCacheBase.h.
Referenced by getChan().
Matrix<Int> casa::PlotMSCacheBase::chshapes_ [protected] |
The fundamental meta-data cache.
Definition at line 290 of file PlotMSCacheBase.h.
Referenced by chunkShapes().
PtrBlock<Vector<Int>*> casa::PlotMSCacheBase::corr_ [protected] |
Definition at line 300 of file PlotMSCacheBase.h.
Referenced by getCorr().
PMS::Axis casa::PlotMSCacheBase::currentX_ [protected] |
Definition at line 322 of file PlotMSCacheBase.h.
PMS::Axis casa::PlotMSCacheBase::currentY_ [protected] |
Definition at line 322 of file PlotMSCacheBase.h.
bool casa::PlotMSCacheBase::dataLoaded_ [protected] |
Vector<Double> casa::PlotMSCacheBase::el0_ [protected] |
Definition at line 316 of file PlotMSCacheBase.h.
Referenced by getEl0().
PtrBlock<Vector<Double>*> casa::PlotMSCacheBase::el_ [protected] |
Definition at line 314 of file PlotMSCacheBase.h.
Referenced by getEl().
Vector<Int> casa::PlotMSCacheBase::field_ [protected] |
Definition at line 293 of file PlotMSCacheBase.h.
Referenced by getField().
String casa::PlotMSCacheBase::filename_ [protected] |
A copy of the Data parameters.
Definition at line 331 of file PlotMSCacheBase.h.
PtrBlock<Array<Bool>*> casa::PlotMSCacheBase::flag_ [protected] |
Definition at line 307 of file PlotMSCacheBase.h.
PtrBlock<Vector<Bool>*> casa::PlotMSCacheBase::flagrow_ [protected] |
Definition at line 308 of file PlotMSCacheBase.h.
Referenced by flagrow(), and getFlagRow().
Vector<String> casa::PlotMSCacheBase::fldnames_ [protected] |
Definition at line 346 of file PlotMSCacheBase.h.
PtrBlock<Vector<Double>*> casa::PlotMSCacheBase::freq_ [protected] |
Definition at line 298 of file PlotMSCacheBase.h.
Referenced by getFreq().
Vector<Bool> casa::PlotMSCacheBase::goodChunk_ [protected] |
Definition at line 291 of file PlotMSCacheBase.h.
Referenced by goodChunk().
Vector<Double> casa::PlotMSCacheBase::ha0_ [protected] |
Definition at line 316 of file PlotMSCacheBase.h.
Referenced by getHA0().
PtrBlock<Array<Float>*> casa::PlotMSCacheBase::imag_ [protected] |
Definition at line 306 of file PlotMSCacheBase.h.
Referenced by getImag().
PlotMSIndexer* casa::PlotMSCacheBase::indexer0_ [protected] |
An empty indexer (its an empty PlotData object used for initialization)
Definition at line 272 of file PlotMSCacheBase.h.
Referenced by indexer0().
PtrBlock<PlotMSIndexer*> casa::PlotMSCacheBase::indexer_ [protected] |
The indexer into the cache.
Definition at line 275 of file PlotMSCacheBase.h.
map<PMS::Axis, bool> casa::PlotMSCacheBase::loadedAxes_ [protected] |
Definition at line 323 of file PlotMSCacheBase.h.
map<PMS::Axis, PMS::DataColumn> casa::PlotMSCacheBase::loadedAxesData_ [protected] |
Definition at line 324 of file PlotMSCacheBase.h.
Double casa::PlotMSCacheBase::maxX_ [protected] |
Definition at line 287 of file PlotMSCacheBase.h.
Double casa::PlotMSCacheBase::maxY_ [protected] |
Definition at line 287 of file PlotMSCacheBase.h.
const PMS::Axis casa::PlotMSCacheBase::METADATA[] [static] |
Definition at line 61 of file PlotMSCacheBase.h.
Referenced by metadata().
Double casa::PlotMSCacheBase::minX_ [protected] |
Global min/max.
Definition at line 287 of file PlotMSCacheBase.h.
Double casa::PlotMSCacheBase::minY_ [protected] |
Definition at line 287 of file PlotMSCacheBase.h.
const unsigned int casa::PlotMSCacheBase::N_METADATA [static] |
Definition at line 62 of file PlotMSCacheBase.h.
Referenced by nmetadata().
Int casa::PlotMSCacheBase::nAnt_ [protected] |
The number of antennas.
Definition at line 284 of file PlotMSCacheBase.h.
Int casa::PlotMSCacheBase::nChunk_ [protected] |
The number of chunks in the cache.
Definition at line 278 of file PlotMSCacheBase.h.
Referenced by nChunk().
Vector<Bool> casa::PlotMSCacheBase::netAxesMask_ [protected] |
Axes mask.
Definition at line 337 of file PlotMSCacheBase.h.
Vector<Double> casa::PlotMSCacheBase::pa0_ [protected] |
Definition at line 316 of file PlotMSCacheBase.h.
Referenced by getPA0().
PtrBlock<Vector<Float>*> casa::PlotMSCacheBase::pa_ [protected] |
Optional parts of the cache.
Definition at line 303 of file PlotMSCacheBase.h.
PtrBlock<Array<Float>*> casa::PlotMSCacheBase::par_ [protected] |
Definition at line 318 of file PlotMSCacheBase.h.
Referenced by getPar().
PtrBlock<Vector<Float>*> casa::PlotMSCacheBase::parang_ [protected] |
Definition at line 312 of file PlotMSCacheBase.h.
Referenced by getParAng().
map<PMS::Axis, bool> casa::PlotMSCacheBase::pendingLoadAxes_ [protected] |
Definition at line 325 of file PlotMSCacheBase.h.
PtrBlock<Array<Float>*> casa::PlotMSCacheBase::pha_ [protected] |
Definition at line 306 of file PlotMSCacheBase.h.
Referenced by getPha().
PtrBlock<Array<Bool>*> casa::PlotMSCacheBase::plmask_ [protected] |
collapsed flag mask for plotting
Definition at line 340 of file PlotMSCacheBase.h.
PlotMSApp* casa::PlotMSCacheBase::plotms_ [protected] |
Private data.
Parent plotms. (used only for access to logger, so far)
Definition at line 269 of file PlotMSCacheBase.h.
PtrBlock<Array<Float>*> casa::PlotMSCacheBase::real_ [protected] |
Definition at line 306 of file PlotMSCacheBase.h.
Referenced by getReal().
Double casa::PlotMSCacheBase::refTime_p [protected] |
The reference time for this cache, in seconds.
Definition at line 281 of file PlotMSCacheBase.h.
Referenced by refTime().
PtrBlock<Vector<uInt>*> casa::PlotMSCacheBase::row_ [protected] |
Definition at line 294 of file PlotMSCacheBase.h.
Referenced by getRow().
Vector<Int> casa::PlotMSCacheBase::scan_ [protected] |
Definition at line 293 of file PlotMSCacheBase.h.
Referenced by getScan().
PlotMSSelection casa::PlotMSCacheBase::selection_ [protected] |
Definition at line 332 of file PlotMSCacheBase.h.
Vector<Int> casa::PlotMSCacheBase::spw_ [protected] |
Definition at line 293 of file PlotMSCacheBase.h.
Referenced by getSpw().
Vector<String> casa::PlotMSCacheBase::stanames_ [protected] |
Definition at line 344 of file PlotMSCacheBase.h.
const unsigned int casa::PlotMSCacheBase::THREAD_SEGMENT [static] |
Definition at line 60 of file PlotMSCacheBase.h.
Vector<Double> casa::PlotMSCacheBase::time_ [protected] |
Definition at line 292 of file PlotMSCacheBase.h.
Referenced by getTime().
Vector<Double> casa::PlotMSCacheBase::timeIntr_ [protected] |
Definition at line 292 of file PlotMSCacheBase.h.
Referenced by getTimeIntr().
Definition at line 334 of file PlotMSCacheBase.h.
Referenced by transformations().
PtrBlock<Vector<Double>*> casa::PlotMSCacheBase::u_ [protected] |
Definition at line 296 of file PlotMSCacheBase.h.
Referenced by getU().
PtrBlock<Vector<Double>*> casa::PlotMSCacheBase::uvdist_ [protected] |
Definition at line 296 of file PlotMSCacheBase.h.
Referenced by getUVDist().
PtrBlock<Matrix<Double>*> casa::PlotMSCacheBase::uvdistL_ [protected] |
Definition at line 297 of file PlotMSCacheBase.h.
Referenced by getUVDistL().
PtrBlock<Matrix<Double>*> casa::PlotMSCacheBase::uwave_ [protected] |
Definition at line 297 of file PlotMSCacheBase.h.
Referenced by getUwave().
PtrBlock<Vector<Double>*> casa::PlotMSCacheBase::v_ [protected] |
Definition at line 296 of file PlotMSCacheBase.h.
Referenced by getV().
PtrBlock<Vector<Double>*> casa::PlotMSCacheBase::vel_ [protected] |
Definition at line 298 of file PlotMSCacheBase.h.
Referenced by getVel().
PtrBlock<Matrix<Double>*> casa::PlotMSCacheBase::vwave_ [protected] |
Definition at line 297 of file PlotMSCacheBase.h.
Referenced by getVwave().
PtrBlock<Vector<Double>*> casa::PlotMSCacheBase::w_ [protected] |
Definition at line 296 of file PlotMSCacheBase.h.
Referenced by getW().
PtrBlock<Array<Float>*> casa::PlotMSCacheBase::wt_ [protected] |
Definition at line 310 of file PlotMSCacheBase.h.
Referenced by getWt().
PtrBlock<Array<Float>*> casa::PlotMSCacheBase::wtxamp_ [protected] |
Definition at line 306 of file PlotMSCacheBase.h.
Referenced by getWtxAmp().
PtrBlock<Matrix<Double>*> casa::PlotMSCacheBase::wwave_ [protected] |
Definition at line 297 of file PlotMSCacheBase.h.
Referenced by getWwave().
Double casa::PlotMSCacheBase::xflmaxG_ [protected] |
Definition at line 328 of file PlotMSCacheBase.h.
Double casa::PlotMSCacheBase::xflminG_ [protected] |
Definition at line 328 of file PlotMSCacheBase.h.
Double casa::PlotMSCacheBase::xmaxG_ [protected] |
Definition at line 328 of file PlotMSCacheBase.h.
Double casa::PlotMSCacheBase::xminG_ [protected] |
Global ranges.
Definition at line 328 of file PlotMSCacheBase.h.
Double casa::PlotMSCacheBase::yflmaxG_ [protected] |
Definition at line 328 of file PlotMSCacheBase.h.
Double casa::PlotMSCacheBase::yflminG_ [protected] |
Definition at line 328 of file PlotMSCacheBase.h.
Double casa::PlotMSCacheBase::ymaxG_ [protected] |
Definition at line 328 of file PlotMSCacheBase.h.
Double casa::PlotMSCacheBase::yminG_ [protected] |
Definition at line 328 of file PlotMSCacheBase.h.