casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions
casa::DummyBufferImpl Class Reference

#include <FlagCalTableHandler.h>

Inheritance diagram for casa::DummyBufferImpl:
casa::vi::VisBuffer2 casa::CTBuffer

List of all members.

Public Member Functions

 DummyBufferImpl ()
 ~DummyBufferImpl ()
virtual void copy (const VisBuffer2 &other, Bool fetchIfNeeded)
virtual void copyComponents (const VisBuffer2 &other, const VisBufferComponents2 &components, Bool fetchIfNeeded=True)
virtual void copyCoordinateInfo (const VisBuffer2 *other, Bool includeDirections, Bool fetchIfNeeded=True)
virtual void setShape (Int nCorrelations, Int nChannels, Int nRows, Bool)
virtual const
vi::VisibilityIterator2
getVi () const
 For attached VBs this returns the VI the VB is attached to.
virtual Bool isAttached () const
virtual Bool isFillable () const
virtual void writeChangesBack ()
 

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 const Matrix< Float > & imagingWeight () const
 This method returns the imaging weights associated with the VisBuffer.
virtual Double getFrequency (Int rowInBuffer, Int frequencyIndex, Int frame=FrameNotSpecified) const
virtual const Vector< Double > & getFrequencies (Int rowInBuffer, Int frame=FrameNotSpecified) const
virtual Int getChannelNumber (Int rowInBuffer, Int frequencyIndex) const
virtual const Vector< Int > & getChannelNumbers (Int rowInBuffer) const
virtual void normalize ()
 Sort/unsort the correlations, if necessary (Rudimentary handling of non-canonically sorted correlations--use with care!)
virtual void resetWeightsUsingSigma ()
 Set the weight cube using the sigma cube.
virtual Bool isNewArrayId () const
 

virtual Bool isNewFieldId () const
virtual Bool isNewMs () const
virtual Bool isNewSpectralWindow () const
virtual Bool isWritable () const
virtual Int msId () const
virtual String msName (Bool stripPath=False) const
virtual vi::Subchunk getSubchunk () const
virtual const Vector< Int > & antenna1 () const
virtual void setAntenna1 (const Vector< Int > &value)
virtual const Vector< Int > & antenna2 () const
virtual void setAntenna2 (const Vector< Int > &value)
virtual const Vector< Int > & arrayId () const
virtual void setArrayId (const Vector< Int > &)
virtual Int dataDescriptionId () const
virtual void setDataDescriptionId (Int value)
virtual void setDataDescriptionIds (const casa::Vector< int > &)
virtual const Vector
< MDirection > & 
direction1 () const
virtual const Vector
< MDirection > & 
direction2 () const
virtual const Vector< Double > & exposure () const
virtual void setExposure (const Vector< Double > &value)
virtual const Vector< Int > & feed1 () const
virtual void setFeed1 (const Vector< Int > &value)
virtual const Vector< Int > & feed2 () const
virtual void setFeed2 (const Vector< Int > &value)
virtual const Vector< Int > & fieldId () const
virtual void setFieldId (const Vector< Int > &)
virtual const Matrix< Bool > & flag () const
virtual void setFlag (const Matrix< Bool > &value)
virtual const Array< Bool > & flagCategory () const
virtual void setFlagCategory (const Array< Bool > &value)
virtual const Cube< Bool > & flagCube () const
virtual void setFlagCube (const Cube< Bool > &value)
virtual const Vector< Bool > & flagRow () const
virtual void setFlagRow (const Vector< Bool > &value)
virtual const Vector< Int > & observationId () const
virtual void setObservationId (const Vector< Int > &value)
virtual const Vector< Int > & processorId () const
virtual void setProcessorId (const Vector< Int > &value)
virtual const Vector< Int > & scan () const
virtual void setScan (const Vector< Int > &value)
virtual const Matrix< Float > & sigma () const
virtual void setSigma (const Matrix< Float > &value)
virtual const Matrix< Float > & sigmaMat () const
virtual const Vector< Int > & stateId () const
 virtual const Matrix<Float> & sigmaMat () const = 0; // [nC,nR]
