casa  $Rev:20696$
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Friends
casa::PlotMSCache2 Class Reference

#include <PlotMSCache2.h>

List of all members.

Public Types

enum  Type {
  MS,
  CAL
}
 Varieties of cache. More...

Public Member Functions

 PlotMSCache2 (PlotMSApp *parent)
 Constructor which takes parent PlotMS.
virtual ~PlotMSCache2 ()
 Destructor.
PlotMSCache2::Type cacheType ()
 Identify myself.
Int nIter ()
 Reference an indexer.
PlotMSIndexerindexer (uInt i)
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?
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.
PlotMSAveragingaveraging ()
 Access to averaging state in the cache:
PlotMSTransformationstransformations ()
 Access to transformations state in the cache.
Matrix< Int > & chanAveBounds (Int spw)
 Access to channel averaging bounds.
virtual void load (const vector< PMS::Axis > &axes, const vector< PMS::DataColumn > &data, const String &msname, 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 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)

Static Public Member Functions

static bool axisIsMetaData (PMS::Axis axis)

Static Public Attributes

static const PMS::Axis METADATA []
static const unsigned int N_METADATA
static const unsigned int THREAD_SEGMENT

Protected Member Functions

 PlotMSCache2 (const PlotMSCache2 &mc)
 Forbid copy for now.
void increaseChunks (Int nc=0)
 Increase the number of chunks.
void deleteCache ()
 Clean up the PtrBlocks.
void deleteIndexer ()
void setUpVisIter (const String &msname, const PlotMSSelection &selection, Bool readonly=True, Bool chanselect=True, Bool corrselect=True)
 Setup the VisIter.
void countChunks (ROVisibilityIterator &vi, PlotMSCacheThread *thread)
 Count the chunks required in the cache.
void countChunks (ROVisibilityIterator &vi, Vector< Int > &nIterPerAve, const PlotMSAveraging &averaging, PlotMSCacheThread *thread)
void trapExcessVolume (map< PMS::Axis, Bool > pendingLoadAxes)
 Trap attempt to use to much memory (too many points)
void loadChunks (ROVisibilityIterator &vi, const vector< PMS::Axis > loadAxes, const vector< PMS::DataColumn > loadData, const PlotMSAveraging &averaging, PlotMSCacheThread *thread)
 Loop over VisIter, filling the cache.
void loadChunks (ROVisibilityIterator &vi, const PlotMSAveraging &averaging, const Vector< Int > &nIterPerAve, const vector< PMS::Axis > loadAxes, const vector< PMS::DataColumn > loadData, PlotMSCacheThread *thread)
void forceVBread (VisBuffer &vb, vector< PMS::Axis > loadAxes, vector< PMS::DataColumn > loadData)
 Force read on vb for requested axes (so pre-cache averaging treats all data it should)
void discernData (vector< PMS::Axis > loadAxes, vector< PMS::DataColumn > loadData, PlotMSVBAverager &vba)
 Tell time averager which data column to read.
void loadAxis (VisBuffer &vb, Int vbnum, PMS::Axis axis, PMS::DataColumn data=PMS::DEFAULT_DATACOLUMN)
 Loads the specific axis/metadata into the cache using the given VisBuffer.
void setAxesMask (PMS::Axis axis, Vector< Bool > &axismask)
 Set the net axes mask (defines how to collapse flags for the chosen plot axes)
