Go to the documentation of this file.
31 #include <casacore/casa/aips.h>
32 #include <casacore/casa/Arrays/Matrix.h>
33 #include <casacore/casa/Arrays/Cube.h>
34 #include <casacore/ms/MeasurementSets/MeasurementSet.h>
35 #include <casacore/measures/Measures/MFrequency.h>
36 #include <casacore/measures/Measures/MDirection.h>
37 #include <casacore/measures/Measures/MPosition.h>
38 #include <casacore/tables/Tables/ScalarColumn.h>
39 #include <casacore/casa/Utilities/Compare.h>
40 #include <casacore/casa/BasicSL/String.h>
41 #include <casacore/scimath/Mathematics/SquareMatrix.h>
42 #include <casacore/scimath/Mathematics/RigidVector.h>
62 virtual int comp(
const void * obj1,
const void * obj2)
const;
237 const MS&
ms()
const;
const Vector< SquareMatrix< Complex, 2 > > & CJones() const
Return the feed configuration/leakage matrix for feed 0 on each antenna TODO: CJonesAll can be used i...
Int polFrame() const
Return frame for polarization (returns PolFrame enum)
A Measure: wave characteristics.
const Cube< RigidVector< Double, 2 > > & getBeamOffsets() const
Return a cube containing pairs of coordinate offset for each receptor of each feed (values are in rad...
A 2-D Specialization of the Array class.
MFrequency restFrequency_p
Bool isSubSet(const Vector< uInt > &r1, const Vector< uInt > &r2)
Determine if the numbers in r1 are a sorted subset of those in r2.
const Matrix< SquareMatrix< Complex, 2 > > & CJonesAll() const
Return the feed configuration/leakage matrix for all feeds and antennae First axis is antennaId,...
virtual int comp(const void *obj1, const void *obj2) const
Compare two objects, and return.
A Measure: position on Earth.
Block< MeasurementSet > bms_p
A drop-in replacement for Block<T*>.
PolFrame polFrame_p
are zero (to speed things up in a single beam case)
Int msId() const
Return the current MS Id (according to the order in which they appeared in the constructor)
void advance()
advance the iteration
const String & fieldName() const
return FIELD table associated current fieldname and sourcename respectively
Referenced counted pointer for constant data.
Small helper class to specify an 'interval' comparison.
const String & sourceName() const
MPosition telescopePosition_p
Table table() const
Return the current Table iteration.
Matrix< Double > receptorAnglesFeed0_p
cache for access functions
Int spectralWindowId() const
Return current SpectralWindow.
Int dataDescriptionId() const
Return current DataDescriptionId.
Bool allBeamOffsetsZero() const
True if all elements of the cube returned by getBeamOffsets are zero.
Vector< Double > frequency_p
virtual MSIter & operator++()
const MPosition & telescopePosition() const
Return the telescope position (if a known telescope) or the position of the first antenna (if unknown...
Vector< SquareMatrix< Complex, 2 > > CJonesFeed0_p
const MDirection & phaseCenter() const
Returns the phasecenter for the first time stamp of the iteration The time is important for field tab...
ScalarColumn< Int > colArray_p
columns
Double interval_p
time selection
virtual void origin()
Reset iterator to start of data.
const Vector< String > & antennaMounts() const
Return a string mount identifier for each antenna.
Main interface class to a read/write table.
MSIter()
Default constructor - useful only to assign another iterator later.
void getSpwInFreqRange(Block< Vector< Int > > &spw, Block< Vector< Int > > &start, Block< Vector< Int > > &nchan, Double freqStart, Double freqEnd, Double freqStep)
Get the spw, start and nchan for all the ms's is this msiter that match the frequecy "freqstart-freqS...
const String & keyChange() const
Report Name of slowest column that changes at end of current iteration.
Bool newArray() const
Return True if ArrayId has changed since last iteration.
Cube< RigidVector< Double, 2 > > beamOffsets_p
antenna (e.g.
virtual ~MSIter()
Destructor.
Bool newPolarizationId() const
Return True if polarization has changed since last iteration.
const MFrequency & restFrequency(Int line=0) const
Return the rest frequency of the specified line as a Measure.
Int arrayId() const
Return the current ArrayId.
void setInterval(Double interval)
@ Circular
Circular polarization.
Block< Bool > tabIterAtStart_p
Bool newField() const
Return True if FieldId/Source has changed since last iteration.
const MS & ms() const
Return reference to the current MS.
void setInterval(Double timeInterval)
Set or reset the time interval to use for iteration.
const Cube< Double > & receptorAngles() const
Return the receptor angles for all feeds and antennae First axis is a receptor number,...
MSIter & operator=(const MSIter &other)
Assigment.
const MSColumns & msColumns() const
Return reference to the current MSColumns.
ScalarColumn< Int > colDataDesc_p
Double getInterval() const
Int fieldId() const
Return the current FieldId.
Bool storeSorted_p
Globally control disk storage of SORTED_TABLE.
A Measure: astronomical direction.
Bool newMS() const
Return true if msId has changed since last iteration.
@ Linear
Linear polarization.
this file contains all the compiler specific defines
Bool allBeamOffsetsZero_p
each element of the cube in radians) in the antenna coordinate system.
Double prevFirstTimeStamp_p
virtual Bool more() const
Return False if there is no more data.
Int polarizationId() const
Return current PolarizationId.
ScalarColumn< Int > colField_p
void construct(const Block< Int > &sortColumns, Bool addDefaultSortColumns)
handle the construction details
Bool newDataDescriptionId() const
Return True if DataDescriptionId has changed since last iteration.
Cube< Double > receptorAngles_p
temporary retained for compatibility contain actually a reference to the first plane of receptorAngle...
const Vector< Double > & frequency() const
Return the frequencies corresponding to the DATA matrix.
Int numMS() const
Get the number of actual ms's associated wth this iterator.
Bool newSpectralWindow() const
Return True if SpectralWindow has changed since last iteration.
A Table intended to hold astronomical data (a set of Measurements).
An iterator class for MeasurementSets
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
const Matrix< Double > & receptorAngle() const
Return the receptor angle for feed 0 on each antenna.
Vector< String > antennaMounts_p
virtual void setOffset(Double offset)
abstract base class for comparing two objects
A class to provide easy access to MeasurementSet columns.
MSInterval(Double interval)
virtual void setState()
set the iteration state
CountedPtr< MSInterval > timeComp_p
const MFrequency & frequency0() const
Return frequency of first channel with reference frame as a Measure.
Matrix< SquareMatrix< Complex, 2 > > CJones_p
similar to receptorAngle_p
PtrBlock< TableIterator * > tabIter_p
CountedPtr< MSColumns > msc_p