virtual void setStateId (const Vector< Int > &value)
virtual const Vector< Double > & time () const
virtual void setTime (const Vector< Double > &value)
virtual const Vector< Double > & timeCentroid () const
virtual void setTimeCentroid (const Vector< Double > &value)
virtual const Vector< Double > & timeInterval () const
virtual void setTimeInterval (const Vector< Double > &value)
virtual const Matrix< Double > & uvw () const
virtual void setUvw (const Matrix< Double > &value)
virtual const Matrix< Float > & weight () const
virtual void setWeight (const Matrix< Float > &value)
virtual const Matrix< Float > & weightMat () const
virtual void setWeightMat (const Matrix< Float > &value)
virtual const Cube< Float > & weightSpectrum () const
 virtual const Matrix<Float> & weightMat () const = 0; // [nC,nR] virtual void setWeightMat (const Matrix<Float>& value) = 0; // [nC,nR]
virtual void setWeightSpectrum (const Cube< Float > &value)
virtual const Cube< Complex > & visCube () const
 
Visibility data accessors in order of observed, corrected, float, & model
virtual void setVisCube (const Complex &c)
virtual void setVisCube (const Cube< Complex > &)
virtual const Matrix
< CStokesVector > & 
vis () const
virtual void setVis (Matrix< CStokesVector > &)
virtual const Cube< Complex > & visCubeCorrected () const
 virtual const Matrix<CStokesVector> & vis () const = 0; // [nF,nR] virtual void setVis (Matrix<CStokesVector> &) = 0; // [nF,nR]
virtual void setVisCubeCorrected (const Cube< Complex > &)
virtual const Matrix
< CStokesVector > & 
visCorrected () const
virtual void setVisCorrected (const Matrix< CStokesVector > &)
virtual const Cube< Float > & visCubeFloat () const
 virtual const Matrix<CStokesVector> & visCorrected () const = 0; // [nF,nR] virtual void setVisCorrected (const Matrix<CStokesVector> &) = 0; // [nF,nR]
virtual void setVisCubeFloat (const Cube< Float > &)
virtual const Cube< Complex > & visCubeModel () const
virtual void setVisCubeModel (const Complex &c)
virtual void setVisCubeModel (const Cube< Complex > &vis)
virtual void setVisCubeModel (const Vector< Float > &stokes)
virtual const Matrix
< CStokesVector > & 
visModel () const
virtual void setVisModel (Matrix< CStokesVector > &)
virtual MDirection azel0 (Double time) const
 virtual void setVisCubeModel(const Vector<Float>& stokes) = 0; // [1..4] virtual const Matrix<CStokesVector> & visModel () const = 0; // [nF,nR] virtual void setVisModel (Matrix<CStokesVector> &) = 0; // [nF,nR]
virtual Vector< MDirection > & azel (Double time) const
 Returns the pointing angle for each antenna in the array at the specified time.
virtual const Vector
< SquareMatrix< Complex, 2 > > & 
cjones () const
 Returns the Jones C matrix for each antenna.
virtual const Vector< Int > & correlationTypes () const
 Returns the correlation type of each correlation in the VisCube.
virtual Vector< Float > & feedPa (Double time) const
 Calculates the parallactic angle for the first receptor of each antenna at the specified time.
virtual const Vector< Float > & feedPa1 () const
 Calculates the parallactic angle for feed 0 of the row's Antenna1.
virtual const Vector< Float > & feedPa2 () const
 Calculates the parallactic angle for feed 0 of the row's Antenna2.
virtual Double hourang (Double time) const
 Returns the hour angle of the array at the specified time.
virtual Int nAntennas () const
virtual Int nChannels () const
virtual Int nCorrelations () const
 Returns the number of correlations along the visCube correlation axis.
virtual Int nRows () const
 Returns the number of rows in this VisBuffer.
virtual Float parang0 (Double time) const
 Calculates the parallactic angle of the array as a whole at the specified time.
virtual Vector< Float > & parang (Double time) const
 Calculates the parallactic angle of each antenna in the array at the specified time.
virtual const MDirectionphaseCenter () const
 Returns the phase center of the array for the specified row.
virtual Int polarizationFrame () const
 Returns the polarization frame for the specified row.