Vector< BoolnetAxesMask (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.
virtual void flagToDisk (const PlotMSFlagging &flagging, Vector< Int > &chunks, Vector< Int > &relids, Bool flag, PlotMSIndexer *indexer)
 Set flags in the MS.
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

PlotMSAppplotms_
 Private data.
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< Intchshapes_
 The fundamental meta-data cache.
Vector< BoolgoodChunk_
Vector< Doubletime_
Vector< DoubletimeIntr_
Vector< Intfield_
Vector< Intspw_
Vector< Intscan_
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< 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< Doubleaz0_
Vector< Doubleel0_
Vector< Doubleha0_
Vector< Doublepa0_
bool dataLoaded_
 Current setup/state.
PMS::Axis currentX_
PMS::Axis currentY_
map< PMS::Axis, bool > loadedAxes_
map< PMS::Axis, PMS::DataColumn > loadedAxesData_
Double xminG_
 Global ranges.
Double yminG_
Double xflminG_
Double yflminG_
Double xmaxG_
Double ymaxG_
Double xflmaxG_
Double yflmaxG_
String msname_
 A copy of the Data parameters.
PlotMSSelection selection_
PlotMSAveraging averaging_
PlotMSTransformations transformations_
Vector< BoolnetAxesMask_
 Axes mask.
PtrBlock< Array< Bool > * > plmask_
 collapsed flag mask for plotting
Vector< Stringantnames_
 meta info for locate output
Vector< Stringstanames_
Vector< Stringantstanames_
Vector< Stringfldnames_
Vector< Matrix< Int > > chanAveBounds_p
 A container for channel averaging bounds.
Vector< IntnVBPerAve_
 Provisional flagging helpers.
ROVisIteratorrvi_p
 VisIterator pointer.
VisIteratorwvi_p
VisBufferUtil vbu_
 VisBufferUtil for freq/vel calculations.
PMSCacheVolMeter vm_
 Volume meter for volume calculation.

Friends

class PlotMSData
 Friend class declarations.
class PlotMSIndexer

Detailed Description

Definition at line 85 of file PlotMSCache2.h.


Member Enumeration Documentation

Varieties of cache.

Enumerator:
MS 
CAL 

Definition at line 94 of file PlotMSCache2.h.


Constructor & Destructor Documentation

casa::PlotMSCache2::PlotMSCache2 ( PlotMSApp parent)

Constructor which takes parent PlotMS.

virtual casa::PlotMSCache2::~PlotMSCache2 ( ) [virtual]

Destructor.

casa::PlotMSCache2::PlotMSCache2 ( const PlotMSCache2 mc) [protected]

Forbid copy for now.


Member Function Documentation

PlotMSAveraging& casa::PlotMSCache2::averaging ( ) [inline]

Access to averaging state in the cache:

Definition at line 143 of file PlotMSCache2.h.

References averaging_.

static bool casa::PlotMSCache2::axisIsMetaData ( PMS::Axis  axis) [static]
bool casa::PlotMSCache2::cacheReady ( ) const [inline]

Returns whether cache is filled.

Definition at line 120 of file PlotMSCache2.h.

References dataLoaded_.

Referenced by hasReferenceValue().

PlotMSCache2::Type casa::PlotMSCache2::cacheType ( ) [inline]

Identify myself.

Definition at line 110 of file PlotMSCache2.h.

References MS.

Matrix<Int>& casa::PlotMSCache2::chanAveBounds ( Int  spw) [inline]

Access to channel averaging bounds.

Definition at line 149 of file PlotMSCache2.h.

References chanAveBounds_p.

Matrix<Int>& casa::PlotMSCache2::chunkShapes ( ) [inline]

Report the data shapes.

Definition at line 123 of file PlotMSCache2.h.

References chshapes_.

void casa::PlotMSCache2::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().

void casa::PlotMSCache2::countChunks ( ROVisibilityIterator vi,
PlotMSCacheThread thread 
) [protected]

Count the chunks required in the cache.

void casa::PlotMSCache2::countChunks ( ROVisibilityIterator vi,
Vector< Int > &  nIterPerAve,
const PlotMSAveraging averaging,
PlotMSCacheThread thread 
) [protected]
void casa::PlotMSCache2::deleteCache ( ) [protected]

Clean up the PtrBlocks.

void casa::PlotMSCache2::deleteIndexer ( ) [protected]
void casa::PlotMSCache2::deletePlotMask ( ) [protected]

Delete the whole plot mask.

void casa::PlotMSCache2::discernData ( vector< PMS::Axis >  loadAxes,
vector< PMS::DataColumn >  loadData,
PlotMSVBAverager vba 
) [protected]

Tell time averager which data column to read.

Array<Bool>& casa::PlotMSCache2::flag ( Int  chunk) [inline]

Access to flags per chunk.

Definition at line 178 of file PlotMSCache2.h.

References flag_.

Vector<Bool>& casa::PlotMSCache2::flagrow ( Int  chunk) [inline]

Definition at line 179 of file PlotMSCache2.h.

References flagrow_.

virtual void casa::PlotMSCache2::flagToDisk ( const PlotMSFlagging flagging,
Vector< Int > &  chunks,
Vector< Int > &  relids,
Bool  flag,
PlotMSIndexer indexer 
) [protected, virtual]

Set flags in the MS.

void casa::PlotMSCache2::forceVBread ( VisBuffer vb,
vector< PMS::Axis >  loadAxes,
vector< PMS::DataColumn >  loadData 
) [protected]

Force read on vb for requested axes (so pre-cache averaging treats all data it should)

Double casa::PlotMSCache2::getAmp ( Int  chnk,
Int  irel 
) [inline]

Definition at line 204 of file PlotMSCache2.h.

References amp_.

Double casa::PlotMSCache2::getAnt1 ( Int  chnk,
Int  irel 
) [inline]

Definition at line 192 of file PlotMSCache2.h.

References antenna1_.

Double casa::PlotMSCache2::getAnt2 ( Int  chnk,
Int  irel 
) [inline]

Definition at line 193 of file PlotMSCache2.h.

References antenna2_.

Double casa::PlotMSCache2::getAntenna ( Int  chnk,
Int  irel 
) [inline]

These are antenna-based.

Definition at line 222 of file PlotMSCache2.h.

References antenna_.

Double casa::PlotMSCache2::getAz ( Int  chnk,
Int  irel 
) [inline]

Definition at line 223 of file PlotMSCache2.h.

References az_.

Double casa::PlotMSCache2::getAz0 ( Int  chnk,
Int  irel 
) [inline]

These are array-global (one value per chunk)

Definition at line 216 of file PlotMSCache2.h.

References az0_.

Double casa::PlotMSCache2::getBsln ( Int  chnk,
Int  irel 
) [inline]

Definition at line 194 of file PlotMSCache2.h.

References baseline_.

Double casa::PlotMSCache2::getChan ( Int  chnk,
Int  irel 
) [inline]

Definition at line 190 of file PlotMSCache2.h.

References chan_.

Double casa::PlotMSCache2::getCorr ( Int  chnk,
Int  irel 
) [inline]

Definition at line 191 of file PlotMSCache2.h.

References corr_.

Double casa::PlotMSCache2::getEl ( Int  chnk,
Int  irel 
) [inline]

Definition at line 224 of file PlotMSCache2.h.

References el_.

Double casa::PlotMSCache2::getEl0 ( Int  chnk,
Int  irel 
) [inline]

Definition at line 217 of file PlotMSCache2.h.

References el0_.

Double casa::PlotMSCache2::getField ( Int  chnk,
Int  irel 
) [inline]

Definition at line 183 of file PlotMSCache2.h.

References field_.

Double casa::PlotMSCache2::getFlag ( Int  chnk,
Int  irel 
) [inline]

Definition at line 209 of file PlotMSCache2.h.

References flag_.

Double casa::PlotMSCache2::getFlagRow ( Int  chnk,
Int  irel 
) [inline]

Definition at line 210 of file PlotMSCache2.h.

References flagrow_.

Double casa::PlotMSCache2::getFreq ( Int  chnk,
Int  irel 
) [inline]

Definition at line 188 of file PlotMSCache2.h.

References freq_.

Double casa::PlotMSCache2::getHA0 ( Int  chnk,
Int  irel 
) [inline]

Definition at line 218 of file PlotMSCache2.h.

References ha0_.

Double casa::PlotMSCache2::getImag ( Int  chnk,
Int  irel 
) [inline]

Definition at line 207 of file PlotMSCache2.h.

References imag_.

Double casa::PlotMSCache2::getPA0 ( Int  chnk,
Int  irel 
) [inline]

Definition at line 219 of file PlotMSCache2.h.

References pa0_.

Double casa::PlotMSCache2::getParAng ( Int  chnk,
Int  irel 
) [inline]

Definition at line 225 of file PlotMSCache2.h.

References parang_.

Double casa::PlotMSCache2::getPha ( Int  chnk,
Int  irel 
) [inline]

Definition at line 205 of file PlotMSCache2.h.

References pha_.

Double casa::PlotMSCache2::getReal ( Int  chnk,
Int  irel 
) [inline]

Definition at line 206 of file PlotMSCache2.h.

References real_.

Double casa::PlotMSCache2::getRow ( Int  chnk,
Int  irel 
) [inline]

Definition at line 211 of file PlotMSCache2.h.

References row_.

Double casa::PlotMSCache2::getScan ( Int  chnk,
Int  irel 
) [inline]

Axis-specific generic gets.

Definition at line 182 of file PlotMSCache2.h.

References scan_.

Double casa::PlotMSCache2::getSpw ( Int  chnk,
Int  irel 
) [inline]

Definition at line 186 of file PlotMSCache2.h.

References spw_.

Double casa::PlotMSCache2::getTime ( Int  chnk,
Int  irel 
) [inline]

Definition at line 184 of file PlotMSCache2.h.

References time_.

Double casa::PlotMSCache2::getTimeIntr ( Int  chnk,
Int  irel 
) [inline]

Definition at line 185 of file PlotMSCache2.h.

References timeIntr_.

Double casa::PlotMSCache2::getU ( Int  chnk,
Int  irel 
) [inline]

Definition at line 197 of file PlotMSCache2.h.

References u_.

Double casa::PlotMSCache2::getUVDist ( Int  chnk,
Int  irel 
) [inline]

Definition at line 195 of file PlotMSCache2.h.

References uvdist_.

Double casa::PlotMSCache2::getUVDistL ( Int  chnk,
Int  irel 
) [inline]

Definition at line 196 of file PlotMSCache2.h.

References uvdistL_.

Double casa::PlotMSCache2::getUwave ( Int  chnk,
Int  irel 
) [inline]

Definition at line 200 of file PlotMSCache2.h.

References uwave_.

Double casa::PlotMSCache2::getV ( Int  chnk,
Int  irel 
) [inline]

Definition at line 198 of file PlotMSCache2.h.

References v_.

Double casa::PlotMSCache2::getVel ( Int  chnk,
Int  irel 
) [inline]

Definition at line 189 of file PlotMSCache2.h.

References vel_.

Double casa::PlotMSCache2::getVwave ( Int  chnk,
Int  irel 
) [inline]

Definition at line 201 of file PlotMSCache2.h.

References vwave_.

Double casa::PlotMSCache2::getW ( Int  chnk,
Int  irel 
) [inline]

Definition at line 199 of file PlotMSCache2.h.

References w_.

Double casa::PlotMSCache2::getWt ( Int  chnk,
Int  irel 
) [inline]

Definition at line 213 of file PlotMSCache2.h.

References wt_.

Double casa::PlotMSCache2::getWwave ( Int  chnk,
Int  irel 
) [inline]

Definition at line 202 of file PlotMSCache2.h.

References wwave_.

Bool casa::PlotMSCache2::goodChunk ( Int  ichunk) [inline]

A chunk is good (T) if it contains data (when averaging, some chunks may have nrows=0)

Definition at line 127 of file PlotMSCache2.h.

References goodChunk_.

bool casa::PlotMSCache2::hasReferenceValue ( PMS::Axis  axis) [inline]

Is there a reference value for the specified axis?

Definition at line 130 of file PlotMSCache2.h.

References cacheReady().

Referenced by referenceValue().

void casa::PlotMSCache2::increaseChunks ( Int  nc = 0) [protected]

Increase the number of chunks.

PlotMSIndexer& casa::PlotMSCache2::indexer ( uInt  i) [inline]

Definition at line 114 of file PlotMSCache2.h.

References indexer_.

virtual void casa::PlotMSCache2::load ( const vector< PMS::Axis > &  axes,
const vector< PMS::DataColumn > &  data,
const String msname,
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.

void casa::PlotMSCache2::loadAxis ( VisBuffer vb,
Int  vbnum,
PMS::Axis  axis,
PMS::DataColumn  data = PMS::DEFAULT_DATACOLUMN 
) [protected]

Loads the specific axis/metadata into the cache using the given VisBuffer.

void casa::PlotMSCache2::loadChunks ( ROVisibilityIterator vi,
const vector< PMS::Axis >  loadAxes,
const vector< PMS::DataColumn >  loadData,
const PlotMSAveraging averaging,
PlotMSCacheThread thread 
) [protected]

Loop over VisIter, filling the cache.

void casa::PlotMSCache2::loadChunks ( ROVisibilityIterator vi,
const PlotMSAveraging averaging,
const Vector< Int > &  nIterPerAve,
const vector< PMS::Axis >  loadAxes,
const vector< PMS::DataColumn >  loadData,
PlotMSCacheThread thread 
) [protected]
vector<pair<PMS::Axis, unsigned int> > casa::PlotMSCache2::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).

void casa::PlotMSCache2::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::PlotMSCache2::logDebug ( const String method,
const String message 
) [inline, protected]

Definition at line 310 of file PlotMSCache2.h.

References log(), and casa::PlotLogger::MSG_DEBUG.

void casa::PlotMSCache2::logError ( const String method,
const String message 
) [inline, protected]

Definition at line 314 of file PlotMSCache2.h.

References log(), and casa::PlotLogger::MSG_ERROR.

void casa::PlotMSCache2::logFlag ( const String message) [inline, protected]

Definition at line 319 of file PlotMSCache2.h.

References log(), casa::PMS::LOG_EVENT_FLAG, and casa::PMS::LOG_ORIGIN_FLAG.

void casa::PlotMSCache2::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 308 of file PlotMSCache2.h.

References log(), and casa::PlotLogger::MSG_INFO.

void casa::PlotMSCache2::logLoad ( const String message) [inline, protected]
void casa::PlotMSCache2::logWarn ( const String method,
const String message 
) [inline, protected]

Definition at line 312 of file PlotMSCache2.h.

References log(), and casa::PlotLogger::MSG_WARN.

Int casa::PlotMSCache2::nChunk ( ) const [inline]

Report the number of chunks.

Definition at line 117 of file PlotMSCache2.h.

References nChunk_.

Referenced by casa::PlotMSIndexer::nChunk().

Vector<Bool> casa::PlotMSCache2::netAxesMask ( PMS::Axis  xaxis,
PMS::Axis  yaxis 
) [protected]

Return the net axes mask for the currently set plot axes.

Int casa::PlotMSCache2::nIter ( ) [inline]

Reference an indexer.

Definition at line 113 of file PlotMSCache2.h.

References indexer_, and casa::PtrBlock< T >::nelements().

unsigned int casa::PlotMSCache2::nPointsForAxis ( PMS::Axis  axis) const [protected]

Returns the number of points loaded for the given axis or 0 if not loaded.

double casa::PlotMSCache2::referenceValue ( PMS::Axis  axis) [inline]

Definition at line 131 of file PlotMSCache2.h.

References hasReferenceValue(), and refTime().

Double casa::PlotMSCache2::refTime ( ) const [inline]

Report the reference time for this cache (in seconds)

Definition at line 134 of file PlotMSCache2.h.

References refTime_p.

Referenced by referenceValue(), and casa::PlotMSIndexer::refTime().

void casa::PlotMSCache2::release ( const vector< PMS::Axis > &  axes)

Releases the given axes from the cache.

void casa::PlotMSCache2::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::PlotMSCache2::setPlotMask ( ) [protected]

Derive the plot mask by appropriately collapsing the flags.

void casa::PlotMSCache2::setPlotMask ( Int  chunk) [protected]
void casa::PlotMSCache2::setUpIndexer ( PMS::Axis  iteraxis = PMS::SCAN,
Bool  globalXRange = False,
Bool  globalYRange = False 
)

Set up indexing for the plot.

void casa::PlotMSCache2::setUpVisIter ( const String msname,
const PlotMSSelection selection,
Bool  readonly = True,
Bool  chanselect = True,
Bool  corrselect = True 
) [protected]

Setup the VisIter.

PlotMSTransformations& casa::PlotMSCache2::transformations ( ) [inline]

Access to transformations state in the cache.

Definition at line 146 of file PlotMSCache2.h.

References transformations_.

void casa::PlotMSCache2::trapExcessVolume ( map< PMS::Axis, Bool pendingLoadAxes) [protected]

Trap attempt to use to much memory (too many points)


Friends And Related Function Documentation

friend class PlotMSData [friend]

Friend class declarations.

Definition at line 88 of file PlotMSCache2.h.

friend class PlotMSIndexer [friend]

Definition at line 89 of file PlotMSCache2.h.


Member Data Documentation

Data (the heavy part)

Definition at line 365 of file PlotMSCache2.h.

Referenced by getAmp().

Definition at line 354 of file PlotMSCache2.h.

Referenced by getAnt1().

Definition at line 354 of file PlotMSCache2.h.

Referenced by getAnt2().

Definition at line 372 of file PlotMSCache2.h.

Referenced by getAntenna().

meta info for locate output

Definition at line 399 of file PlotMSCache2.h.

Definition at line 401 of file PlotMSCache2.h.

Definition at line 389 of file PlotMSCache2.h.

Referenced by averaging().

Definition at line 375 of file PlotMSCache2.h.

Referenced by getAz0().

Definition at line 373 of file PlotMSCache2.h.

Referenced by getAz().

Definition at line 354 of file PlotMSCache2.h.

Referenced by getBsln().

Definition at line 358 of file PlotMSCache2.h.

Referenced by getChan().

A container for channel averaging bounds.

Definition at line 405 of file PlotMSCache2.h.

Referenced by chanAveBounds().

The fundamental meta-data cache.

Definition at line 349 of file PlotMSCache2.h.

Referenced by chunkShapes().

Definition at line 359 of file PlotMSCache2.h.

Referenced by getCorr().

PMS::Axis casa::PlotMSCache2::currentX_ [protected]

Definition at line 379 of file PlotMSCache2.h.

PMS::Axis casa::PlotMSCache2::currentY_ [protected]

Definition at line 379 of file PlotMSCache2.h.

Current setup/state.

Definition at line 378 of file PlotMSCache2.h.

Referenced by cacheReady().

Definition at line 375 of file PlotMSCache2.h.

Referenced by getEl0().

Definition at line 373 of file PlotMSCache2.h.

Referenced by getEl().

Definition at line 352 of file PlotMSCache2.h.

Referenced by getField().

Definition at line 366 of file PlotMSCache2.h.

Referenced by flag(), and getFlag().

Definition at line 367 of file PlotMSCache2.h.

Referenced by flagrow(), and getFlagRow().

Definition at line 402 of file PlotMSCache2.h.

Definition at line 357 of file PlotMSCache2.h.

Referenced by getFreq().

Definition at line 350 of file PlotMSCache2.h.

Referenced by goodChunk().

Definition at line 375 of file PlotMSCache2.h.

Referenced by getHA0().

Definition at line 365 of file PlotMSCache2.h.

Referenced by getImag().

The indexer into the cache.

Definition at line 334 of file PlotMSCache2.h.

Referenced by indexer(), and nIter().

map<PMS::Axis, bool> casa::PlotMSCache2::loadedAxes_ [protected]

Definition at line 380 of file PlotMSCache2.h.

map<PMS::Axis, PMS::DataColumn> casa::PlotMSCache2::loadedAxesData_ [protected]

Definition at line 381 of file PlotMSCache2.h.

Definition at line 346 of file PlotMSCache2.h.

Definition at line 346 of file PlotMSCache2.h.

const PMS::Axis casa::PlotMSCache2::METADATA[] [static]

Definition at line 96 of file PlotMSCache2.h.

Global min/max.

Definition at line 346 of file PlotMSCache2.h.

Definition at line 346 of file PlotMSCache2.h.

A copy of the Data parameters.

Definition at line 387 of file PlotMSCache2.h.

const unsigned int casa::PlotMSCache2::N_METADATA [static]

Definition at line 97 of file PlotMSCache2.h.

The number of antennas.

Definition at line 343 of file PlotMSCache2.h.

The number of chunks in the cache.

Definition at line 337 of file PlotMSCache2.h.

Referenced by nChunk().

Axes mask.

Definition at line 393 of file PlotMSCache2.h.

Provisional flagging helpers.

Definition at line 408 of file PlotMSCache2.h.

Definition at line 375 of file PlotMSCache2.h.

Referenced by getPA0().

Optional parts of the cache.

Definition at line 362 of file PlotMSCache2.h.

Definition at line 371 of file PlotMSCache2.h.

Referenced by getParAng().

Definition at line 365 of file PlotMSCache2.h.

Referenced by getPha().

collapsed flag mask for plotting

Definition at line 396 of file PlotMSCache2.h.

Private data.

Parent plotms. (used only for access to logger, so far)

Definition at line 331 of file PlotMSCache2.h.

Definition at line 365 of file PlotMSCache2.h.

Referenced by getReal().

The reference time for this cache, in seconds.

Definition at line 340 of file PlotMSCache2.h.

Referenced by refTime().

Definition at line 353 of file PlotMSCache2.h.

Referenced by getRow().

VisIterator pointer.

Definition at line 411 of file PlotMSCache2.h.

Definition at line 352 of file PlotMSCache2.h.

Referenced by getScan().

Definition at line 388 of file PlotMSCache2.h.

Definition at line 352 of file PlotMSCache2.h.

Referenced by getSpw().

Definition at line 400 of file PlotMSCache2.h.

const unsigned int casa::PlotMSCache2::THREAD_SEGMENT [static]

Definition at line 101 of file PlotMSCache2.h.

Definition at line 351 of file PlotMSCache2.h.

Referenced by getTime().

Definition at line 351 of file PlotMSCache2.h.

Referenced by getTimeIntr().

Definition at line 390 of file PlotMSCache2.h.

Referenced by transformations().

Definition at line 355 of file PlotMSCache2.h.

Referenced by getU().

Definition at line 355 of file PlotMSCache2.h.

Referenced by getUVDist().

Definition at line 356 of file PlotMSCache2.h.

Referenced by getUVDistL().

Definition at line 356 of file PlotMSCache2.h.

Referenced by getUwave().

Definition at line 355 of file PlotMSCache2.h.

Referenced by getV().

VisBufferUtil for freq/vel calculations.

Definition at line 415 of file PlotMSCache2.h.

Definition at line 357 of file PlotMSCache2.h.

Referenced by getVel().

Volume meter for volume calculation.

Definition at line 418 of file PlotMSCache2.h.

Definition at line 356 of file PlotMSCache2.h.

Referenced by getVwave().

Definition at line 355 of file PlotMSCache2.h.

Referenced by getW().

Definition at line 369 of file PlotMSCache2.h.

Referenced by getWt().

Definition at line 412 of file PlotMSCache2.h.

Definition at line 356 of file PlotMSCache2.h.

Referenced by getWwave().

Definition at line 384 of file PlotMSCache2.h.

Definition at line 384 of file PlotMSCache2.h.

Definition at line 384 of file PlotMSCache2.h.

Global ranges.

Definition at line 384 of file PlotMSCache2.h.

Definition at line 384 of file PlotMSCache2.h.

Definition at line 384 of file PlotMSCache2.h.

Definition at line 384 of file PlotMSCache2.h.

Definition at line 384 of file PlotMSCache2.h.


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