casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends
casa::ViReadImplAsync Class Reference

#include <VisibilityIteratorImplAsync.h>

Inheritance diagram for casa::ViReadImplAsync:
casa::VisibilityIteratorReadImpl

List of all members.

Public Types

typedef
casa::asyncio::PrefetchColumns 
PrefetchColumns

Public Member Functions

 ViReadImplAsync (const Block< MeasurementSet > &mss, const PrefetchColumns &prefetchColumns, const Block< Int > &sortColumns, const Bool addDefaultSortCols, Double timeInterval, Bool writable)
 static VisibilityIteratorReadImpl * create (const ROVisibilityIterator &, const PrefetchColumns & prefetchColumns, Int nReadAheadBuffers = -1);
 ViReadImplAsync (const PrefetchColumns &prefetchColumns, const VisibilityIteratorReadImpl &other, Bool writable)
 ~ViReadImplAsync ()
VisibilityIteratorReadImplclone () const
void attachVisBuffer (VisBuffer &vb)
 Attach a VisBuffer object.
void detachVisBuffer (VisBuffer &vb)
 Detach a VisBuffer object.
void getChannelSelection (Block< Vector< Int > > &, Block< Vector< Int > > &, Block< Vector< Int > > &, Block< Vector< Int > > &, Block< Vector< Int > > &)
 get the channel selection ...the block over the number of ms's associated with this iterator
PrefetchColumns getPrefetchColumns () const
VisBuffergetVisBuffer ()
MEpoch getEpoch () const
 Int getDataDescriptionId () const; const MeasurementSet & getMeasurementSet(); const Int getMeasurementSetId (); Int getNAntennas () const;.
bool more () const
 Vector<Float> getReceptor0Angle ();.
bool moreChunks () const
 Return False if no more 'Chunks' of data left.
ViReadImplAsyncnextChunk ()
 Advance to the next Chunk of data.
void origin ()
 Reset iterator to origin/start of data (of current chunk)
void originChunks ()
 Reset iterator to true start of data (first chunk)
virtual void advance ()
 advance the iteration
void setPrefetchColumns (const PrefetchColumns &prefetchColumns)
VisibilityIteratorReadImplselectChannel (Int nGroup=1, Int start=0, Int width=0, Int increment=1, Int spectralWindow=-1)
 Channel selection - only the selected channels will be returned by the access functions.
VisibilityIteratorReadImplselectChannel (const Block< Vector< Int > > &blockNGroup, const Block< Vector< Int > > &blockStart, const Block< Vector< Int > > &blockWidth, const Block< Vector< Int > > &blockIncr, const Block< Vector< Int > > &blockSpw)
 Same as above except when multiple ms's are to be accessed.
VisibilityIteratorReadImplselectVelocity (Int, const MVRadialVelocity &, const MVRadialVelocity &, MRadialVelocity::Types, MDoppler::Types, Bool)
 Velocity selection - specify the output channels in velocity: nChan - number of output channels, vStart - start velocity, vInc - velocity increment.
void setInterval (Double timeInterval)
 Set or reset the time interval (in seconds) to use for iteration.
void setRowBlocking (Int nRow)
 Set the 'blocking' size for returning data.
Bool allBeamOffsetsZero () const
 The functions below make no sense (at first glance) for asynchronous operation and are implemented to throw an AipsError if called.
void allSelectedSpectralWindows (Vector< Int > &, Vector< Int > &)
 get back the selected spectral windows and spectral channels for current ms
Vector< Int > & antenna1 (Vector< Int > &) const
 Return antenna1.
Vector< Int > & antenna2 (Vector< Int > &) const
 Return antenna2.
const Vector< String > & antennaMounts () const
 return a string mount identifier for each antenna
Vector< MDirectionazel (Double) const
MDirection azel0 (Double) const
 Return the antenna AZ/EL Vector (nant)