virtual Int polarizationId () const
virtual const Vector< uInt > & rowIds () const
 The returned Vector serves as a map between the rows in the VisBuffer and the row IDs in the underlying MS main virtual table: mainTableID [i] = rowIds () [ i] = 0;.
virtual Int spectralWindow () const
virtual const Vector< Int > & spectralWindows () const
 Returns the spectral window ID for the specified row.
virtual void setSpectralWindows (const Vector< Int > &)
virtual void setFillable (Bool isFillable)
virtual const Vector< Int > & dataDescriptionIds () const
 virtual Int dataDescriptionId () const = 0; virtual void setDataDescriptionId (Int value) = 0;
virtual Vector< IntgetCorrelationNumbers () const
 

virtual void validateShapes () const

Protected Member Functions

virtual void configureNewSubchunk (Int msId, const String &msName, Bool isNewMs, Bool isNewArrayId, Bool isNewFieldId, Bool isNewSpectralWindow, const vi::Subchunk &subchunk, Int nRows, Int nChannels, Int nCorrelations, const Vector< Int > &correlations)
virtual void invalidate ()
virtual Bool isRekeyable () const
virtual void setRekeyable (Bool isRekeable)

Detailed Description

Definition at line 35 of file FlagCalTableHandler.h.


Constructor & Destructor Documentation

Definition at line 38 of file FlagCalTableHandler.h.

Definition at line 39 of file FlagCalTableHandler.h.


Member Function Documentation

virtual const Vector<Int>& casa::DummyBufferImpl::antenna1 ( ) const [inline, virtual]

Reimplemented in casa::CTBuffer.

Definition at line 84 of file FlagCalTableHandler.h.

virtual const Vector<Int>& casa::DummyBufferImpl::antenna2 ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 86 of file FlagCalTableHandler.h.

virtual const Vector<Int>& casa::DummyBufferImpl::arrayId ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 88 of file FlagCalTableHandler.h.

virtual Vector<MDirection>& casa::DummyBufferImpl::azel ( Double  time) const [inline, virtual]

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

Implements casa::vi::VisBuffer2.

Definition at line 156 of file FlagCalTableHandler.h.

virtual MDirection casa::DummyBufferImpl::azel0 ( Double  time) const [inline, virtual]

virtual void setVisCubeModel(const Vector<Float>& stokes) = 0; // [1..4] virtual const Matrix<CStokesVector> & visModel () const = 0; // [nF,nR] virtual void setVisModel (Matrix<CStokesVector> &) = 0; // [nF,nR]


Accessors for data derived from the MS main table data

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

Implements casa::vi::VisBuffer2.

Definition at line 155 of file FlagCalTableHandler.h.

virtual const Vector<SquareMatrix<Complex, 2> >& casa::DummyBufferImpl::cjones ( ) const [inline, virtual]

Returns the Jones C matrix for each antenna.

Implements casa::vi::VisBuffer2.

Definition at line 157 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::configureNewSubchunk ( Int  msId,
const String msName,
Bool  isNewMs,
Bool  isNewArrayId,
Bool  isNewFieldId,
Bool  isNewSpectralWindow,
const vi::Subchunk &  subchunk,
Int  nRows,
Int  nChannels,
Int  nCorrelations,
const Vector< Int > &  correlations 
) [inline, protected, virtual]

Definition at line 184 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::copy ( const VisBuffer2 other,
Bool  fetchIfNeeded 
) [inline, virtual]

Definition at line 41 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::copyComponents ( const VisBuffer2 other,
const VisBufferComponents2 &  components,
Bool  fetchIfNeeded = True 
) [inline, virtual]

Definition at line 42 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::copyCoordinateInfo ( const VisBuffer2 other,
Bool  includeDirections,
Bool  fetchIfNeeded = True 
) [inline, virtual]

Definition at line 45 of file FlagCalTableHandler.h.

virtual const Vector<Int>& casa::DummyBufferImpl::correlationTypes ( ) const [inline, virtual]

Returns the correlation type of each correlation in the VisCube.

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 158 of file FlagCalTableHandler.h.

