casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
casa::vi::VisBufferImpl2 Class Reference

VisBufferImpls encapsulate one chunk of visibility data for processing. More...

#include <VisBufferImpl2.h>

Inheritance diagram for casa::vi::VisBufferImpl2:
casa::vi::VisBuffer2 casa::MSTransformBufferImpl casa::vi::VisBufferImplAsync2

Public Member Functions

 VisBufferImpl2 (VisBufferOptions options=VbNoOptions)
 Create empty VisBufferImpl2 you can assign to or attach. More...
 
 VisBufferImpl2 (ViImplementation2 *iter, VisBufferOptions options)
 Construct VisBufferImpl2 for a particular ViImplementation2 The buffer will remain synchronized with the iterator. More...
 
virtual ~VisBufferImpl2 ()
 Destructor (detaches from VisIter) More...
 
void appendRow (ms::Vbi2MsRow *rowSrc, casacore::Int initialCapacity, const VisBufferComponents2 &optionalComponentsToCopy, bool doCopy=true)
 
void appendRowsComplete ()
 
casacore::Int appendSize () const
 
virtual void copy (const VisBuffer2 &other, casacore::Bool fetchIfNeeded=true)
 Copies all of the components (or just the one in the cache) from the specified VisBuffer into this one. More...
 
virtual void copyComponents (const VisBuffer2 &other, const VisBufferComponents2 &components, casacore::Bool allowShapeChange=false, casacore::Bool fetchIfNeeded=true)
 Copies the specified components (or just the one in the cache) from the specified VisBuffer into this one. More...
 
virtual void copyCoordinateInfo (const VisBuffer2 *vb, casacore::Bool dirDependent, casacore::Bool allowShapeChange=false, casacore::Bool fetchIfNeeded=true)
 Copies the coordinate components (or just the ones in the cache if fetchIfNeeded is false) from the specified VisBuffer into this one. More...
 
virtual casacore::Vector
< casacore::Stokes::StokesTypes
getCorrelationTypesDefined () const
 
More...
 
virtual casacore::Vector
< casacore::Stokes::StokesTypes
getCorrelationTypesSelected () const
 
virtual casacore::Vector
< casacore::Int
getCorrelationTypes () const
 
virtual casacore::String getFillErrorMessage () const
 
virtual casacore::Double getFrequency (casacore::Int rowInBuffer, casacore::Int frequencyIndex, casacore::Int frame=FrameNotSpecified) const
 
virtual const casacore::Vector
< casacore::Double > & 
getFrequencies (casacore::Int rowInBuffer, casacore::Int frame=FrameNotSpecified) const
 
virtual casacore::Int getChannelNumber (casacore::Int rowInBuffer, casacore::Int frequencyIndex) const
 
virtual const casacore::Vector
< casacore::Int > & 
getChannelNumbers (casacore::Int rowInBuffer) const
 
virtual casacore::Vector
< casacore::Int
getChannelNumbersSelected (casacore::Int outputChannelIndex) const
 
ms::MsRowgetRow (casacore::Int row) const
 
ms::MsRowgetRowMutable (casacore::Int row)
 
virtual void invalidate ()
 
virtual casacore::Bool isAttached () const
 
virtual casacore::Bool isFillable () const
 
virtual void setShape (casacore::Int nCorrelations, casacore::Int nChannels, casacore::Int nRows, casacore::Bool clearTheCache=true)
 
virtual void validateShapes () const
 
virtual void writeChangesBack ()
 
More...
 
virtual void initWeightSpectrum (const casacore::Cube< casacore::Float > &wtspec)
 
virtual void initSigmaSpectrum (const casacore::Cube< casacore::Float > &sigspec)
 
virtual const
casacore::MeasurementSet
ms () const
 Reference to underlying MS, via the Vii. More...
 
virtual const vi::SubtableColumnssubtableColumns () const
 
virtual casacore::Bool existsColumn (VisBufferComponent2 id) const
 
virtual const casacore::Vector
< casacore::Float > & 
feedPa (casacore::Double time) const
 –> This needs to be removed: virtual casacore::Bool fetch(const asyncio::PrefetchColumns *pfc); More...
 