Vector< Int > & channel (Vector< Int > &) const
 Return channel numbers in selected VisSet spectrum (i.e.
Int channelGroupSize () const
 Return the width of the current group of channels, i.e., the number of channels returned by visibility () and frequency ().
Int channelIndex () const
 Return the index of the first channel of the current channel group in the total (selected) spectrum.
Vector< SquareMatrix< Complex, 2 > > & CJones (Vector< SquareMatrix< Complex, 2 > > &) const
 Return feed configuration matrix for specified antenna.
Vector< Int > & corrType (Vector< Int > &) const
 Return the correlation type (returns Stokes enums)
Int dataDescriptionId () const
 Return current DataDescription Id.
Bool existsWeightSpectrum () const
 Determine whether WEIGHT_SPECTRUM exists.
Vector< Double > & exposure (Vector< Double > &) const
 Return actual time interval.
Vector< Int > & feed1 (Vector< Int > &) const
 Return feed1.
Vector< Int > & feed2 (Vector< Int > &) const
 Return feed2.
Int fieldId () const
 Vector<Float> feed_pa(Double ) const { NotImplementedROVIA; }.
Array< Bool > & flagCategory (Array< Bool > &) const
 Return flags for each polarization, channel, category, and row.
Cube< Float > & floatData (Cube< Float > &) const
 Return FLOAT_DATA as a Cube (npol, nchan, nrow) if found in the MS.
void getFloatDataColumn (Cube< Float > &) const
void getFloatDataColumn (const Slicer &, Cube< Float > &) const
 get FLOAT_DATA as real Floats.
void getInterpolatedFloatDataFlagWeight () const
void getInterpolatedVisFlagWeight (DataColumn) const
Int arrayId () const
 Return the current ArrayId.
String fieldName () const
 Return the current Field Name.
String sourceName () const
 Return the current Source Name.
Cube< Bool > & flag (Cube< Bool > &) const
 Return flag for each polarization, channel and row.
Matrix< Bool > & flag (Matrix< Bool > &) const
 Return flag for each channel & row.
Vector< Bool > & flagRow (Vector< Bool > &) const
 Return row flag.
Vector< Double > & frequency (Vector< Double > &) const
 Return current frequencies (in Hz, acc.
const Cube< RigidVector
< Double, 2 > > & 
getBeamOffsets () const
 Return a cube containing pairs of coordinate offsets for each receptor of each feed (values are in radians, coordinate system is fixed with antenna and is the same one as used to define the BEAM_OFFSET parameter in the feed table).
Int getDataDescriptionId () const
MEpoch getMEpoch () const
const MeasurementSetgetMeasurementSet () const
Int getMeasurementSetId () const
Int getNAntennas () const
Vector< FloatgetReceptor0Angle ()
Vector< uIntgetRowIds () const
Double hourang (Double) const
 Return the hour angle for the specified time.
Vector< Double > & lsrFrequency (Vector< Double > &) const
 Return frequencies (in Hz, acc.
void lsrFrequency (const Int &, Vector< Double > &, Bool &)
const MeasurementSetms () const
 reference to actual ms in interator
const ROMSColumnsmsColumns () const
 Access the current ROMSColumns object in MSIter.
Int msId () const
Int nCorr () const
 Return the number of correlations in the current iteration.
Int nRow () const
 Return the number of rows in the current iteration.
Int nRowChunk () const
 Return the numbers of rows in the current chunk.
Int nSubInterval () const
 Return the number of sub-intervals in the current chunk.
Bool newArrayId () const
 Return True if arrayID has changed since last iteration.
Bool newFieldId () const
 Return True if FieldId/Source has changed since last iteration.
Bool newMS () const
 Check if ms has change since last iteration.
Bool newSpectralWindow () const
 Return True if SpectralWindow has changed since last iteration.
Int numberCoh ()
 Return number of rows in all selected ms's.
Int numberDDId ()
Int numberPol ()
Int numberSpw ()
 Return number of spws, polids, ddids.
Vector< Int > & observationId (Vector< Int > &) const
 Return the OBSERVATION_IDs.
Vector< Floatparang (Double) const
 Per antenna:
const Floatparang0 (Double) const
 Return nominal parallactic angle at specified time (does not include feed position angle offset--see feed_pa) A global value for all antennas (e.g., small array)
const MDirectionphaseCenter () const
 Return the current phase center as an MDirection.
Int polFrame () const
 Return frame for polarization (returns PolFrame enum)
Vector< Int > & processorId (Vector< Int > &) const
 Return the PROCESSOR_IDs.
Int polarizationId () const
 Return current Polarization Id.
const Cube< Double > & receptorAngles () const
 Return receptor angles for all antennae and feeds First axis of the cube is a receptor number, 2nd is antennaId, 3rd is feedId Note: the method is intended to provide an access to MSIter::receptorAngles for VisBuffer in the multi-feed case.
Vector< uInt > & rowIds (Vector< uInt > &) const
 Return the row ids as from the original root table.
Vector< Int > & scan (Vector< Int > &) const
 Return scan number.
Vector< Float > & sigma (Vector< Float > &) const
 Return sigma.
Matrix< Float > & sigmaMat (Matrix< Float > &) const
 Return sigma matrix (pol-dep)
void slurp () const
 Call to use the slurp i/o method for all scalar columns.
Int spectralWindow () const
 Return current SpectralWindow.
Vector< Int > & stateId (Vector< Int > &) const
 Return the STATE_IDs.
Vector< Double > & time (Vector< Double > &) const
 Return MJD midpoint of interval.
Vector< Double > & timeCentroid (Vector< Double > &) const
 Return MJD centroid of interval.
Vector< Double > & timeInterval (Vector< Double > &) const
 Return nominal time interval.
Vector< RigidVector< Double, 3 > > & uvw (Vector< RigidVector< Double, 3 > > &) const
 Return u,v and w (in meters)
Matrix< Double > & uvwMat (Matrix< Double > &) const
VisibilityIteratorReadImplvelInterpolation (const String &)
 Select the velocity interpolation scheme.
Cube< Complex > & visibility (Cube< Complex > &, DataColumn) const
 Return the visibilities as found in the MS, Cube (npol,nchan,nrow).
Matrix< CStokesVector > & visibility (Matrix< CStokesVector > &, DataColumn) const
 Return the visibility 4-vector of polarizations for each channel.
IPosition visibilityShape () const
 Return the shape of the visibility Cube.
Vector< Float > & weight (Vector< Float > &) const
 Return weight.
Matrix< Float > & weightMat (Matrix< Float > &) const
 Returns the nPol_p x curNumRow_p weight matrix.
Cube< Float > & weightSpectrum (Cube< Float > &) const
 Return weightspectrum (a weight for each channel)

Static Public Member Functions

static int getDefaultNBuffers ()
 These functions generate a list of the IDs (from PrefetchColumnIDs enum) of the columns to prefetch.
static String prefetchColumnName (Int id)

Protected Member Functions

 ViReadImplAsync (const ROVisibilityIterator &rovi, const PrefetchColumns &prefetchColumns, Int nReadAheadBuffers=-1)
 Use the factory method "create" instead of calling the constructor directly.
PrefetchColumns augmentPrefetchColumns (const PrefetchColumns &prefetchColumnsBase)
void construct (const Block< MeasurementSet > &mss, const PrefetchColumns &prefetchColumns, const Block< Int > &sortColumns, const Bool addDefaultSortCols, Double timeInterval, Bool writable)
void fillVisBuffer ()
const MeasurementSetgetMs () const
void readComplete ()
void saveMss (const Block< MeasurementSet > &mss)
void saveMss (const MeasurementSet &ms)

Private Member Functions

void dumpPrefetchColumns () const
void updateMsd ()
 ViReadImplAsync (const ViReadImplAsync &MSI)
ViReadImplAsyncoperator= (const ViReadImplAsync &MSI)

Private Attributes

asyncio::AsynchronousInterfaceinterface_p
 void startVlat ();
Int msId_p
PrefetchColumns prefetchColumns_p
Stack< VisBufferAsyncWrapper * > vbaWrapperStack_p
VisBufferAsyncvisBufferAsync_p
asyncio::VlaDatavlaData_p
asyncio::VLATvlat_p

Friends

class Rovia_Test
 This needs to be changed back to ROVisibilityIterator at some point after feasibility testing.
class ROVisIterator
class VisIterator
class ViWriteImplAsync

Detailed Description

Definition at line 36 of file VisibilityIteratorImplAsync.h.


Member Typedef Documentation

Definition at line 47 of file VisibilityIteratorImplAsync.h.


Constructor & Destructor Documentation

casa::ViReadImplAsync::ViReadImplAsync ( const Block< MeasurementSet > &  mss,
const PrefetchColumns prefetchColumns,
const Block< Int > &  sortColumns,
const Bool  addDefaultSortCols,
Double  timeInterval,
Bool  writable 
)

static VisibilityIteratorReadImpl * create (const ROVisibilityIterator &, const PrefetchColumns & prefetchColumns, Int nReadAheadBuffers = -1);

casa::ViReadImplAsync::ViReadImplAsync ( const PrefetchColumns prefetchColumns,
const VisibilityIteratorReadImpl other,
Bool  writable 
)
casa::ViReadImplAsync::ViReadImplAsync ( const ROVisibilityIterator rovi,
const PrefetchColumns prefetchColumns,
Int  nReadAheadBuffers = -1 
) [protected]

Use the factory method "create" instead of calling the constructor directly.

This allows disabling the feature.

 ViReadImplAsync (const MeasurementSet & ms,
                  const PrefetchColumns & prefetchColumns,
                  const Block<Int> & sortColumns,
                  Double timeInterval=0,
                  Int nReadAheadBuffers = 2);
 ViReadImplAsync (const MeasurementSet & ms,
                  const PrefetchColumns & prefetchColumns,
                  const Block<Int> & sortColumns,
                  const Bool addDefaultSortCols,
                  Double timeInterval=0,
                  Int nReadAheadBuffers = 2);

Same as previous constructor, but with multiple MSs to iterate over.

   ViReadImplAsync (const Block<MeasurementSet> & mss,
                    const PrefetchColumns & prefetchColumns,
                    const Block<Int> & sortColumns,
                    Double timeInterval=0,
                    Int nReadAheadBuffers = 2);

Member Function Documentation

virtual void casa::ViReadImplAsync::advance ( ) [virtual]

advance the iteration

Reimplemented from casa::VisibilityIteratorReadImpl.

The functions below make no sense (at first glance) for asynchronous operation and are implemented to throw an AipsError if called.

ROVIA is designed to have all the data accessed through the associated VisBufferAsync. Any method which tries to access data through the ROVIA makes no sense. Also anything that tries to change the characteristics of underlying ROVI is not currently permitted. During integration some methods may be found to be more important to the use of ROVIA and a way may be found to implement them in ROVIA.

Reimplemented from casa::VisibilityIteratorReadImpl.

void casa::ViReadImplAsync::allSelectedSpectralWindows ( Vector< Int > &  spws,
Vector< Int > &  nvischan 
) [inline, virtual]

get back the selected spectral windows and spectral channels for current ms

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 135 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Return antenna1.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 136 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Return antenna2.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 137 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

const Vector<String>& casa::ViReadImplAsync::antennaMounts ( ) const [virtual]

return a string mount identifier for each antenna

Reimplemented from casa::VisibilityIteratorReadImpl.

Int casa::ViReadImplAsync::arrayId ( ) const [inline, virtual]

Return the current ArrayId.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 159 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Attach a VisBuffer object.

Note that while more than one VisBuffer may be attached, only the last one is actively updated. A Stack is kept internally, so after a detach, the previous VisBuffer becomes active again.

Reimplemented from casa::VisibilityIteratorReadImpl.

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

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 139 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

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

Return the antenna AZ/EL Vector (nant)

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 140 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Vector<Int>& casa::ViReadImplAsync::channel ( Vector< Int > &  chan) const [inline, virtual]

Return channel numbers in selected VisSet spectrum (i.e.

disregarding possible selection on the iterator, but including the selection set when creating the VisSet)

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 141 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Int casa::ViReadImplAsync::channelGroupSize ( ) const [inline, virtual]

Return the width of the current group of channels, i.e., the number of channels returned by visibility () and frequency ().

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 142 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Int casa::ViReadImplAsync::channelIndex ( ) const [inline, virtual]

Return the index of the first channel of the current channel group in the total (selected) spectrum.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 143 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

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

Return feed configuration matrix for specified antenna.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 144 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

void casa::ViReadImplAsync::construct ( const Block< MeasurementSet > &  mss,
const PrefetchColumns prefetchColumns,
const Block< Int > &  sortColumns,
const Bool  addDefaultSortCols,
Double  timeInterval,
Bool  writable 
) [protected]
Vector<Int>& casa::ViReadImplAsync::corrType ( Vector< Int > &  corrTypes) const [inline, virtual]

Return the correlation type (returns Stokes enums)

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 145 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Return current DataDescription Id.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 146 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Detach a VisBuffer object.

If the object detached is not the last one attached an exception is thrown.

Reimplemented from casa::VisibilityIteratorReadImpl.

Determine whether WEIGHT_SPECTRUM exists.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 147 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

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

Return actual time interval.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 148 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Return feed1.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 149 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Return feed2.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 150 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Int casa::ViReadImplAsync::fieldId ( ) const [inline, virtual]

Vector<Float> feed_pa(Double ) const { NotImplementedROVIA; }.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 152 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

String casa::ViReadImplAsync::fieldName ( ) const [inline, virtual]

Return the current Field Name.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 160 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Cube<Bool>& casa::ViReadImplAsync::flag ( Cube< Bool > &  flags) const [inline, virtual]

Return flag for each polarization, channel and row.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 162 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Return flag for each channel & row.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 163 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Return flags for each polarization, channel, category, and row.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 153 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Return row flag.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 164 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Cube<Float>& casa::ViReadImplAsync::floatData ( Cube< Float > &  fcube) const [inline, virtual]

Return FLOAT_DATA as a Cube (npol, nchan, nrow) if found in the MS.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 154 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Vector<Double>& casa::ViReadImplAsync::frequency ( Vector< Double > &  freq) const [inline, virtual]

Return current frequencies (in Hz, acc.

to the MS def'n v.2)

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 165 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Return a cube containing pairs of coordinate offsets for each receptor of each feed (values are in radians, coordinate system is fixed with antenna and is the same one as used to define the BEAM_OFFSET parameter in the feed table).

The cube axes are receptor, antenna, feed.

Reimplemented from casa::VisibilityIteratorReadImpl.

void casa::ViReadImplAsync::getChannelSelection ( Block< Vector< Int > > &  blockNGroup,
Block< Vector< Int > > &  blockStart,
Block< Vector< Int > > &  blockWidth,
Block< Vector< Int > > &  blockIncr,
Block< Vector< Int > > &  blockSpw 
) [virtual]

get the channel selection ...the block over the number of ms's associated with this iterator

Reimplemented from casa::VisibilityIteratorReadImpl.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 167 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

These functions generate a list of the IDs (from PrefetchColumnIDs enum) of the columns to prefetch.

For the variable arg calls, terminate with a -1.

Int getDataDescriptionId () const; const MeasurementSet & getMeasurementSet(); const Int getMeasurementSetId (); Int getNAntennas () const;.

Reimplemented from casa::VisibilityIteratorReadImpl.

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

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 155 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

void casa::ViReadImplAsync::getFloatDataColumn ( const Slicer slicer,
Cube< Float > &  data 
) const [inline, virtual]

get FLOAT_DATA as real Floats.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 156 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Definition at line 157 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Definition at line 158 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 169 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 170 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Definition at line 168 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

const MeasurementSet& casa::ViReadImplAsync::getMs ( ) const [protected]

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 171 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 172 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 173 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Reimplemented from casa::VisibilityIteratorReadImpl.

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

Return the hour angle for the specified time.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 174 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Vector<Double>& casa::ViReadImplAsync::lsrFrequency ( Vector< Double > &  freq) const [inline, virtual]

Return frequencies (in Hz, acc.

to the MS def'n v.2) in selected velocity frame, returns the same as frequency () if there is no vel selection active.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 175 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

void casa::ViReadImplAsync::lsrFrequency ( const Int ,
Vector< Double > &  ,
Bool  
) [inline]

Definition at line 176 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

bool casa::ViReadImplAsync::more ( ) const [virtual]

Vector<Float> getReceptor0Angle ();.

/void linkWithRovi (VisibilityIteratorReadImpl * rovi);

Reimplemented from casa::VisibilityIteratorReadImpl.

bool casa::ViReadImplAsync::moreChunks ( ) const [virtual]

Return False if no more 'Chunks' of data left.

Reimplemented from casa::VisibilityIteratorReadImpl.

const MeasurementSet& casa::ViReadImplAsync::ms ( ) const [inline, virtual]

reference to actual ms in interator

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 177 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

const ROMSColumns& casa::ViReadImplAsync::msColumns ( ) const [virtual]

Access the current ROMSColumns object in MSIter.

Reimplemented from casa::VisibilityIteratorReadImpl.

Int casa::ViReadImplAsync::msId ( ) const [virtual]

Reimplemented from casa::VisibilityIteratorReadImpl.

Int casa::ViReadImplAsync::nCorr ( ) const [inline, virtual]

Return the number of correlations in the current iteration.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 180 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Bool casa::ViReadImplAsync::newArrayId ( ) const [inline, virtual]

Return True if arrayID has changed since last iteration.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 184 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Bool casa::ViReadImplAsync::newFieldId ( ) const [inline, virtual]

Return True if FieldId/Source has changed since last iteration.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 185 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Bool casa::ViReadImplAsync::newMS ( ) const [inline, virtual]

Check if ms has change since last iteration.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 186 of file VisibilityIteratorImplAsync.h.

References casa::MSIter::more(), and casa::VisibilityIteratorReadImpl::msIter_p.

Bool casa::ViReadImplAsync::newSpectralWindow ( ) const [inline, virtual]

Return True if SpectralWindow has changed since last iteration.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 187 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Advance to the next Chunk of data.

Reimplemented from casa::VisibilityIteratorReadImpl.

Int casa::ViReadImplAsync::nRow ( ) const [inline, virtual]

Return the number of rows in the current iteration.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 181 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Return the numbers of rows in the current chunk.

Reimplemented from casa::VisibilityIteratorReadImpl.

Int casa::ViReadImplAsync::nSubInterval ( ) const [inline, virtual]

Return the number of sub-intervals in the current chunk.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 183 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Int casa::ViReadImplAsync::numberCoh ( ) [inline, virtual]

Return number of rows in all selected ms's.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 188 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Int casa::ViReadImplAsync::numberDDId ( ) [inline, virtual]

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 189 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Int casa::ViReadImplAsync::numberPol ( ) [inline, virtual]

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 190 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Return number of spws, polids, ddids.

Reimplemented from casa::VisibilityIteratorReadImpl.

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

Return the OBSERVATION_IDs.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 192 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

ViReadImplAsync& casa::ViReadImplAsync::operator= ( const ViReadImplAsync MSI) [private]
void casa::ViReadImplAsync::origin ( ) [virtual]

Reset iterator to origin/start of data (of current chunk)

Reimplemented from casa::VisibilityIteratorReadImpl.

Reset iterator to true start of data (first chunk)

Reimplemented from casa::VisibilityIteratorReadImpl.

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

Per antenna:

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 193 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

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

Return nominal parallactic angle at specified time (does not include feed position angle offset--see feed_pa) A global value for all antennas (e.g., small array)

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 194 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

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

Return the current phase center as an MDirection.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 195 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Return current Polarization Id.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 198 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Int casa::ViReadImplAsync::polFrame ( ) const [inline, virtual]

Return frame for polarization (returns PolFrame enum)

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 196 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Return the PROCESSOR_IDs.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 197 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

const Cube<Double>& casa::ViReadImplAsync::receptorAngles ( ) const [virtual]

Return receptor angles for all antennae and feeds First axis of the cube is a receptor number, 2nd is antennaId, 3rd is feedId Note: the method is intended to provide an access to MSIter::receptorAngles for VisBuffer in the multi-feed case.

It may be worth to change the interface of feed_pa to return the information for all feeds.

Reimplemented from casa::VisibilityIteratorReadImpl.

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

Return the row ids as from the original root table.

This is useful to find correspondance between a given row in this iteration to the original ms row

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 200 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

void casa::ViReadImplAsync::saveMss ( const Block< MeasurementSet > &  mss) [protected]
void casa::ViReadImplAsync::saveMss ( const MeasurementSet ms) [protected]
Vector<Int>& casa::ViReadImplAsync::scan ( Vector< Int > &  scans) const [inline, virtual]

Return scan number.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 201 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

VisibilityIteratorReadImpl& casa::ViReadImplAsync::selectChannel ( Int  nGroup = 1,
Int  start = 0,
Int  width = 0,
Int  increment = 1,
Int  spectralWindow = -1 
) [virtual]

Channel selection - only the selected channels will be returned by the access functions.

The default spectralWindow is the current one (or 0) This allows selection of the input channels, producing nGroup groups of width output channels. Default is to return all channels in a single group.

Reimplemented from casa::VisibilityIteratorReadImpl.

VisibilityIteratorReadImpl& casa::ViReadImplAsync::selectChannel ( const Block< Vector< Int > > &  blockNGroup,
const Block< Vector< Int > > &  blockStart,
const Block< Vector< Int > > &  blockWidth,
const Block< Vector< Int > > &  blockIncr,
const Block< Vector< Int > > &  blockSpw 
) [virtual]

Same as above except when multiple ms's are to be accessed.

Reimplemented from casa::VisibilityIteratorReadImpl.

VisibilityIteratorReadImpl& casa::ViReadImplAsync::selectVelocity ( Int  nChan,
const MVRadialVelocity vStart,
const MVRadialVelocity vInc,
MRadialVelocity::Types  rvType,
MDoppler::Types  dType,
Bool  precise 
) [virtual]

Velocity selection - specify the output channels in velocity: nChan - number of output channels, vStart - start velocity, vInc - velocity increment.

So channel i will have velocity vStart + i*vInc (i=0,nChan-1). Specify velocities as in e.g., MVRadialVelocity (Quantity (2001.,"km/s")). The reference type and velocity definition are specified separately. Note that no averaging is performed, the visibilities will be interpolated and sampled at the specified velocities, it's up to you to choose a vInc appropriate to the channel width. The REST_FREQUENCY column in the SPECTRAL_WINDOW subtable is used to determine the velocity-frequency conversion. By default calculations are done for a single velocity with offsets applied for the others (ok for non-rel velocities with RADIO defn), set precise to True to do a full conversion for each output channel. (NYI)

Reimplemented from casa::VisibilityIteratorReadImpl.

void casa::ViReadImplAsync::setInterval ( Double  timeInterval) [virtual]

Set or reset the time interval (in seconds) to use for iteration.

You should call originChunks () to reset the iteration after calling this.

Reimplemented from casa::VisibilityIteratorReadImpl.

void casa::ViReadImplAsync::setRowBlocking ( Int  nRows) [virtual]

Set the 'blocking' size for returning data.

With the default (0) only a single integration is returned at a time, this is what is currently required for the calibration software. With blocking set, up to nRows can be returned in one go. The chunk size determines the actual maximum.

Reimplemented from casa::VisibilityIteratorReadImpl.

Vector<Float>& casa::ViReadImplAsync::sigma ( Vector< Float > &  sig) const [inline, virtual]

Return sigma.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 202 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Return sigma matrix (pol-dep)

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 203 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

void casa::ViReadImplAsync::slurp ( ) const [inline, virtual]

Call to use the slurp i/o method for all scalar columns.

This will set the BucketCache cache size to the full column length and cause the full column to be cached in memory, if any value of the column is used. In case of out-of-memory, it will automatically fall-back on the smaller cache size. Slurping the column is to be considered as a work-around for the Table i/o code, which uses BucketCache and performs extremely bad for random access. Slurping is useful when iterating non-sequentially an MS or parts of an MS, it is not tested with multiple MSs.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 204 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

String casa::ViReadImplAsync::sourceName ( ) const [inline, virtual]

Return the current Source Name.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 161 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

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

Return current SpectralWindow.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 205 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Return the STATE_IDs.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 206 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Return MJD midpoint of interval.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 207 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Return MJD centroid of interval.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 208 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Return nominal time interval.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 209 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Vector<RigidVector<Double,3> >& casa::ViReadImplAsync::uvw ( Vector< RigidVector< Double, 3 > > &  uvwvec) const [inline, virtual]

Return u,v and w (in meters)

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 210 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Matrix<Double>& casa::ViReadImplAsync::uvwMat ( Matrix< Double > &  ) const [inline, virtual]

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 211 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Select the velocity interpolation scheme.

At present the choice is limited to : nearest and linear, linear is the default. TODO: add cubic, spline and possibly FFT

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 212 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Cube<Complex>& casa::ViReadImplAsync::visibility ( Cube< Complex > &  vis,
DataColumn  whichOne 
) const [inline, virtual]

Return the visibilities as found in the MS, Cube (npol,nchan,nrow).

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 213 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Matrix<CStokesVector>& casa::ViReadImplAsync::visibility ( Matrix< CStokesVector > &  vis,
DataColumn  whichOne 
) const [inline, virtual]

Return the visibility 4-vector of polarizations for each channel.

If the MS doesn't contain all polarizations, it is assumed it contains one or two parallel hand polarizations.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 214 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

Return the shape of the visibility Cube.

inline VisibilityIteratorReadImpl & VisibilityIteratorReadImpl::velInterpolation (const String & type) { vInterpolation_p = type; return *this; }

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 215 of file VisibilityIteratorImplAsync.h.

References NotImplementedROVIA.

Vector<Float>& casa::ViReadImplAsync::weight ( Vector< Float > &  wt) const [inline, virtual]

Return weight.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 216 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Returns the nPol_p x curNumRow_p weight matrix.

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 217 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.

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

Return weightspectrum (a weight for each channel)

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 218 of file VisibilityIteratorImplAsync.h.

References NotPrefetched.


Friends And Related Function Documentation

friend class Rovia_Test [friend]

This needs to be changed back to ROVisibilityIterator at some point after feasibility testing.

Definition at line 40 of file VisibilityIteratorImplAsync.h.

friend class ROVisIterator [friend]

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 41 of file VisibilityIteratorImplAsync.h.

friend class VisIterator [friend]

Reimplemented from casa::VisibilityIteratorReadImpl.

Definition at line 42 of file VisibilityIteratorImplAsync.h.

friend class ViWriteImplAsync [friend]

Definition at line 43 of file VisibilityIteratorImplAsync.h.


Member Data Documentation

void startVlat ();

Definition at line 270 of file VisibilityIteratorImplAsync.h.

Definition at line 271 of file VisibilityIteratorImplAsync.h.

Definition at line 272 of file VisibilityIteratorImplAsync.h.

Definition at line 273 of file VisibilityIteratorImplAsync.h.

Definition at line 274 of file VisibilityIteratorImplAsync.h.

Definition at line 275 of file VisibilityIteratorImplAsync.h.

Definition at line 276 of file VisibilityIteratorImplAsync.h.


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