virtual Int casa::DummyBufferImpl::dataDescriptionId ( ) const [inline, virtual]

Definition at line 90 of file FlagCalTableHandler.h.

virtual const Vector<Int>& casa::DummyBufferImpl::dataDescriptionIds ( ) const [inline, virtual]

virtual Int dataDescriptionId () const = 0; virtual void setDataDescriptionId (Int value) = 0;

Implements casa::vi::VisBuffer2.

Definition at line 178 of file FlagCalTableHandler.h.

virtual const Vector<MDirection>& casa::DummyBufferImpl::direction1 ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 93 of file FlagCalTableHandler.h.

virtual const Vector<MDirection>& casa::DummyBufferImpl::direction2 ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 94 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::dirtyComponentsAdd ( const VisBufferComponents2 &  additionalDirtyComponents) [inline, virtual]

Definition at line 55 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::dirtyComponentsAdd ( VisBufferComponent2  component) [inline, virtual]

Definition at line 56 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::dirtyComponentsClear ( ) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 57 of file FlagCalTableHandler.h.

virtual VisBufferComponents2 casa::DummyBufferImpl::dirtyComponentsGet ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 58 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::dirtyComponentsSet ( const VisBufferComponents2 &  dirtyComponents) [inline, virtual]

Definition at line 59 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::dirtyComponentsSet ( VisBufferComponent2  component) [inline, virtual]

Definition at line 60 of file FlagCalTableHandler.h.

virtual const Vector<Double>& casa::DummyBufferImpl::exposure ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 95 of file FlagCalTableHandler.h.

virtual const Vector<Int>& casa::DummyBufferImpl::feed1 ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 97 of file FlagCalTableHandler.h.

virtual const Vector<Int>& casa::DummyBufferImpl::feed2 ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 99 of file FlagCalTableHandler.h.

virtual Vector<Float>& casa::DummyBufferImpl::feedPa ( Double  time) const [inline, virtual]

Calculates the parallactic angle for the first receptor of each antenna at the specified time.

Implements casa::vi::VisBuffer2.

Definition at line 159 of file FlagCalTableHandler.h.

virtual const Vector<Float>& casa::DummyBufferImpl::feedPa1 ( ) const [inline, virtual]

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

Implements casa::vi::VisBuffer2.

Definition at line 160 of file FlagCalTableHandler.h.

virtual const Vector<Float>& casa::DummyBufferImpl::feedPa2 ( ) const [inline, virtual]

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

Implements casa::vi::VisBuffer2.

Definition at line 161 of file FlagCalTableHandler.h.

virtual const Vector<Int>& casa::DummyBufferImpl::fieldId ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 101 of file FlagCalTableHandler.h.

virtual const Matrix<Bool>& casa::DummyBufferImpl::flag ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 103 of file FlagCalTableHandler.h.

virtual const Array<Bool>& casa::DummyBufferImpl::flagCategory ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 105 of file FlagCalTableHandler.h.

virtual const Cube<Bool>& casa::DummyBufferImpl::flagCube ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 107 of file FlagCalTableHandler.h.

virtual const Vector<Bool>& casa::DummyBufferImpl::flagRow ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 109 of file FlagCalTableHandler.h.

virtual Int casa::DummyBufferImpl::getChannelNumber ( Int  rowInBuffer,
Int  frequencyIndex 
) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 68 of file FlagCalTableHandler.h.

virtual const Vector<Int>& casa::DummyBufferImpl::getChannelNumbers ( Int  rowInBuffer) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 69 of file FlagCalTableHandler.h.

