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> 57 class MSInterval :
public BaseCompare
62 virtual int comp(
const void * obj1,
const void * obj2)
const;
232 const MS& ms()
const;
248 Bool newArray()
const;
254 const String& fieldName()
const;
257 const String& sourceName()
const;
260 Bool newField()
const;
263 Int spectralWindowId()
const;
266 Bool newSpectralWindow()
const;
269 Int dataDescriptionId()
const;
272 Bool newDataDescriptionId()
const;
275 Int polarizationId()
const;
278 Bool newPolarizationId()
const;
284 Int polFrame()
const;
300 const MPosition& telescopePosition()
const;
324 Int startChan()
const;
336 Bool allBeamOffsetsZero()
const;
353 const MS& ms(
const uInt n)
const;
357 void construct(
const Block<Int>& sortColumns,
Bool addDefaultSortColumns);
365 void setDataDescInfo();
379 Int curMS_p, lastMS_p, curArray_p, lastArray_p, curSource_p;
380 String curFieldName_p, curSourceName_p;
381 Int curField_p, lastField_p, curSpectralWindow_p, lastSpectralWindow_p;
382 Int curPolarizationId_p, lastPolarizationId_p;
383 Int curDataDescId_p, lastDataDescId_p;
384 Bool more_p, newMS_p, newArray_p, newField_p, newSpectralWindow_p,
385 newPolarizationId_p, newDataDescId_p, preselected_p,
386 timeDepFeed_p, spwDepFeed_p, checkFeed_p;
395 Block<Int> preselectedChanStart_p,preselectednChan_p;
416 Bool allBeamOffsetsZero_p;
438 {
return newSpectralWindow_p;}
446 {
return curSpectralWindow_p;}
453 {
return phaseCenter_p; }
455 {
return telescopePosition_p;}
457 {
return CJonesFeed0_p;}
461 {
return receptorAnglesFeed0_p;}
463 {
return receptorAngles_p;}
465 {
return antennaMounts_p;}
467 {
return beamOffsets_p;}
Int msId() const
Return the current MS Id (according to the order in which they appeared in the constructor) ...
A Measure: astronomical direction.
const MPosition & telescopePosition() const
Return the telescope position (if a known telescope) or the position of the first antenna (if unknown...
A Measure: position on Earth.
Int arrayId() const
Return the current ArrayId.
const Matrix< SquareMatrix< Complex, 2 > > & CJonesAll() const
Return the feed configuration/leakage matrix for all feeds and antennae First axis is antennaId...
Int fieldId() const
Return the current FieldId.
const MDirection & phaseCenter() const
Return the current phase center as MDirection.
Main interface class to a read/write table.
Bool newField() const
Return True if FieldId/Source has changed since last iteration.
void setInterval(Double interval)
MSInterval(Double interval)
const Matrix< Double > & receptorAngle() const
Return the receptor angle for feed 0 on each antenna.
Int polFrame() const
Return frame for polarization (returns PolFrame enum)
PtrHolder< T > & operator=(const PtrHolder< T > &other)
void setOffset(Double offset)
Int dataDescriptionId() const
Return current DataDescriptionId.
A 2-D Specialization of the Array class.
Int polarizationId() const
Return current PolarizationId.
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...
A Measure: wave characteristics.
Bool newDataDescriptionId() const
Return True if DataDescriptionId has changed since last iteration.
Bool newMS() const
Return true if msId has changed since last iteration.
Int spectralWindowId() const
Return current SpectralWindow.
Bool newArray() const
Return True if ArrayId has changed since last iteration.
Bool newPolarizationId() const
Return True if polarization has changed since last iteration.
A class to provide easy read-only access to MeasurementSet columns.
Int numMS() const
Get the number of actual ms's associated wth this iterator.
const MS & ms() const
Return reference to the current MS.
Table table() const
Return the current Table iteration.
Bool allBeamOffsetsZero() const
True if all elements of the cube returned by getBeamOffsets are zero.
bool Bool
Define the standard types used by Casacore.
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 drop-in replacement for Block<T*>.
A Table intended to hold astronomical data (a set of Measurements).
virtual int comp(const void *obj1, const void *obj2) const
Compare two objects, and return.
Small helper class to specify an 'interval' comparison.
Bool more() const
Return False if there is no more data.
const String & fieldName() const
Return the current Field Name.
Bool newSpectralWindow() const
Return True if SpectralWindow has changed since last iteration.
Int startChan() const
Return the channel number of the first channel in the DATA.
const Vector< String > & antennaMounts() const
Return a string mount identifier for each antenna.
const String & sourceName() const
Return the current Source Name.
An iterator class for MeasurementSets.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
const ROMSColumns & msColumns() const
Return reference to the current ROMSColumns.
const Cube< Double > & receptorAngles() const
Return the receptor angles for all feeds and antennae First axis is a receptor number, 2nd axis is antennaId, 3rd axis is feedId.