85 virtual void loadIt(std::vector<PMS::Axis>& loadAxes,
86 std::vector<PMS::DataColumn>& loadData,
100 std::vector<PMS::DataColumn>& loadData);
103 PMS::DataColumn newdata);
112 std::vector<PMS::Axis>& loadAxes,
113 std::vector<PMS::DataColumn>& loadData,
131 std::vector<PMS::Axis>& loadAxes,
132 std::vector<PMS::DataColumn>& loadData,
142 const std::vector<PMS::Axis> loadAxes,
143 const std::vector<PMS::DataColumn> loadData,
148 const std::vector<PMS::Axis> loadAxes,
149 const std::vector<PMS::DataColumn> loadData,
156 std::vector<PMS::Axis> loadAxes,
157 std::vector<PMS::DataColumn> loadData);
161 std::vector<PMS::DataColumn> loadData,
map< casacore::String, casacore::Int > intentIds_
Create map of intent names to "intent ids" since state ids can duplicate intents. ...
void loadAxis(vi::VisBuffer2 *vb, casacore::Int vbnum, PMS::Axis axis, PMS::DataColumn data=PMS::DEFAULT_DATACOLUMN)
Loads the specific axis/metadata into the cache using the given VisBuffer.
virtual casacore::String polname(casacore::Int ipol)
Access to pol names.
A 1-D Specialization of the Array class.
Specifies averaging parameters for an MS.
std::vector< casacore::IPosition > visBufferShapes_
bool countChunks(vi::VisibilityIterator2 &vi, casacore::Vector< casacore::Int > &nIterPerAve, std::vector< PMS::Axis > &loadAxes, std::vector< PMS::DataColumn > &loadData, ThreadCommunication *thread)
Estimate cache size for averaging.
void loadPageHeaderCache(const casacore::MeasurementSet &selectedMS)
Page Header Cache loading.
VisibilityIterator2 iterates through one or more readonly MeasurementSets.
void trapExcessVolume(map< PMS::Axis, casacore::Bool > pendingLoadAxes)
Trap attempt to use to much memory (too many points)
casacore::Vector< casacore::Int > assignIntentIds(casacore::Vector< casacore::Int > &stateIds)
Use map to assign intent ids.
void forceVBread(vi::VisBuffer2 *vb, std::vector< PMS::Axis > loadAxes, std::vector< PMS::DataColumn > loadData)
Force read on vb for requested axes (so pre-cache averaging treats all data it should) ...
casacore::String checkLoadedAxesDatacol()
FrequencySelectionUsingChannels()
bool useAveragedVisBuffer(PMS::Axis axis)
For averaging done by PlotMSVBAverager; Some axes need to come from VB2 attached to VI2...
Specifies an casacore::MS selection.
void setUpFrequencySelectionChannels(vi::FrequencySelectionUsingChannels fs, casacore::Vector< casacore::Vector< casacore::Slice > > chansel)
PMS::DataColumn checkReqDataColumn(PMS::DataColumn reqDataCol)
map< casacore::Int, casacore::Int > chansPerSpw_
MSCacheVolMeter * vm_
Volume meter for volume calculation.
casacore::String filename_
A copy of the casacore::Data parameters.
casacore::Vector< casacore::Double > calcVelocity(vi::VisBuffer2 *vb)
PlotMSAveraging & averaging()
Access to averaging state in the cache:
MSCache(PlotMSApp *parent)
Constructor which takes parent PlotMS.
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of data
virtual void loadIt(std::vector< PMS::Axis > &loadAxes, std::vector< PMS::DataColumn > &loadData, ThreadCommunication *thread=NULL)
casacore::MS-specific loadIt method
PlotMSCacheBase::Type cacheType() const
Identify myself.
Controller class for plotms.
A class to average VisBuffers for PlotMS.
Referenced counted pointer for constant data.
virtual ~MSCache()
Destructor.
vi::PointingInterpolationTVI * piTvi_
casacore::String normalizeColumnName(casacore::String plotmscol)
Specifies flagging parameters (including possibly flag extension) for an MS.
void setFilename(casacore::String filename)
...not yet casacore::MS-specific...
void updateProgress(ThreadCommunication *thread, casacore::Int chunk)
void completeLoadPageHeaderCache()
bool Bool
Define the standard types used by Casacore.
void discernData(std::vector< PMS::Axis > loadAxes, std::vector< PMS::DataColumn > loadData, PlotMSVBAverager &vba)
Tell time averager which data column to read.
casacore::String getDataColumn(std::vector< PMS::Axis > &loadAxes, std::vector< PMS::DataColumn > &loadData)
Set up: DataColumn.
virtual void flagToDisk(const PlotMSFlagging &flagging, casacore::Vector< casacore::Int > &chunks, casacore::Vector< casacore::Int > &relids, casacore::Bool setFlag, PlotMSIndexer *indexer, int dataIndex)
Set flags in the MS.
static const DataColumn DEFAULT_DATACOLUMN
A Table intended to hold astronomical data (a set of Measurements).
PlotMSIndexer & indexer(int dataIndex, casacore::uInt i)
Reference an indexer; returns -1 if there is no indexer for the given dataIndex.
void loadError(casacore::String mesg)
const PageHeaderCache & pageHeaderCache() const
void loadChunks(vi::VisibilityIterator2 &vi, const std::vector< PMS::Axis > loadAxes, const std::vector< PMS::DataColumn > loadData, ThreadCommunication *thread)
Loop over VisIter, filling the cache.
VisBuffer2s encapsulate one chunk of visibility data for processing.
Type
TBD: friend class PlotMSData;.
void adjustCurrentAxes(PMS::Axis axis, PMS::DataColumn olddata, PMS::DataColumn newdata)
PageHeaderCache pageHeaderCache_
Page header items.
virtual bool isEphemeris()
Returns whether or not the ephemeris data has been attached to a field - radial velocity and rho...
vi::VisibilityIterator2 * vi_p
VisIterator pointer.
String: the storage and methods of handling collections of characters.
void setUpVisIter(PlotMSSelection &selection, PlotMSCalibration &calibration, casacore::String dataColumn, std::vector< PMS::Axis > &loadAxes, std::vector< PMS::DataColumn > &loadData, casacore::Bool interactive=false, casacore::Bool estimateMemory=false, ThreadCommunication *thread=NULL)
VisIter.
void getNamesFromMS(casacore::MeasurementSet &ms)
MS String names.
Specifies calibration parameters for an MS.
void updateEstimateProgress(ThreadCommunication *thread)
Subchunk class Provides the ordered pair identifying the current subchunk The first component is the chunk(goes from 0 to nChunks-1 during the outer loop iteration).The second component is the subchunk number which is zero after VisibilityIterator
casacore::Vector< casacore::Int > nVBPerAve_
Provisional flagging helpers.
casacore::CountedPtr< MSCache > MSCachePtr
Defines communication mechanisms that the model and data can use to communicate with the UI concernin...
casacore::String dataColumn_
Datacolumn to use (requested or "adjusted")
bool pointingsPlotSupported(const MeasurementSet *const &ms)
Check if plotting antennas pointing directions is supported for the given MeasurementSet.
void mapIntentNamesToIds()