virtual Vector<Int> casa::DummyBufferImpl::getCorrelationNumbers ( ) const [inline, 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 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.

Definition at line 179 of file FlagCalTableHandler.h.

virtual const Vector<Double>& casa::DummyBufferImpl::getFrequencies ( Int  rowInBuffer,
Int  frame = FrameNotSpecified 
) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 66 of file FlagCalTableHandler.h.

virtual Double casa::DummyBufferImpl::getFrequency ( Int  rowInBuffer,
Int  frequencyIndex,
Int  frame = FrameNotSpecified 
) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 64 of file FlagCalTableHandler.h.

virtual vi::Subchunk casa::DummyBufferImpl::getSubchunk ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 82 of file FlagCalTableHandler.h.

virtual const vi::VisibilityIterator2* casa::DummyBufferImpl::getVi ( ) const [inline, virtual]

For attached VBs this returns the VI the VB is attached to.

For free VBs this method returns False.

Implements casa::vi::VisBuffer2.

Definition at line 49 of file FlagCalTableHandler.h.

virtual Double casa::DummyBufferImpl::hourang ( Double  time) const [inline, virtual]

Returns the hour angle of the array at the specified time.

Implements casa::vi::VisBuffer2.

Definition at line 162 of file FlagCalTableHandler.h.

virtual const Matrix<Float>& casa::DummyBufferImpl::imagingWeight ( ) const [inline, virtual]

This method returns the imaging weights associated with the VisBuffer.

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

Implements casa::vi::VisBuffer2.

Definition at line 62 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::invalidate ( ) [inline, protected, virtual]

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 189 of file FlagCalTableHandler.h.

virtual Bool casa::DummyBufferImpl::isAttached ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 51 of file FlagCalTableHandler.h.

References casa::True.

virtual Bool casa::DummyBufferImpl::isFillable ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 52 of file FlagCalTableHandler.h.

References casa::True.

virtual Bool casa::DummyBufferImpl::isNewArrayId ( ) const [inline, virtual]


Subhchunk information methods

These methods provide information related to the current subchunk. The isNewXXX methods return True if the XXX property of the subchunk differs from the previous subchunk.

The methods msId and msName provide information about the MS related to the current subchunk. The msID is the zero-based index of the MS in the sequence of MSs being iterated over.

The isWritable method is True when the attached iterator is writable and False otherwise.

The isRekeyable method is True when the VisBuffer is writable and also allows the modification of non-data fields (e.g., antenna1, fieldId, etc.) A rekeyable VB is one that could be used to create data for a brand new MS.

Implements casa::vi::VisBuffer2.

Definition at line 75 of file FlagCalTableHandler.h.

virtual Bool casa::DummyBufferImpl::isNewFieldId ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 76 of file FlagCalTableHandler.h.

virtual Bool casa::DummyBufferImpl::isNewMs ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 77 of file FlagCalTableHandler.h.

virtual Bool casa::DummyBufferImpl::isNewSpectralWindow ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 78 of file FlagCalTableHandler.h.

virtual Bool casa::DummyBufferImpl::isRekeyable ( ) const [inline, protected, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 190 of file FlagCalTableHandler.h.

virtual Bool casa::DummyBufferImpl::isWritable ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 79 of file FlagCalTableHandler.h.

virtual Int casa::DummyBufferImpl::msId ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 80 of file FlagCalTableHandler.h.

virtual String casa::DummyBufferImpl::msName ( Bool  stripPath = False) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 81 of file FlagCalTableHandler.h.

virtual Int casa::DummyBufferImpl::nAntennas ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 163 of file FlagCalTableHandler.h.

virtual Int casa::DummyBufferImpl::nChannels ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 164 of file FlagCalTableHandler.h.

virtual Int casa::DummyBufferImpl::nCorrelations ( ) const [inline, virtual]

Returns the number of correlations along the visCube correlation axis.

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 165 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::normalize ( ) [inline, virtual]

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

The sorting functionality is a horrible kluge that puts the VisBuffer into a somewhat incoherent state (e.g., after sorting the correlation types array does not correspond to the data) and appears to serve the needs of a tiny piece of code. As such, this refactor is initially not going to support this functionality since it is probably better implemented in the one place that actually needs it. (jjacobs 10/3/12)

virtual void sortCorr () = 0; virtual void unSortCorr() = 0;

Normalize the visCube by the modelVisCube.

Implements casa::vi::VisBuffer2.

Definition at line 71 of file FlagCalTableHandler.h.

virtual Int casa::DummyBufferImpl::nRows ( ) const [inline, virtual]

Returns the number of rows in this VisBuffer.

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 166 of file FlagCalTableHandler.h.

virtual const Vector<Int>& casa::DummyBufferImpl::observationId ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 111 of file FlagCalTableHandler.h.

virtual Vector<Float>& casa::DummyBufferImpl::parang ( Double  time) const [inline, virtual]

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

Implements casa::vi::VisBuffer2.

Definition at line 168 of file FlagCalTableHandler.h.

virtual Float casa::DummyBufferImpl::parang0 ( Double  time) const [inline, virtual]

Calculates the parallactic angle of the array as a whole at the specified time.

Implements casa::vi::VisBuffer2.

Definition at line 167 of file FlagCalTableHandler.h.

virtual const MDirection& casa::DummyBufferImpl::phaseCenter ( ) const [inline, virtual]

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

Implements casa::vi::VisBuffer2.

Definition at line 169 of file FlagCalTableHandler.h.

virtual Int casa::DummyBufferImpl::polarizationFrame ( ) const [inline, virtual]

Returns the polarization frame for the specified row.

Implements casa::vi::VisBuffer2.

Definition at line 170 of file FlagCalTableHandler.h.

virtual Int casa::DummyBufferImpl::polarizationId ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 171 of file FlagCalTableHandler.h.

virtual const Vector<Int>& casa::DummyBufferImpl::processorId ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 113 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::resetWeightsUsingSigma ( ) [inline, virtual]

Set the weight cube using the sigma cube.

Each weight will be the reciprocal of the square of the corresponding element in the model VisCube multiplied by the number of channels in the spectral window. If an element in sigma is zero then the corresponding weight element will also be set to zero.

Implements casa::vi::VisBuffer2.

Definition at line 73 of file FlagCalTableHandler.h.

virtual const Vector<uInt>& casa::DummyBufferImpl::rowIds ( ) const [inline, virtual]

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

Implements casa::vi::VisBuffer2.

Definition at line 172 of file FlagCalTableHandler.h.

virtual const Vector<Int>& casa::DummyBufferImpl::scan ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 115 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setAntenna1 ( const Vector< Int > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 85 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setAntenna2 ( const Vector< Int > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 87 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setArrayId ( const Vector< Int > &  ) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 89 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setDataDescriptionId ( Int  value) [inline, virtual]

Definition at line 91 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setDataDescriptionIds ( const casa::Vector< int > &  ) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 92 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setExposure ( const Vector< Double > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 96 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setFeed1 ( const Vector< Int > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 98 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setFeed2 ( const Vector< Int > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 100 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setFieldId ( const Vector< Int > &  ) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 102 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setFillable ( Bool  isFillable) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 177 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setFlag ( const Matrix< Bool > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 104 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setFlagCategory ( const Array< Bool > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 106 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setFlagCube ( const Cube< Bool > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 108 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setFlagRow ( const Vector< Bool > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 110 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setObservationId ( const Vector< Int > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 112 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setProcessorId ( const Vector< Int > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 114 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setRekeyable ( Bool  isRekeable) [inline, protected, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 191 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setScan ( const Vector< Int > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 116 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setShape ( Int  nCorrelations,
Int  nChannels,
Int  nRows,
Bool   
) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 48 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setSigma ( const Matrix< Float > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 118 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setSpectralWindows ( const Vector< Int > &  ) [inline, virtual]

Definition at line 175 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setStateId ( const Vector< Int > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 121 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setTime ( const Vector< Double > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 123 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setTimeCentroid ( const Vector< Double > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 125 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setTimeInterval ( const Vector< Double > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 127 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setUvw ( const Matrix< Double > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 129 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setVis ( Matrix< CStokesVector > &  ) [inline, virtual]

Definition at line 141 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setVisCorrected ( const Matrix< CStokesVector > &  ) [inline, virtual]

Definition at line 145 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setVisCube ( const Complex &  c) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 138 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setVisCube ( const Cube< Complex > &  ) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 139 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setVisCubeCorrected ( const Cube< Complex > &  ) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 143 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setVisCubeFloat ( const Cube< Float > &  ) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 147 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setVisCubeModel ( const Complex &  c) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 149 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setVisCubeModel ( const Cube< Complex > &  vis) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 150 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setVisCubeModel ( const Vector< Float > &  stokes) [inline, virtual]

Definition at line 151 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setVisModel ( Matrix< CStokesVector > &  ) [inline, virtual]

Definition at line 153 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setWeight ( const Matrix< Float > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 131 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setWeightMat ( const Matrix< Float > &  value) [inline, virtual]

Definition at line 133 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::setWeightSpectrum ( const Cube< Float > &  value) [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 135 of file FlagCalTableHandler.h.

virtual const Matrix<Float>& casa::DummyBufferImpl::sigma ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 117 of file FlagCalTableHandler.h.

virtual const Matrix<Float>& casa::DummyBufferImpl::sigmaMat ( ) const [inline, virtual]

Definition at line 119 of file FlagCalTableHandler.h.

virtual Int casa::DummyBufferImpl::spectralWindow ( ) const [inline, virtual]

Reimplemented in casa::CTBuffer.

Definition at line 173 of file FlagCalTableHandler.h.

virtual const Vector<Int>& casa::DummyBufferImpl::spectralWindows ( ) const [inline, virtual]

Returns the spectral window ID for the specified row.

virtual Int spectralWindow () const = 0;

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 174 of file FlagCalTableHandler.h.

virtual const Vector<Int>& casa::DummyBufferImpl::stateId ( ) const [inline, virtual]

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

Implements casa::vi::VisBuffer2.

Definition at line 120 of file FlagCalTableHandler.h.

virtual const Vector<Double>& casa::DummyBufferImpl::time ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 122 of file FlagCalTableHandler.h.

virtual const Vector<Double>& casa::DummyBufferImpl::timeCentroid ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 124 of file FlagCalTableHandler.h.

virtual const Vector<Double>& casa::DummyBufferImpl::timeInterval ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 126 of file FlagCalTableHandler.h.

virtual const Matrix<Double>& casa::DummyBufferImpl::uvw ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 128 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::validateShapes ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 180 of file FlagCalTableHandler.h.

virtual const Matrix<CStokesVector>& casa::DummyBufferImpl::vis ( ) const [inline, virtual]

Definition at line 140 of file FlagCalTableHandler.h.

virtual const Matrix<CStokesVector>& casa::DummyBufferImpl::visCorrected ( ) const [inline, virtual]

Definition at line 144 of file FlagCalTableHandler.h.

virtual const Cube<Complex>& casa::DummyBufferImpl::visCube ( ) const [inline, virtual]


Visibility data accessors in order of observed, corrected, float, & model

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 137 of file FlagCalTableHandler.h.

virtual const Cube<Complex>& casa::DummyBufferImpl::visCubeCorrected ( ) const [inline, virtual]

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

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 142 of file FlagCalTableHandler.h.

virtual const Cube<Float>& casa::DummyBufferImpl::visCubeFloat ( ) const [inline, virtual]

virtual const Matrix<CStokesVector> & visCorrected () const = 0; // [nF,nR] virtual void setVisCorrected (const Matrix<CStokesVector> &) = 0; // [nF,nR]

Implements casa::vi::VisBuffer2.

Definition at line 146 of file FlagCalTableHandler.h.

virtual const Cube<Complex>& casa::DummyBufferImpl::visCubeModel ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Reimplemented in casa::CTBuffer.

Definition at line 148 of file FlagCalTableHandler.h.

virtual const Matrix<CStokesVector>& casa::DummyBufferImpl::visModel ( ) const [inline, virtual]

Definition at line 152 of file FlagCalTableHandler.h.

virtual const Matrix<Float>& casa::DummyBufferImpl::weight ( ) const [inline, virtual]

Implements casa::vi::VisBuffer2.

Definition at line 130 of file FlagCalTableHandler.h.

virtual const Matrix<Float>& casa::DummyBufferImpl::weightMat ( ) const [inline, virtual]

Definition at line 132 of file FlagCalTableHandler.h.

virtual const Cube<Float>& casa::DummyBufferImpl::weightSpectrum ( ) const [inline, virtual]

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

Implements casa::vi::VisBuffer2.

Definition at line 134 of file FlagCalTableHandler.h.

virtual void casa::DummyBufferImpl::writeChangesBack ( ) [inline, 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.

Definition at line 54 of file FlagCalTableHandler.h.


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