virtual casacore::Float parang0 (casacore::Double time) const
 NOMINAL parallactic angle (feed p.a. More...
 
virtual const casacore::Vector
< casacore::Float > & 
parang (casacore::Double time) const
 Calculates the parallactic angle of each antenna in the array at the specified time. More...
 
virtual casacore::MDirection azel0 (casacore::Double time) const
 
More...
 
virtual const casacore::Vector
< casacore::MDirection > & 
azel (casacore::Double time) const
 Returns the pointing angle for each antenna in the array at the specified time. More...
 
virtual casacore::Double hourang (casacore::Double time) const
 Hour angle for specified time. More...
 
virtual void sortCorr ()
 casacore::Sort/unsort the correlations, if necessary (Rudimentary handling of non-canonically sorted correlations–use with care!) More...
 
virtual void unSortCorr ()
 
virtual void normalize ()
 Normalize the visCube by the modelVisCube (and optionally also divide visCube_p by its normalized amp) More...
 
virtual void phaseCenterShift (const casacore::Vector< casacore::Double > &phase)
 Rotate visibility phase for given vector (dim = nrow of vb) of phases (metres) More...
 
virtual void phaseCenterShift (casacore::Double dx, casacore::Double dy)
 Rotate visibility phase for phase center offsets (arcsecs) More...
 
virtual void resetWeightsUsingSigma ()
 Fill weightMat according to sigma column. More...
 
virtual casacore::Bool isNewArrayId () const
 Rotate visibility phase for given vector (dim = nrow of vb) of phases (metres) More...
 
virtual casacore::Bool isNewFieldId () const
 
virtual casacore::Bool isNewMs () const
 
virtual casacore::Bool isNewSpectralWindow () const
 
virtual casacore::Bool isRekeyable () const
 
virtual casacore::Bool isWritable () const
 
virtual casacore::IPosition getShape () const
 
virtual casacore::Int msId () const
 
virtual casacore::String msName (casacore::Bool stripPath=false) const
 
virtual Subchunk getSubchunk () const
 
virtual casacore::Bool areCorrelationsSorted () const
 
virtual casacore::IPosition getValidShape (casacore::Int) const
 
virtual VisModelDataIgetVisModelData () const
 
casacore::Data accessors and setters (where appropriate) There are the methods that allows access to the items cached in the VisBuffer.The straight accessors provide read-only access to the item.Where the item is allowed to be modified
 
casacore::Data accessors and
one or more set methods are
provided N weight vs weightMat
will not modify the cached
value in a different
representation *virtual const
casacore::Vector
< casacore::Int > & 
antenna1 () const
 
virtual void setAntenna1 (const casacore::Vector< casacore::Int > &value)
 
virtual const casacore::Vector
< casacore::Int > & 
antenna2 () const
 
virtual void setAntenna2 (const casacore::Vector< casacore::Int > &value)
 
virtual const casacore::Vector
< casacore::Int > & 
arrayId () const
 
virtual void setArrayId (const casacore::Vector< casacore::Int > &)
 
virtual const casacore::Vector
< casacore::SquareMatrix
< casacore::Complex, 2 > > & 
cjones () const
 Returns the Jones C matrix for each antenna. More...
 
virtual const casacore::Vector
< casacore::Int > & 
correlationTypes () const
 Returns the correlation type of each correlation in the VisCube. More...
 
virtual const casacore::Vector
< casacore::Int > & 
dataDescriptionIds () const
 virtual casacore::Int dataDescriptionId () const; virtual void setDataDescriptionId (casacore::Int value); More...
 
virtual void setDataDescriptionIds (const casacore::Vector< casacore::Int > &)
 
virtual const casacore::Vector
< casacore::MDirection > & 
direction1 () const
 
virtual const casacore::Vector
< casacore::MDirection > & 
direction2 () const
 
virtual const casacore::Vector
< casacore::Double > & 
exposure () const
 
virtual void setExposure (const casacore::Vector< casacore::Double > &value)
 
virtual const casacore::Vector
< casacore::Int > & 
feed1 () const
 
virtual void setFeed1 (const casacore::Vector< casacore::Int > &value)
 
virtual const casacore::Vector
< casacore::Float > & 
feedPa1 () const
 Calculates the parallactic angle for feed 0 of the row's Antenna1. More...
 
virtual const casacore::Vector
< casacore::Int > & 
feed2 () const
 
virtual void setFeed2 (const casacore::Vector< casacore::Int > &value)
 
virtual const casacore::Vector
< casacore::Float > & 
feedPa2 () const
 Calculates the parallactic angle for feed 0 of the row's Antenna2. More...
 
virtual const casacore::Vector
< casacore::Int > & 
fieldId () const
 
virtual void setFieldId (const casacore::Vector< casacore::Int > &)
 
virtual const casacore::Array
< casacore::Bool > & 
flagCategory () const
 virtual const casacore::Matrix<casacore::Bool> & flag () const; virtual void setFlag (const casacore::Matrix<casacore::Bool>&); More...
 
virtual void setFlagCategory (const casacore::Array< casacore::Bool > &)
 
virtual const casacore::Cube
< casacore::Bool > & 
flagCube () const
 
virtual void setFlagCube (const casacore::Cube< casacore::Bool > &)
 
virtual const casacore::Vector
< casacore::Bool > & 
flagRow () const
 
virtual void setFlagRow (const casacore::Vector< casacore::Bool > &)
 
virtual const casacore::Matrix
< casacore::Float > & 
imagingWeight () const
 This method returns the imagin g If an imaging weight generator has not been supplied to the associated VisibilityIterator then this method will throw an exception. More...
 
void setImagingWeight (const casacore::Matrix< casacore::Float > &newImagingWeights)
 
virtual casacore::Int nAntennas () const
 
virtual casacore::Int nChannels () const
 
virtual casacore::Int nCorrelations () const
 Returns the number of correlations along the visCube correlation axis. More...
 
virtual casacore::Int nRows () const
 Returns the number of rows in this VisBuffer. More...
 
virtual const casacore::Vector
< casacore::Int > & 
observationId () const
 
virtual void setObservationId (const casacore::Vector< casacore::Int > &value)
 
virtual const
casacore::MDirection
phaseCenter () const
 Returns the phase center of the array for the specified row. More...
 
virtual casacore::Int polarizationFrame () const
 Returns the polarization frame for the specified row. More...
 
virtual casacore::Int polarizationId () const
 
virtual const casacore::Vector
< casacore::Int > & 
processorId () const
 
virtual void setProcessorId (const casacore::Vector< casacore::Int > &value)
 
virtual const casacore::Vector
< casacore::uInt > & 
rowIds () const
 The returned casacore::Vector serves as a map between the rows in the VisBuffer and the row IDs in the underlying casacore::MS main virtual table: mainTableID [i] = rowIds () [ i] = 0;. More...
 
virtual const casacore::Vector
< casacore::Int > & 
scan () const
 
virtual void setScan (const casacore::Vector< casacore::Int > &value)
 
virtual const casacore::Matrix
< casacore::Float > & 
sigma () const
 
virtual void setSigma (const casacore::Matrix< casacore::Float > &)
 
virtual const casacore::Vector
< casacore::Int > & 
spectralWindows () const
 virtual const casacore::Matrix<casacore::Float> & sigmaMat () const; virtual casacore::Int spectralWindow () const; More...
 
virtual void setSpectralWindows (const casacore::Vector< casacore::Int > &spectralWindows)
 
virtual const casacore::Vector
< casacore::Int > & 
stateId () const
 virtual const casacore::Matrix<casacore::Float> & sigmaMat () const = 0; // [nC,nR] More...
 
virtual void setStateId (const casacore::Vector< casacore::Int > &value)
 
virtual const casacore::Vector
< casacore::Double > & 
time () const
 
virtual void setTime (const casacore::Vector< casacore::Double > &value)
 
virtual const casacore::Vector
< casacore::Double > & 
timeCentroid () const
 
virtual void setTimeCentroid (const casacore::Vector< casacore::Double > &value)
 
virtual const casacore::Vector
< casacore::Double > & 
timeInterval () const
 
virtual void setTimeInterval (const casacore::Vector< casacore::Double > &value)
 
virtual const casacore::Matrix
< casacore::Double > & 
uvw () const
 
virtual void setUvw (const casacore::Matrix< casacore::Double > &value)
 
virtual const casacore::Cube
< casacore::Complex > & 
visCubeCorrected () const
 virtual const casacore::Matrix<CStokesVector> & vis () const = 0; // [nF,nR] virtual void setVis (casacore::Matrix<CStokesVector> &) = 0; // [nF,nR] More...
 
virtual void setVisCubeCorrected (const casacore::Cube< casacore::Complex > &)
 
virtual const casacore::Cube
< casacore::Float > & 
visCubeFloat () const
 virtual const casacore::Matrix<CStokesVector> & visCorrected () const; virtual void setVisCorrected (const casacore::Matrix<CStokesVector> &); More...
 
virtual void setVisCubeFloat (const casacore::Cube< casacore::Float > &)
 
virtual const casacore::Cube
< casacore::Complex > & 
visCubeModel () const
 
virtual void setVisCubeModel (const casacore::Complex &c)
 
virtual void setVisCubeModel (const casacore::Cube< casacore::Complex > &vis)
 
virtual void setVisCubeModel (const casacore::Vector< casacore::Float > &stokes)
 virtual void setVisCubeModel(const casacore::Vector<casacore::Float>& stokes); More...
 
virtual const casacore::Cube
< casacore::Complex > & 
visCube () const
 virtual void setVisModel (casacore::Matrix<CStokesVector> &); More...
 
virtual void setVisCube (const casacore::Complex &c)
 
virtual void setVisCube (const casacore::Cube< casacore::Complex > &)
 
virtual const casacore::Matrix
< casacore::Float > & 
weight () const
 virtual const casacore::Matrix<CStokesVector> & vis () const; virtual void setVis (casacore::Matrix<CStokesVector> &); More...
 
virtual void setWeight (const casacore::Matrix< casacore::Float > &)
 
virtual const casacore::Cube
< casacore::Float > & 
weightSpectrum () const
 virtual const casacore::Matrix<casacore::Float> & weightMat () const = 0; // [nC,nR] virtual void setWeightMat (const casacore::Matrix<casacore::Float>& value) = 0; // [nC,nR] More...
 
virtual void setWeightSpectrum (const casacore::Cube< casacore::Float > &)
 
virtual const casacore::Cube
< casacore::Float > & 
sigmaSpectrum () const
 
virtual void setSigmaSpectrum (const casacore::Cube< casacore::Float > &value)
 
- Public Member Functions inherited from casa::vi::VisBuffer2
 VisBuffer2 (const VisBuffer2 &)=delete
 make noncopyable... More...
 
VisBuffer2operator= (const VisBuffer2 &)=delete
 
 VisBuffer2 ()
 
virtual ~VisBuffer2 ()
 Used by framework. More...
 
virtual const VisibilityIterator2getVi () const
 For attached VBs this returns the VI the VB is attached to. More...
 
casacore::Data accessors and setters (where appropriate) There are the methods that allows access to the items cached in the VisBuffer.The straight accessors provide read-only access to the item.Where the item is allowed to be modified
 

Public Attributes

casacore::Data accessors and
one or more set methods are
provided N 
B: the VB usually caches the information in the representation requested so that using a setter to modify a value (e.g.
 

Protected Member Functions

void adjustWeightFactorsAndFlags (casacore::Matrix< casacore::Float > &rowWeightFactors, casacore::Bool useWeightSpectrum, casacore::Int nRows, casacore::Int nCorrelations, casacore::Int nChannelsOut)
 virtual void cacheCopy (const VisBufferImpl2 & other, casacore::Bool markAsCached); More...
 
void adjustWeightAndSigmaMatrices (casacore::Int nChannelsAveraged, casacore::Int nChannelsOut, casacore::Int nRows, casacore::Int nCorrelations, casacore::Int nChannelsSelected, const casacore::Matrix< casacore::Float > &rowWeightFactors)
 
casacore::Int averageChannelFrequencies (casacore::Int nChannelsOut, const casacore::Vector< casacore::Int > &channels, const casacore::Matrix< casacore::Int > &averagingBounds)
 
void averageFlagInfoChannels (const casacore::Matrix< casacore::Int > &averagingBounds, casacore::Int nChannelsOut, casacore::Bool useWeightSpectrum)
 
template<typename T >
void averageVisCubeChannels (T &dataCache, casacore::Int nChanOut, const casacore::Matrix< casacore::Int > &averagingbounds)
 
virtual void cacheClear (casacore::Bool markAsCached=false)
 
virtual void cacheResizeAndZero (const VisBufferComponents2 &exclusions=VisBufferComponents2())
 
virtual void checkVisIter (const char *func, const char *file, int line, const char *extra="") const
 
void computeRowWeightFactors (casacore::Matrix< casacore::Float > &rowWeightFactors, casacore::Bool useWeightSpectrum)
 
virtual void configureNewSubchunk (casacore::Int msId, const casacore::String &msName, casacore::Bool isNewMs, casacore::Bool isNewArrayId, casacore::Bool isNewFieldId, casacore::Bool isNewSpectralWindow, const Subchunk &subchunk, casacore::Int nRows, casacore::Int nChannels, casacore::Int nCorrelations, const casacore::Vector< casacore::Int > &correlations, const casacore::Vector< casacore::Stokes::StokesTypes > &correlationsDefined, const casacore::Vector< casacore::Stokes::StokesTypes > &correlationsSelected, casacore::CountedPtr< WeightScaling > weightScaling)
 
virtual void copyRow (casacore::Int sourceRow, casacore::Int destinationRow)
 
virtual void deleteRows (const casacore::Vector< casacore::Int > &rowsToDelete)
 
virtual void dirtyComponentsAdd (const VisBufferComponents2 &additionalDirtyComponents)
 
virtual void dirtyComponentsAdd (VisBufferComponent2 component)
 
virtual void dirtyComponentsClear ()
 
virtual VisBufferComponents2 dirtyComponentsGet () const
 
virtual void dirtyComponentsSet (const VisBufferComponents2 &dirtyComponents)
 
virtual void dirtyComponentsSet (VisBufferComponent2 component)
 
virtual casacore::Bool hasShape () const
 
void normalizeRow (casacore::Int row, casacore::Int nCorrelations, const casacore::Cube< casacore::Bool > &flagged, casacore::Cube< casacore::Complex > &visCube, casacore::Cube< casacore::Complex > &modelCube, casacore::Matrix< casacore::Float > &weightMat)
 
virtual void sortCorrelationsAux (casacore::Bool makeSorted)
 
virtual ViImplementation2getViiP () const
 
void registerCacheItem (VbCacheItemBase *)
 
virtual void resizeRows (casacore::Int newNRows)
 
virtual void stateCopy (const VisBufferImpl2 &other)
 
virtual void setFillable (casacore::Bool isFillable)
 
virtual void setRekeyable (casacore::Bool isRekeyable)
 
virtual bool setWritability (bool newWritability)
 
virtual void setupValidShapes ()
 
template<typename Coord >
void updateCoord (Coord &item, const Coord &otherItem)
 
virtual casacore::Vector
< casacore::Bool > & 
flagRowRef ()
 
virtual casacore::Cube
< casacore::Bool > & 
flagCubeRef ()
 
virtual casacore::Cube
< casacore::Complex > & 
visCubeRef ()
 
virtual casacore::Cube
< casacore::Complex > & 
visCubeCorrectedRef ()
 
virtual casacore::Cube
< casacore::Complex > & 
visCubeModelRef ()
 
virtual casacore::Cube
< casacore::Float > & 
weightSpectrumRef ()
 
virtual casacore::Cube
< casacore::Float > & 
sigmaSpectrumRef ()
 
casacore::Float getWeightScaled (casacore::Int row) const
 virtual const casacore::Matrix<CStokesVector> & visModel () const = 0; // [nF,nR] virtual void setVisModel (casacore::Matrix<CStokesVector> &) = 0; // [nF,nR] More...
 
casacore::Float getWeightScaled (casacore::Int correlation, casacore::Int row) const
 
casacore::Float getWeightScaled (casacore::Int correlation, casacore::Int channel, casacore::Int row) const
 
casacore::Float getSigmaScaled (casacore::Int row) const
 
casacore::Float getSigmaScaled (casacore::Int correlation, casacore::Int row) const
 
casacore::Float getSigmaScaled (casacore::Int correlation, casacore::Int channel, casacore::Int row) const
 
virtual casacore::CountedPtr
< WeightScaling
getWeightScaling () const
 
void setIterationInfo (casacore::Int msId, const casacore::String &msName, casacore::Bool isNewMs, casacore::Bool isNewArrayId, casacore::Bool isNewFieldId, casacore::Bool isNewSpectralWindow, const Subchunk &subchunk, const casacore::Vector< casacore::Int > &correlations, const casacore::Vector< casacore::Stokes::StokesTypes > &correlationsDefined, const casacore::Vector< casacore::Stokes::StokesTypes > &correlationsSelected, casacore::CountedPtr< WeightScaling > weightScaling)
 
casacore::Bool weightSpectrumPresent () const
 
casacore::Bool sigmaSpectrumPresent () const
 
- Protected Member Functions inherited from casa::vi::VisBuffer2
virtual void associateWithVi2 (const VisibilityIterator2 *)
 

Private Member Functions

virtual casacore::Bool areCorrelationsInCanonicalOrder () const
 
void checkVisIterBase (const char *func, const char *file, int line, const char *extra="") const
 
void construct (ViImplementation2 *vi, VisBufferOptions options)
 
void constructCache ()
 
virtual void validate ()
 
virtual void fillArrayId (casacore::Vector< casacore::Int > &value) const
 
virtual void fillCorrType (casacore::Vector< casacore::Int > &value) const
 
virtual void fillCubeCorrected (casacore::Cube< casacore::Complex > &value) const
 
virtual void fillCubeModel (casacore::Cube< casacore::Complex > &value) const
 
virtual void fillCubeObserved (casacore::Cube< casacore::Complex > &value) const
 
virtual void fillDataDescriptionId (casacore::Int &value) const
 
virtual void fillDataDescriptionIds (casacore::Vector< casacore::Int > &value) const
 
virtual void fillDirection1 (casacore::Vector< casacore::MDirection > &value) const
 
virtual void fillDirection2 (casacore::Vector< casacore::MDirection > &value) const
 
virtual void fillDirectionAux (casacore::Vector< casacore::MDirection > &value, const casacore::Vector< casacore::Int > &antenna, const casacore::Vector< casacore::Int > &feed, const casacore::Vector< casacore::Float > &feedPa) const
 
virtual void fillExposure (casacore::Vector< casacore::Double > &value) const
 
virtual void fillFeed1 (casacore::Vector< casacore::Int > &value) const
 
virtual void fillFeed2 (casacore::Vector< casacore::Int > &value) const
 
virtual void fillFeedPa1 (casacore::Vector< casacore::Float > &feedPa) const
 
virtual void fillFeedPa2 (casacore::Vector< casacore::Float > &feedPa) const
 
virtual void fillFeedPaAux (casacore::Vector< casacore::Float > &feedPa, const casacore::Vector< casacore::Int > &antenna, const casacore::Vector< casacore::Int > &feed) const
 
virtual void fillFieldId (casacore::Vector< casacore::Int > &value) const
 
virtual void fillFlag (casacore::Matrix< casacore::Bool > &value) const
 
virtual void fillFlagCategory (casacore::Array< casacore::Bool > &value) const
 
virtual void fillFlagCube (casacore::Cube< casacore::Bool > &value) const
 
virtual void fillFlagRow (casacore::Vector< casacore::Bool > &value) const
 
virtual void fillFloatData (casacore::Cube< casacore::Float > &value) const
 
virtual void fillImagingWeight (casacore::Matrix< casacore::Float > &value) const
 
virtual void fillJonesC (casacore::Vector< casacore::SquareMatrix< casacore::Complex, 2 > > &value) const
 
virtual void fillNAntennas (casacore::Int &value) const
 
virtual void fillNChannel (casacore::Int &value) const
 
virtual void fillNCorr (casacore::Int &value) const
 
virtual void fillNRow (casacore::Int &value) const
 
virtual void fillObservationId (casacore::Vector< casacore::Int > &value) const
 
virtual void fillPhaseCenter (casacore::MDirection &value) const
 
virtual void fillPolFrame (casacore::Int &value) const
 
virtual void fillPolarizationId (casacore::Int &value) const
 
virtual void fillProcessorId (casacore::Vector< casacore::Int > &value) const
 
virtual void fillRowIds (casacore::Vector< casacore::uInt > &value) const
 
virtual void fillScan (casacore::Vector< casacore::Int > &value) const
 
virtual void fillSigma (casacore::Matrix< casacore::Float > &value) const
 
virtual void fillSpectralWindows (casacore::Vector< casacore::Int > &value) const
 virtual void fillSigmaMat (casacore::Matrix<casacore::Float>& value) const; virtual void fillSpectralWindow (casacore::Int& value) const; More...
 
virtual void fillStateId (casacore::Vector< casacore::Int > &value) const
 
virtual void fillTime (casacore::Vector< casacore::Double > &value) const
 
virtual void fillTimeCentroid (casacore::Vector< casacore::Double > &value) const
 
virtual void fillTimeInterval (casacore::Vector< casacore::Double > &value) const
 
virtual void fillUvw (casacore::Matrix< casacore::Double > &value) const
 
virtual void fillWeight (casacore::Matrix< casacore::Float > &value) const
 virtual void fillVisibilityCorrected (casacore::Matrix<CStokesVector>& value) const; virtual void fillVisibilityModel (casacore::Matrix<CStokesVector>& value) const; virtual void fillVisibilityObserved (casacore::Matrix<CStokesVector>& value) const; More...
 
virtual void fillWeightSpectrum (casacore::Cube< casacore::Float > &value) const
 virtual void fillWeightMat (casacore::Matrix<casacore::Float>& value) const; More...
 
virtual void fillSigmaSpectrum (casacore::Cube< casacore::Float > &value) const
 

Private Attributes

VisBufferCachecache_p
 
casa::ms::Vbi2MsRowmsRow_p
 
VisBufferStatestate_p
 

Friends

class VLAT
 
class casa::vi::avg::VbAvg
 
class casa::vi::tavg::VbAvg
 
class AveragingTvi2
 
class VbCacheItemBase
 
class VisBufferCache
 
class VisBufferState
 
class casa::vi::VisBuffer2
 
class VisBuffer2Adapter
 
class VisBufferImpl2Async
 
class VisBufferImpl2AsyncWrapper
 
class ViReadImpl
 
class ViReadImplAsync
 
class casa::ms::Vbi2MsRow
 

Additional Inherited Members

- Public Types inherited from casa::vi::VisBuffer2
enum  { FrameNotSpecified }
 
using nA = =number of antennas nF:==number of frequencies(or channels) nC:==number of correlations nR:==number of table rows contained in the buffer--------------------------------------------------------Accessors for data contained in the main casacore::MeasurementSet main table The actual visibility data are at the end.***N.B.:the VB usually caches the information in the representation requested so that using a setter to modify one value type(e.g., weight or visibility) will not modify the cached value in a different representation(e.g., weightMat or visCube).This should not be a problem in normal usage.*/virtual const casacore::Vector< casacore::Int > &antenna1() const =0
 
- Static Public Member Functions inherited from casa::vi::VisBuffer2
static VisBuffer2factory (VisBufferOptions vbOptions=VbNoOptions)
 

Detailed Description

VisBufferImpls encapsulate one chunk of visibility data for processing.

Intended use:

Public interface

Prerequisite

Etymology

VisBufferImpl is a buffer for visibility data

Synopsis

This class contains 'one iteration' of the ViImplementation2 It is a modifiable buffer of values to which calibration and averaging can be applied. This allows processing of the data in larger blocks, avoiding some overheads for processing per visibility point or spectrum.

See MeasurementEquations for more details on how the VisBufferImpl is to be used.

When the user intends to allow asynchronous I/O they will need to use the VisBufferImplAsync and VisBufferImplAsyncWrapper classes; these are publicly derived from VisBufferImpl. Normally, the user should not explicitly use these classes but should use the helper class VisBufferImplAutoPtr which will ensure that the appropriate class is used.

Definition at line 119 of file VisBufferImpl2.h.

Constructor & Destructor Documentation

casa::vi::VisBufferImpl2::VisBufferImpl2 ( VisBufferOptions  options = VbNoOptions)

Create empty VisBufferImpl2 you can assign to or attach.

casa::vi::VisBufferImpl2::VisBufferImpl2 ( ViImplementation2 iter,
VisBufferOptions  options 
)

Construct VisBufferImpl2 for a particular ViImplementation2 The buffer will remain synchronized with the iterator.

virtual casa::vi::VisBufferImpl2::~VisBufferImpl2 ( )
virtual

Destructor (detaches from VisIter)

Member Function Documentation

void casa::vi::VisBufferImpl2::adjustWeightAndSigmaMatrices ( casacore::Int  nChannelsAveraged,
casacore::Int  nChannelsOut,
casacore::Int  nRows,
casacore::Int  nCorrelations,
casacore::Int  nChannelsSelected,
const casacore::Matrix< casacore::Float > &  rowWeightFactors 
)
protected
void casa::vi::VisBufferImpl2::adjustWeightFactorsAndFlags ( casacore::Matrix< casacore::Float > &  rowWeightFactors,
casacore::Bool  useWeightSpectrum,
casacore::Int  nRows,
casacore::Int  nCorrelations,
casacore::Int  nChannelsOut 
)
protected

virtual void cacheCopy (const VisBufferImpl2 & other, casacore::Bool markAsCached);

casacore::Data accessors and one or more set methods are provided N weight vs weightMat will not modify the cached value in a different representation* virtual const casacore::Vector<casacore::Int>& casa::vi::VisBufferImpl2::antenna1 ( ) const
virtual

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBufferImpl2::antenna2 ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

void casa::vi::VisBufferImpl2::appendRow ( ms::Vbi2MsRow rowSrc,
casacore::Int  initialCapacity,
const VisBufferComponents2 optionalComponentsToCopy,
bool  doCopy = true 
)
void casa::vi::VisBufferImpl2::appendRowsComplete ( )
casacore::Int casa::vi::VisBufferImpl2::appendSize ( ) const
virtual casacore::Bool casa::vi::VisBufferImpl2::areCorrelationsInCanonicalOrder ( ) const
privatevirtual
virtual casacore::Bool casa::vi::VisBufferImpl2::areCorrelationsSorted ( ) const
virtual
virtual const casacore::Vector<casacore::Int>& casa::vi::VisBufferImpl2::arrayId ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

casacore::Int casa::vi::VisBufferImpl2::averageChannelFrequencies ( casacore::Int  nChannelsOut,
const casacore::Vector< casacore::Int > &  channels,
const casacore::Matrix< casacore::Int > &  averagingBounds 
)
protected
void casa::vi::VisBufferImpl2::averageFlagInfoChannels ( const casacore::Matrix< casacore::Int > &  averagingBounds,
casacore::Int  nChannelsOut,
casacore::Bool  useWeightSpectrum 
)
protected
template<typename T >
void casa::vi::VisBufferImpl2::averageVisCubeChannels ( T &  dataCache,
casacore::Int  nChanOut,
const casacore::Matrix< casacore::Int > &  averagingbounds 
)
protected
virtual const casacore::Vector<casacore::MDirection>& casa::vi::VisBufferImpl2::azel ( casacore::Double  time) const
virtual

Returns the pointing angle for each antenna in the array at the specified time.

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual casacore::MDirection casa::vi::VisBufferImpl2::azel0 ( casacore::Double  time) const
virtual


Accessors for data derived from the casacore::MS main table data

Returns the pointing angle for the array as a whole at the specified time.

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual void casa::vi::VisBufferImpl2::cacheClear ( casacore::Bool  markAsCached = false)
protectedvirtual
virtual void casa::vi::VisBufferImpl2::cacheResizeAndZero ( const VisBufferComponents2 exclusions = VisBufferComponents2())
protectedvirtual
virtual void casa::vi::VisBufferImpl2::checkVisIter ( const char *  func,
const char *  file,
int  line,
const char *  extra = "" 
) const
protectedvirtual
void casa::vi::VisBufferImpl2::checkVisIterBase ( const char *  func,
const char *  file,
int  line,
const char *  extra = "" 
) const
private
virtual const casacore::Vector<casacore::SquareMatrix<casacore::Complex, 2> >& casa::vi::VisBufferImpl2::cjones ( ) const
virtual

Returns the Jones C matrix for each antenna.

Implements casa::vi::VisBuffer2.

void casa::vi::VisBufferImpl2::computeRowWeightFactors ( casacore::Matrix< casacore::Float > &  rowWeightFactors,
casacore::Bool  useWeightSpectrum 
)
protected
virtual void casa::vi::VisBufferImpl2::configureNewSubchunk ( casacore::Int  msId,
const casacore::String msName,
casacore::Bool  isNewMs,
casacore::Bool  isNewArrayId,
casacore::Bool  isNewFieldId,
casacore::Bool  isNewSpectralWindow,
const Subchunk &  subchunk,
casacore::Int  nRows,
casacore::Int  nChannels,
casacore::Int  nCorrelations,
const casacore::Vector< casacore::Int > &  correlations,
const casacore::Vector< casacore::Stokes::StokesTypes > &  correlationsDefined,
const casacore::Vector< casacore::Stokes::StokesTypes > &  correlationsSelected,
casacore::CountedPtr< WeightScaling weightScaling 
)
protectedvirtual

Implements casa::vi::VisBuffer2.

void casa::vi::VisBufferImpl2::construct ( ViImplementation2 vi,
VisBufferOptions  options 
)
private
void casa::vi::VisBufferImpl2::constructCache ( )
private
virtual void casa::vi::VisBufferImpl2::copy ( const VisBuffer2 other,
casacore::Bool  fetchIfNeeded = true 
)
virtual

Copies all of the components (or just the one in the cache) from the specified VisBuffer into this one.

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::copyComponents ( const VisBuffer2 other,
const VisBufferComponents2 components,
casacore::Bool  allowShapeChange = false,
casacore::Bool  fetchIfNeeded = true 
)
virtual

Copies the specified components (or just the one in the cache) from the specified VisBuffer into this one.

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::copyCoordinateInfo ( const VisBuffer2 other,
casacore::Bool  includeDirections,
casacore::Bool  allowShapeChange = false,
casacore::Bool  fetchIfNeeded = true 
)
virtual

Copies the coordinate components (or just the ones in the cache if fetchIfNeeded is false) from the specified VisBuffer into this one.

If this VB is not empty it will must have the same shape as the other VB unless allowShapeChange is true; in that case this VB will change changes to match the other VB flushing the cached data. The basic coordinate components are: Antenna1, Antenna2, ArrayId, DataDescriptionIds, FieldId, SpectralWindows, casacore::Time, NRows, Feed1, Feed2 The directional coordinates (copied if includeDirections is true): Direction1, Direction2, FeedPa1, FeedPa2

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::copyRow ( casacore::Int  sourceRow,
casacore::Int  destinationRow 
)
protectedvirtual
virtual const casacore::Vector<casacore::Int>& casa::vi::VisBufferImpl2::correlationTypes ( ) const
virtual

Returns the correlation type of each correlation in the VisCube.

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBufferImpl2::dataDescriptionIds ( ) const
virtual

virtual casacore::Int dataDescriptionId () const; virtual void setDataDescriptionId (casacore::Int value);

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual void casa::vi::VisBufferImpl2::deleteRows ( const casacore::Vector< casacore::Int > &  rowsToDelete)
protectedvirtual
virtual const casacore::Vector<casacore::MDirection>& casa::vi::VisBufferImpl2::direction1 ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Vector<casacore::MDirection>& casa::vi::VisBufferImpl2::direction2 ( ) const
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::dirtyComponentsAdd ( const VisBufferComponents2 additionalDirtyComponents)
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::dirtyComponentsAdd ( VisBufferComponent2  component)
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::dirtyComponentsClear ( )
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual VisBufferComponents2 casa::vi::VisBufferImpl2::dirtyComponentsGet ( ) const
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::dirtyComponentsSet ( const VisBufferComponents2 dirtyComponents)
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::dirtyComponentsSet ( VisBufferComponent2  component)
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual casacore::Bool casa::vi::VisBufferImpl2::existsColumn ( VisBufferComponent2  id) const
virtual

Implements casa::vi::VisBuffer2.

virtual const casacore::Vector<casacore::Double>& casa::vi::VisBufferImpl2::exposure ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBufferImpl2::feed1 ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBufferImpl2::feed2 ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Vector<casacore::Float>& casa::vi::VisBufferImpl2::feedPa ( casacore::Double  time) const
virtual

–> This needs to be removed: virtual casacore::Bool fetch(const asyncio::PrefetchColumns *pfc);

feed1_pa() and feed2_pa() return an array of parallactic angles (each corresponds to the first receptor of the feed) one for each row in the current buffer. In contrast, feed_pa() calculates the angles for each antenna. These methods are implemented for VisBufferImpl2 only to benefit from caching of the feed and antenna IDs.

Note that feed_pa is a function instead of a cached value

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Vector<casacore::Float>& casa::vi::VisBufferImpl2::feedPa1 ( ) const
virtual

Calculates the parallactic angle for feed 0 of the row's Antenna1.

Implements casa::vi::VisBuffer2.

virtual const casacore::Vector<casacore::Float>& casa::vi::VisBufferImpl2::feedPa2 ( ) const
virtual

Calculates the parallactic angle for feed 0 of the row's Antenna2.

Implements casa::vi::VisBuffer2.

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBufferImpl2::fieldId ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual void casa::vi::VisBufferImpl2::fillArrayId ( casacore::Vector< casacore::Int > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillCorrType ( casacore::Vector< casacore::Int > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillCubeCorrected ( casacore::Cube< casacore::Complex > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillCubeModel ( casacore::Cube< casacore::Complex > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillCubeObserved ( casacore::Cube< casacore::Complex > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillDataDescriptionId ( casacore::Int value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillDataDescriptionIds ( casacore::Vector< casacore::Int > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillDirection1 ( casacore::Vector< casacore::MDirection > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillDirection2 ( casacore::Vector< casacore::MDirection > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillDirectionAux ( casacore::Vector< casacore::MDirection > &  value,
const casacore::Vector< casacore::Int > &  antenna,
const casacore::Vector< casacore::Int > &  feed,
const casacore::Vector< casacore::Float > &  feedPa 
) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillExposure ( casacore::Vector< casacore::Double > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillFeed1 ( casacore::Vector< casacore::Int > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillFeed2 ( casacore::Vector< casacore::Int > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillFeedPa1 ( casacore::Vector< casacore::Float > &  feedPa) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillFeedPa2 ( casacore::Vector< casacore::Float > &  feedPa) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillFeedPaAux ( casacore::Vector< casacore::Float > &  feedPa,
const casacore::Vector< casacore::Int > &  antenna,
const casacore::Vector< casacore::Int > &  feed 
) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillFieldId ( casacore::Vector< casacore::Int > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillFlag ( casacore::Matrix< casacore::Bool > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillFlagCategory ( casacore::Array< casacore::Bool > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillFlagCube ( casacore::Cube< casacore::Bool > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillFlagRow ( casacore::Vector< casacore::Bool > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillFloatData ( casacore::Cube< casacore::Float > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillImagingWeight ( casacore::Matrix< casacore::Float > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillJonesC ( casacore::Vector< casacore::SquareMatrix< casacore::Complex, 2 > > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillNAntennas ( casacore::Int value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillNChannel ( casacore::Int value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillNCorr ( casacore::Int value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillNRow ( casacore::Int value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillObservationId ( casacore::Vector< casacore::Int > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillPhaseCenter ( casacore::MDirection value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillPolarizationId ( casacore::Int value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillPolFrame ( casacore::Int value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillProcessorId ( casacore::Vector< casacore::Int > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillRowIds ( casacore::Vector< casacore::uInt > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillScan ( casacore::Vector< casacore::Int > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillSigma ( casacore::Matrix< casacore::Float > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillSigmaSpectrum ( casacore::Cube< casacore::Float > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillSpectralWindows ( casacore::Vector< casacore::Int > &  value) const
privatevirtual

virtual void fillSigmaMat (casacore::Matrix<casacore::Float>& value) const; virtual void fillSpectralWindow (casacore::Int& value) const;

virtual void casa::vi::VisBufferImpl2::fillStateId ( casacore::Vector< casacore::Int > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillTime ( casacore::Vector< casacore::Double > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillTimeCentroid ( casacore::Vector< casacore::Double > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillTimeInterval ( casacore::Vector< casacore::Double > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillUvw ( casacore::Matrix< casacore::Double > &  value) const
privatevirtual
virtual void casa::vi::VisBufferImpl2::fillWeight ( casacore::Matrix< casacore::Float > &  value) const
privatevirtual

virtual void fillVisibilityCorrected (casacore::Matrix<CStokesVector>& value) const; virtual void fillVisibilityModel (casacore::Matrix<CStokesVector>& value) const; virtual void fillVisibilityObserved (casacore::Matrix<CStokesVector>& value) const;

virtual void casa::vi::VisBufferImpl2::fillWeightSpectrum ( casacore::Cube< casacore::Float > &  value) const
privatevirtual

virtual void fillWeightMat (casacore::Matrix<casacore::Float>& value) const;

virtual const casacore::Array<casacore::Bool>& casa::vi::VisBufferImpl2::flagCategory ( ) const
virtual

virtual const casacore::Matrix<casacore::Bool> & flag () const; virtual void setFlag (const casacore::Matrix<casacore::Bool>&);

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Cube<casacore::Bool>& casa::vi::VisBufferImpl2::flagCube ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual casacore::Cube<casacore::Bool>& casa::vi::VisBufferImpl2::flagCubeRef ( )
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual const casacore::Vector<casacore::Bool>& casa::vi::VisBufferImpl2::flagRow ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual casacore::Vector<casacore::Bool>& casa::vi::VisBufferImpl2::flagRowRef ( )
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual casacore::Int casa::vi::VisBufferImpl2::getChannelNumber ( casacore::Int  rowInBuffer,
casacore::Int  frequencyIndex 
) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBufferImpl2::getChannelNumbers ( casacore::Int  rowInBuffer) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual casacore::Vector<casacore::Int> casa::vi::VisBufferImpl2::getChannelNumbersSelected ( casacore::Int  outputChannelIndex) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual casacore::Vector<casacore::Int> casa::vi::VisBufferImpl2::getCorrelationTypes ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual casacore::Vector<casacore::Stokes::StokesTypes> casa::vi::VisBufferImpl2::getCorrelationTypesDefined ( ) const
virtual


Frequency reporting methods.

These methods provide information about the frequencies returned in the visibility cubes. The information can returned as the channel numbers (numbered as in the underlying casacore::MS data) or in a frame-based frequency. This information reported need not be in the same frame of reference used to select the data. If the frame of reference is specified in the call, then that is the frame that is used to calculate the frequencies. If it is not specified, then the VisibilityIterator will be queried for virtual the reportingFrame = 0; if the user has specified a reporting frame to the virtual VI then that frame will be used = 0; otherwise the frame used to select the frequencies will be used. If the user provides no frequency selection to the VI then the selection frame will TOPO.

Both the channelNumber and frequency reporting methods come in two versions: one returns a single frequency for the specified frequency index and row while the other provides all of the frequencies for the specified row. The frequency index is the zero-based index along the frequency axis of a visibility cube.

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual casacore::Vector<casacore::Stokes::StokesTypes> casa::vi::VisBufferImpl2::getCorrelationTypesSelected ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual casacore::String casa::vi::VisBufferImpl2::getFillErrorMessage ( ) const
virtual
virtual const casacore::Vector<casacore::Double>& casa::vi::VisBufferImpl2::getFrequencies ( casacore::Int  rowInBuffer,
casacore::Int  frame = FrameNotSpecified 
) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual casacore::Double casa::vi::VisBufferImpl2::getFrequency ( casacore::Int  rowInBuffer,
casacore::Int  frequencyIndex,
casacore::Int  frame = FrameNotSpecified 
) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

ms::MsRow* casa::vi::VisBufferImpl2::getRow ( casacore::Int  row) const
virtual

Reimplemented from casa::vi::VisBuffer2.

ms::MsRow* casa::vi::VisBufferImpl2::getRowMutable ( casacore::Int  row)
virtual

Reimplemented from casa::vi::VisBuffer2.

virtual casacore::IPosition casa::vi::VisBufferImpl2::getShape ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

casacore::Float casa::vi::VisBufferImpl2::getSigmaScaled ( casacore::Int  row) const
protectedvirtual

Implements casa::vi::VisBuffer2.

casacore::Float casa::vi::VisBufferImpl2::getSigmaScaled ( casacore::Int  correlation,
casacore::Int  row 
) const
protectedvirtual

Implements casa::vi::VisBuffer2.

casacore::Float casa::vi::VisBufferImpl2::getSigmaScaled ( casacore::Int  correlation,
casacore::Int  channel,
casacore::Int  row 
) const
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual Subchunk casa::vi::VisBufferImpl2::getSubchunk ( ) const
virtual

Implements casa::vi::VisBuffer2.

virtual casacore::IPosition casa::vi::VisBufferImpl2::getValidShape ( casacore::Int  ) const
virtual
virtual ViImplementation2* casa::vi::VisBufferImpl2::getViiP ( ) const
protectedvirtual
virtual VisModelDataI* casa::vi::VisBufferImpl2::getVisModelData ( ) const
virtual
casacore::Float casa::vi::VisBufferImpl2::getWeightScaled ( casacore::Int  row) const
protectedvirtual

virtual const casacore::Matrix<CStokesVector> & visModel () const = 0; // [nF,nR] virtual void setVisModel (casacore::Matrix<CStokesVector> &) = 0; // [nF,nR]

Implements casa::vi::VisBuffer2.

casacore::Float casa::vi::VisBufferImpl2::getWeightScaled ( casacore::Int  correlation,
casacore::Int  row 
) const
protectedvirtual

Implements casa::vi::VisBuffer2.

casacore::Float casa::vi::VisBufferImpl2::getWeightScaled ( casacore::Int  correlation,
casacore::Int  channel,
casacore::Int  row 
) const
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual casacore::CountedPtr<WeightScaling> casa::vi::VisBufferImpl2::getWeightScaling ( ) const
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual casacore::Bool casa::vi::VisBufferImpl2::hasShape ( ) const
protectedvirtual
virtual casacore::Double casa::vi::VisBufferImpl2::hourang ( casacore::Double  time) const
virtual

Hour angle for specified time.

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Matrix<casacore::Float>& casa::vi::VisBufferImpl2::imagingWeight ( ) const
virtual

This method returns the imagin g If an imaging weight generator has not been supplied to the associated VisibilityIterator then this method will throw an exception.

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::initSigmaSpectrum ( const casacore::Cube< casacore::Float > &  sigspec)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::initWeightSpectrum ( const casacore::Cube< casacore::Float > &  wtspec)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::invalidate ( )
virtual

Implements casa::vi::VisBuffer2.

virtual casacore::Bool casa::vi::VisBufferImpl2::isAttached ( ) const
virtual
virtual casacore::Bool casa::vi::VisBufferImpl2::isFillable ( ) const
virtual
virtual casacore::Bool casa::vi::VisBufferImpl2::isNewArrayId ( ) const
virtual

Rotate visibility phase for given vector (dim = nrow of vb) of phases (metres)

Update coordinate info - useful for copied VisBufferImpl2s that need to retain some state for later reference. Presently this fills antenna, array, field and spectralWindow ids, time, frequency and number of rows. if dirDependent is set to false the expensive direction dependent calculation of parallactic or direction of antenna from pointing table is avoided Add more as needed.

Implements casa::vi::VisBuffer2.

virtual casacore::Bool casa::vi::VisBufferImpl2::isNewFieldId ( ) const
virtual

Implements casa::vi::VisBuffer2.

virtual casacore::Bool casa::vi::VisBufferImpl2::isNewMs ( ) const
virtual

Implements casa::vi::VisBuffer2.

virtual casacore::Bool casa::vi::VisBufferImpl2::isNewSpectralWindow ( ) const
virtual

Implements casa::vi::VisBuffer2.

virtual casacore::Bool casa::vi::VisBufferImpl2::isRekeyable ( ) const
virtual

Implements casa::vi::VisBuffer2.

virtual casacore::Bool casa::vi::VisBufferImpl2::isWritable ( ) const
virtual

Implements casa::vi::VisBuffer2.

virtual const casacore::MeasurementSet& casa::vi::VisBufferImpl2::ms ( ) const
virtual

Reference to underlying MS, via the Vii.

Reimplemented from casa::vi::VisBuffer2.

virtual casacore::Int casa::vi::VisBufferImpl2::msId ( ) const
virtual
virtual casacore::String casa::vi::VisBufferImpl2::msName ( casacore::Bool  stripPath = false) const
virtual

Implements casa::vi::VisBuffer2.

virtual casacore::Int casa::vi::VisBufferImpl2::nAntennas ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual casacore::Int casa::vi::VisBufferImpl2::nChannels ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual casacore::Int casa::vi::VisBufferImpl2::nCorrelations ( ) const
virtual

Returns the number of correlations along the visCube correlation axis.

This comes from the "channel" selection and thus can be anything positive integer (e.g., user could select the same correlation more than once).

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual void casa::vi::VisBufferImpl2::normalize ( )
virtual

Normalize the visCube by the modelVisCube (and optionally also divide visCube_p by its normalized amp)

Implements casa::vi::VisBuffer2.

void casa::vi::VisBufferImpl2::normalizeRow ( casacore::Int  row,
casacore::Int  nCorrelations,
const casacore::Cube< casacore::Bool > &  flagged,
casacore::Cube< casacore::Complex > &  visCube,
casacore::Cube< casacore::Complex > &  modelCube,
casacore::Matrix< casacore::Float > &  weightMat 
)
protected
virtual casacore::Int casa::vi::VisBufferImpl2::nRows ( ) const
virtual

Returns the number of rows in this VisBuffer.

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBufferImpl2::observationId ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Vector<casacore::Float>& casa::vi::VisBufferImpl2::parang ( casacore::Double  time) const
virtual

Calculates the parallactic angle of each antenna in the array at the specified time.

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual casacore::Float casa::vi::VisBufferImpl2::parang0 ( casacore::Double  time) const
virtual

NOMINAL parallactic angle (feed p.a.

offset NOT included)

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::MDirection& casa::vi::VisBufferImpl2::phaseCenter ( ) const
virtual

Returns the phase center of the array for the specified row.

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual void casa::vi::VisBufferImpl2::phaseCenterShift ( const casacore::Vector< casacore::Double > &  phase)
virtual

Rotate visibility phase for given vector (dim = nrow of vb) of phases (metres)

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual void casa::vi::VisBufferImpl2::phaseCenterShift ( casacore::Double  dx,
casacore::Double  dy 
)
virtual

Rotate visibility phase for phase center offsets (arcsecs)

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual casacore::Int casa::vi::VisBufferImpl2::polarizationFrame ( ) const
virtual

Returns the polarization frame for the specified row.

Implements casa::vi::VisBuffer2.

virtual casacore::Int casa::vi::VisBufferImpl2::polarizationId ( ) const
virtual

Implements casa::vi::VisBuffer2.

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBufferImpl2::processorId ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

void casa::vi::VisBufferImpl2::registerCacheItem ( VbCacheItemBase )
protected
virtual void casa::vi::VisBufferImpl2::resetWeightsUsingSigma ( )
virtual

Fill weightMat according to sigma column.

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::resizeRows ( casacore::Int  newNRows)
protectedvirtual
virtual const casacore::Vector<casacore::uInt>& casa::vi::VisBufferImpl2::rowIds ( ) const
virtual

The returned casacore::Vector serves as a map between the rows in the VisBuffer and the row IDs in the underlying casacore::MS main virtual table: mainTableID [i] = rowIds () [ i] = 0;.

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Vector<casacore::Int>& casa::vi::VisBufferImpl2::scan ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual void casa::vi::VisBufferImpl2::setAntenna1 ( const casacore::Vector< casacore::Int > &  value)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setAntenna2 ( const casacore::Vector< casacore::Int > &  value)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setArrayId ( const casacore::Vector< casacore::Int > &  )
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setDataDescriptionIds ( const casacore::Vector< casacore::Int > &  )
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setExposure ( const casacore::Vector< casacore::Double > &  value)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setFeed1 ( const casacore::Vector< casacore::Int > &  value)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setFeed2 ( const casacore::Vector< casacore::Int > &  value)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setFieldId ( const casacore::Vector< casacore::Int > &  )
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setFillable ( casacore::Bool  isFillable)
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setFlagCategory ( const casacore::Array< casacore::Bool > &  )
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setFlagCube ( const casacore::Cube< casacore::Bool > &  )
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setFlagRow ( const casacore::Vector< casacore::Bool > &  )
virtual

Implements casa::vi::VisBuffer2.

void casa::vi::VisBufferImpl2::setImagingWeight ( const casacore::Matrix< casacore::Float > &  newImagingWeights)
virtual

Implements casa::vi::VisBuffer2.

void casa::vi::VisBufferImpl2::setIterationInfo ( casacore::Int  msId,
const casacore::String msName,
casacore::Bool  isNewMs,
casacore::Bool  isNewArrayId,
casacore::Bool  isNewFieldId,
casacore::Bool  isNewSpectralWindow,
const Subchunk &  subchunk,
const casacore::Vector< casacore::Int > &  correlations,
const casacore::Vector< casacore::Stokes::StokesTypes > &  correlationsDefined,
const casacore::Vector< casacore::Stokes::StokesTypes > &  correlationsSelected,
casacore::CountedPtr< WeightScaling weightScaling 
)
protected
virtual void casa::vi::VisBufferImpl2::setObservationId ( const casacore::Vector< casacore::Int > &  value)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setProcessorId ( const casacore::Vector< casacore::Int > &  value)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setRekeyable ( casacore::Bool  isRekeyable)
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setScan ( const casacore::Vector< casacore::Int > &  value)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setShape ( casacore::Int  nCorrelations,
casacore::Int  nChannels,
casacore::Int  nRows,
casacore::Bool  clearTheCache = true 
)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setSigma ( const casacore::Matrix< casacore::Float > &  )
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setSigmaSpectrum ( const casacore::Cube< casacore::Float > &  value)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setSpectralWindows ( const casacore::Vector< casacore::Int > &  spectralWindows)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setStateId ( const casacore::Vector< casacore::Int > &  value)
virtual

Implements casa::vi::VisBuffer2.

casacore::Data accessors and casa::vi::VisBufferImpl2::setters ( where  appropriate)
virtual void casa::vi::VisBufferImpl2::setTime ( const casacore::Vector< casacore::Double > &  value)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setTimeCentroid ( const casacore::Vector< casacore::Double > &  value)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setTimeInterval ( const casacore::Vector< casacore::Double > &  value)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setupValidShapes ( )
protectedvirtual
virtual void casa::vi::VisBufferImpl2::setUvw ( const casacore::Matrix< casacore::Double > &  value)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setVisCube ( const casacore::Complex &  c)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setVisCube ( const casacore::Cube< casacore::Complex > &  )
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setVisCubeCorrected ( const casacore::Cube< casacore::Complex > &  )
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setVisCubeFloat ( const casacore::Cube< casacore::Float > &  )
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setVisCubeModel ( const casacore::Complex &  c)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setVisCubeModel ( const casacore::Cube< casacore::Complex > &  vis)
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setVisCubeModel ( const casacore::Vector< casacore::Float > &  stokes)
virtual
virtual void casa::vi::VisBufferImpl2::setWeight ( const casacore::Matrix< casacore::Float > &  )
virtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::setWeightSpectrum ( const casacore::Cube< casacore::Float > &  )
virtual

Implements casa::vi::VisBuffer2.

virtual bool casa::vi::VisBufferImpl2::setWritability ( bool  newWritability)
protectedvirtual

Reimplemented from casa::vi::VisBuffer2.

virtual const casacore::Matrix<casacore::Float>& casa::vi::VisBufferImpl2::sigma ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Cube<casacore::Float>& casa::vi::VisBufferImpl2::sigmaSpectrum ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

casacore::Bool casa::vi::VisBufferImpl2::sigmaSpectrumPresent ( ) const
protected
virtual casacore::Cube<casacore::Float>& casa::vi::VisBufferImpl2::sigmaSpectrumRef ( )
protectedvirtual
virtual void casa::vi::VisBufferImpl2::sortCorr ( )
virtual

casacore::Sort/unsort the correlations, if necessary (Rudimentary handling of non-canonically sorted correlations–use with care!)

virtual void casa::vi::VisBufferImpl2::sortCorrelationsAux ( casacore::Bool  makeSorted)
protectedvirtual
virtual const casacore::Vector<casacore::Int>& casa::vi::VisBufferImpl2::spectralWindows ( ) const
virtual

virtual const casacore::Matrix<casacore::Float> & sigmaMat () const; virtual casacore::Int spectralWindow () const;

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

Referenced by casa::vi::VisBufferState::FrequencyCache< casacore::Int >::updateCacheIfNeeded().

virtual void casa::vi::VisBufferImpl2::stateCopy ( const VisBufferImpl2 other)
protectedvirtual
virtual const casacore::Vector<casacore::Int>& casa::vi::VisBufferImpl2::stateId ( ) const
virtual

virtual const casacore::Matrix<casacore::Float> & sigmaMat () const = 0; // [nC,nR]

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const vi::SubtableColumns& casa::vi::VisBufferImpl2::subtableColumns ( ) const
virtual

Reimplemented from casa::vi::VisBuffer2.

virtual const casacore::Vector<casacore::Double>& casa::vi::VisBufferImpl2::time ( ) const
virtual
virtual const casacore::Vector<casacore::Double>& casa::vi::VisBufferImpl2::timeCentroid ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Vector<casacore::Double>& casa::vi::VisBufferImpl2::timeInterval ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual void casa::vi::VisBufferImpl2::unSortCorr ( )
virtual
template<typename Coord >
void casa::vi::VisBufferImpl2::updateCoord ( Coord &  item,
const Coord &  otherItem 
)
protected
virtual const casacore::Matrix<casacore::Double>& casa::vi::VisBufferImpl2::uvw ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual void casa::vi::VisBufferImpl2::validate ( )
privatevirtual
virtual void casa::vi::VisBufferImpl2::validateShapes ( ) const
virtual

Implements casa::vi::VisBuffer2.

virtual const casacore::Cube<casacore::Complex>& casa::vi::VisBufferImpl2::visCube ( ) const
virtual

virtual void setVisModel (casacore::Matrix<CStokesVector> &);

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Cube<casacore::Complex>& casa::vi::VisBufferImpl2::visCubeCorrected ( ) const
virtual

virtual const casacore::Matrix<CStokesVector> & vis () const = 0; // [nF,nR] virtual void setVis (casacore::Matrix<CStokesVector> &) = 0; // [nF,nR]

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual casacore::Cube<casacore::Complex>& casa::vi::VisBufferImpl2::visCubeCorrectedRef ( )
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual const casacore::Cube<casacore::Float>& casa::vi::VisBufferImpl2::visCubeFloat ( ) const
virtual

virtual const casacore::Matrix<CStokesVector> & visCorrected () const; virtual void setVisCorrected (const casacore::Matrix<CStokesVector> &);

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Cube<casacore::Complex>& casa::vi::VisBufferImpl2::visCubeModel ( ) const
virtual

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual casacore::Cube<casacore::Complex>& casa::vi::VisBufferImpl2::visCubeModelRef ( )
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual casacore::Cube<casacore::Complex>& casa::vi::VisBufferImpl2::visCubeRef ( )
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual const casacore::Matrix<casacore::Float>& casa::vi::VisBufferImpl2::weight ( ) const
virtual

virtual const casacore::Matrix<CStokesVector> & vis () const; virtual void setVis (casacore::Matrix<CStokesVector> &);

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

virtual const casacore::Cube<casacore::Float>& casa::vi::VisBufferImpl2::weightSpectrum ( ) const
virtual

virtual const casacore::Matrix<casacore::Float> & weightMat () const = 0; // [nC,nR] virtual void setWeightMat (const casacore::Matrix<casacore::Float>& value) = 0; // [nC,nR]

Implements casa::vi::VisBuffer2.

Reimplemented in casa::MSTransformBufferImpl.

casacore::Bool casa::vi::VisBufferImpl2::weightSpectrumPresent ( ) const
protected
virtual casacore::Cube<casacore::Float>& casa::vi::VisBufferImpl2::weightSpectrumRef ( )
protectedvirtual

Implements casa::vi::VisBuffer2.

virtual void casa::vi::VisBufferImpl2::writeChangesBack ( )
virtual


Dirty component methods

The dirtyComponent methods support the data-flow approach to using VisBuffers (the Visibility Processing Framework). In this approach a VisBuffer is passed to successive processing nodes (e.g., applycal, flagging, etc.) which operate on it and pass it on to the next node in the algorithm. The dirtyComponents mechanism allows a processing node to mark portions of the VisBuffer as modified. If the VisBuffer reaches an write-to-disk node then the modified portions of the VisBuffer will be written out. The user can also explicitly direct that the changes be written out using the writeChangesBack method.

Using a setter on a VisBuffer component will also set the dirty flag for that component. Normally the user should not need to use these methods; however, they are available in case unexpected situations should arise in the future.

Implements casa::vi::VisBuffer2.

Friends And Related Function Documentation

friend class AveragingTvi2
friend

Definition at line 124 of file VisBufferImpl2.h.

friend class casa::ms::Vbi2MsRow
friend

Definition at line 134 of file VisBufferImpl2.h.

friend class casa::vi::avg::VbAvg
friend

Definition at line 122 of file VisBufferImpl2.h.

friend class casa::vi::tavg::VbAvg
friend

Definition at line 123 of file VisBufferImpl2.h.

friend class casa::vi::VisBuffer2
friend

Definition at line 128 of file VisBufferImpl2.h.

friend class VbCacheItemBase
friend

Definition at line 125 of file VisBufferImpl2.h.

friend class ViReadImpl
friend

Definition at line 132 of file VisBufferImpl2.h.

friend class ViReadImplAsync
friend

Definition at line 133 of file VisBufferImpl2.h.

friend class VisBuffer2Adapter
friend

Definition at line 129 of file VisBufferImpl2.h.

friend class VisBufferCache
friend

Definition at line 126 of file VisBufferImpl2.h.

friend class VisBufferImpl2Async
friend

Definition at line 130 of file VisBufferImpl2.h.

friend class VisBufferImpl2AsyncWrapper
friend

Definition at line 131 of file VisBufferImpl2.h.

friend class VisBufferState
friend

Definition at line 127 of file VisBufferImpl2.h.

friend class VLAT
friend

Definition at line 121 of file VisBufferImpl2.h.

Member Data Documentation

casacore::Data accessors and one or more set methods are provided N casa::vi::VisBufferImpl2::B

Definition at line 276 of file VisBufferImpl2.h.

VisBufferCache* casa::vi::VisBufferImpl2::cache_p
private

Definition at line 535 of file VisBufferImpl2.h.

casa::ms::Vbi2MsRow* casa::vi::VisBufferImpl2::msRow_p
private

Definition at line 536 of file VisBufferImpl2.h.

VisBufferState* casa::vi::VisBufferImpl2::state_p
private

Definition at line 537 of file VisBufferImpl2.h.


The documentation for this class was generated from the following file: