casacore
MSIter.h
Go to the documentation of this file.
1 //# MSIter.h: Step through the MeasurementEquation by table
2 //# Copyright (C) 1996,1999,2000,2001,2002
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id$
27 
28 #ifndef MS_MSITER_H
29 #define MS_MSITER_H
30 
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>
43 
44 namespace casacore { //# NAMESPACE CASACORE - BEGIN
45 
46 //# forward decl
47 class MSColumns;
48 class TableIterator;
49 
50 // <summary>
51 // Small helper class to specify an 'interval' comparison
52 // </summary>
53 // <synopsis>
54 // Small helper class to specify an 'interval' comparison for table iteration
55 // by time interval.
56 // </synopsis>
57 class MSInterval : public BaseCompare
58 {
59 public:
60  explicit MSInterval(Double interval) : interval_p(interval), offset_p(0) {}
61  virtual ~MSInterval() {}
62  virtual int comp(const void * obj1, const void * obj2) const;
63  Double getOffset() const {return offset_p;}
64  virtual void setOffset(Double offset) {offset_p=offset;}
65  Double getInterval() const {return interval_p;}
66  void setInterval(Double interval) {interval_p=interval;}
67 private:
69  mutable Double offset_p;
70 };
71 
72 // <summary>
73 // An iterator class for MeasurementSets
74 // </summary>
75 
76 // <use visibility=export>
77 
78 // <prerequisite>
79 // <li> <linkto class="MeasurementSet:description">MeasurementSet</linkto>
80 // </prerequisite>
81 //
82 // <etymology>
83 // MSIter stands for the MeasurementSet Iterator class.
84 // </etymology>
85 //
86 // <synopsis>
87 // An MSIter is a class to traverse a MeasurementSet in various orders. It
88 // automatically adds four predefined sort columns to your selection of sort
89 // columns (see constructor) so that it can keep track of changes in frequency
90 // or polarization setup, field position and sub-array. Note that this can
91 // cause iterations to occur in a different way from what you would expect, see
92 // examples below. MSIter implements iteration by time interval for the use of
93 // e.g., calibration tasks that want to calculate solutions over some interval
94 // of time. You can iterate over multiple MeasurementSets with this class.
95 // </synopsis>
96 //
97 // <example>
98 // <srcblock>
99 // // The following code iterates by by ARRAY_ID, FIELD_ID, DATA_DESC_ID and
100 // // TIME (all implicitly added columns) and then by baseline (antenna pair),
101 // // in 3000s intervals.
102 // MeasurementSet ms("3C273XC1.ms");
103 // Block<int> sort(2);
104 // sort[0] = MS::ANTENNA1;
105 // sort[1] = MS::ANTENNA2;
106 // Double timeInterval = 3000;
107 // MSIter msIter(ms,sort,timeInteval);
108 // for (msIter.origin(); msIter.more(); msIter++) {
109 // // print out some of the iteration state
110 // cout << msIter.fieldId() << endl;
111 // cout << msIter.fieldName() << endl;
112 // cout << msIter.dataDescriptionId() << endl;
113 // cout << msIter.frequency0() << endl;
114 // cout << msIter.table().nrow() << endl;
115 // process(msIter.table()); // process the data in the current iteration
116 // }
117 // // Output shows only 1 row at a time because the table is sorted on TIME
118 // // first and ANTENNA1, ANTENNA2 next and each baseline occurs only once per
119 // // TIME stamp. The interval has no effect in this case.
120 // </srcblock>
121 // </example>
122 
123 // <example>
124 // <srcblock>
125 // // The following code iterates by baseline (antenna pair), TIME, and,
126 // // implicitly, by ARRAY_ID, FIELD_ID and DATA_DESC_ID in 3000s
127 // // intervals.
128 // MeasurementSet ms("3C273XC1.ms");
129 // Block<int> sort(3);
130 // sort[0] = MS::ANTENNA1;
131 // sort[1] = MS::ANTENNA2;
132 // sort[2] = MS::TIME;
133 // Double timeInterval = 3000;
134 // MSIter msIter(ms,sort,timeInteval);
135 // for (msIter.origin(); msIter.more(); msIter++) {
136 // // print out some of the iteration state
137 // cout << msIter.fieldId() << endl;
138 // cout << msIter.fieldName() << endl;
139 // cout << msIter.dataDescriptionId() << endl;
140 // cout << msIter.frequency0() << endl;
141 // cout << msIter.table().nrow() << endl;
142 // process(msIter.table()); // process the data in the current iteration
143 // // Now the output shows 7 rows at a time, all with identical ANTENNA1
144 // // and ANTENNA2 values and TIME values within a 3000s interval.
145 // }
146 // </srcblock>
147 // </example>
148 //
149 // <motivation>
150 // This class was originally part of the VisibilityIterator class, but that
151 // class was getting too large and complicated. By splitting out the toplevel
152 // iteration into this class the code is much easier to understand. It is now
153 // also available through the ms tool.
154 // </motivation>
155 //
156 // <todo>
157 // <li> multiple observatories in a single MS are not handled correctly (need to
158 // sort on observation id and check observatory name to set position frame)
159 // </todo>
160 
161 class MSIter
162 {
163 public:
164  enum PolFrame {
165  // Circular polarization
167  // Linear polarization
169  };
170 
171  // Default constructor - useful only to assign another iterator later.
172  // Use of other member functions on this object is likely to dump core.
173  MSIter();
174 
175  // Construct from MS and a Block of MS column enums specifying the
176  // iteration order, if none are specified, ARRAY_ID, FIELD_ID, DATA_DESC_ID,
177  // and TIME iteration is implicit (unless addDefaultSortColumns=False)
178  // These columns will be added first if they are not specified.
179  // An optional timeInterval can be given to iterate through chunks of time.
180  // The default interval of 0 groups all times together.
181  // Every 'chunk' of data contains all data within a certain time interval
182  // and with identical values of the other iteration columns (e.g.
183  // DATA_DESCRIPTION_ID and FIELD_ID).
184  // See the examples above for the effect of different sort orders.
185  //
186  // The storeSorted parameter determines how the resulting SORT_TABLE is
187  // managed. If storeSorted is true then the table will be stored on disk;
188  // this potentially allows its reuse in the future but has also been shown
189  // to be a problem when the MS is being read in parallel. If storeSorted is
190  // false then the SORTED_TABLE is constructed and used in memory which keeps
191  // concurrent readers from interfering with each other.
192 
193  MSIter(const MeasurementSet& ms, const Block<Int>& sortColumns,
194  Double timeInterval=0, Bool addDefaultSortColumns=True,
195  Bool storeSorted=True);
196 
197  // Same as above with multiple MSs as input.
198  MSIter(const Block<MeasurementSet>& mss, const Block<Int>& sortColumns,
199  Double timeInterval=0, Bool addDefaultSortColumns=True,
200  Bool storeSorted=True);
201 
202  // Copy construct. This calls the assigment operator.
203  MSIter(const MSIter & other);
204 
205  MSIter *clone() const;
206 
207  // Destructor
208  virtual ~MSIter();
209 
210  // Assigment. This will reset the iterator to the origin.
211  MSIter & operator=(const MSIter &other);
212 
213  //# Members
214 
215  // Set or reset the time interval to use for iteration.
216  // You should call origin() to reset the iteration after
217  // calling this.
218  void setInterval(Double timeInterval);
219 
220  // Reset iterator to start of data
221  virtual void origin();
222 
223  // Return False if there is no more data
224  virtual Bool more() const;
225 
226  // Advance iterator through data
227  virtual MSIter & operator++(int);
228  virtual MSIter & operator++();
229 
230  // Report Name of slowest column that changes at end of current iteration
231  const String& keyChange() const;
232 
233  // Return the current Table iteration
234  Table table() const;
235 
236  // Return reference to the current MS
237  const MS& ms() const;
238 
239  // Return reference to the current MSColumns
240  const MSColumns& msColumns() const;
241 
242  // Return the current MS Id (according to the order in which
243  // they appeared in the constructor)
244  Int msId() const;
245 
246  // Return true if msId has changed since last iteration
247  Bool newMS() const;
248 
249  // Return the current ArrayId
250  Int arrayId() const;
251 
252  // Return True if ArrayId has changed since last iteration
253  Bool newArray() const;
254 
255  // Return the current FieldId
256  Int fieldId() const;
257 
258  // Return True if FieldId/Source has changed since last iteration
259  Bool newField() const;
260 
261  // Return current SpectralWindow
262  Int spectralWindowId() const;
263 
264  // Return True if SpectralWindow has changed since last iteration
265  Bool newSpectralWindow() const;
266 
267  // Return current DataDescriptionId
268  Int dataDescriptionId() const;
269 
270  // Return True if DataDescriptionId has changed since last iteration
271  Bool newDataDescriptionId() const;
272 
273  // Return current PolarizationId
274  Int polarizationId() const;
275 
276  // Return True if polarization has changed since last iteration
277  Bool newPolarizationId() const;
278 
279 
280  // Return frame for polarization (returns PolFrame enum)
281  Int polFrame() const;
282 
283  // Return the frequencies corresponding to the DATA matrix.
284  const Vector<Double>& frequency() const;
285 
286  // Return frequency of first channel with reference frame as a Measure.
287  // The reference frame Epoch is that of the first row, reset it as needed
288  // for each row.
289  // The reference frame Position is the average of the antenna positions.
290  const MFrequency& frequency0() const;
291 
292  // Return the rest frequency of the specified line as a Measure
293  const MFrequency& restFrequency(Int line=0) const;
294 
295  // Return the telescope position (if a known telescope) or the
296  // position of the first antenna (if unknown)
297  const MPosition& telescopePosition() const;
298 
299  // Return the feed configuration/leakage matrix for feed 0 on each antenna
300  // TODO: CJonesAll can be used instead of this method in all instances
301  const Vector<SquareMatrix<Complex,2> >& CJones() const;
302 
303  // Return the feed configuration/leakage matrix for all feeds and antennae
304  // First axis is antennaId, 2nd axis is feedId. Result of CJones() is
305  // a reference to the first column of the matrix returned by this method
306  const Matrix<SquareMatrix<Complex,2> >& CJonesAll() const;
307 
308  // Return the receptor angle for feed 0 on each antenna.
309  // First axis is receptor number, 2nd axis is antennaId.
310  // TODO: receptorAngles() can be used instead of this method
311  const Matrix<Double>& receptorAngle() const;
312 
313  // Return the receptor angles for all feeds and antennae
314  // First axis is a receptor number, 2nd axis is antennaId,
315  // 3rd axis is feedId. Result of receptorAngle() is just a reference
316  // to the first plane of the cube returned by this method
317  const Cube<Double>& receptorAngles() const;
318 
319  // Return a string mount identifier for each antenna
320  const Vector<String>& antennaMounts() const;
321 
322  // Return a cube containing pairs of coordinate offset for each receptor
323  // of each feed (values are in radians, coordinate system is fixed with
324  // antenna and is the same as used to define the BEAM_OFFSET parameter
325  // in the feed table). The cube axes are receptor, antenna, feed.
327 
328  // True if all elements of the cube returned by getBeamOffsets are zero
329  Bool allBeamOffsetsZero() const;
330 
331  // Get the spw, start and nchan for all the ms's is this msiter that
332  // match the frequecy "freqstart-freqStep" and "freqEnd+freqStep" range
333 
334  void getSpwInFreqRange(Block<Vector<Int> >& spw,
335  Block<Vector<Int> >& start,
336  Block<Vector<Int> >& nchan,
337  Double freqStart, Double freqEnd,
338  Double freqStep);
339 
340  //Get the number of actual ms's associated wth this iterator
341  Int numMS() const;
342 
343  //Get a reference to the nth ms in the list of ms associated with this
344  // iterator. If larger than the list of ms's current ms is returned
345  // So better check wth numMS() before making the call
346  const MS& ms(const uInt n) const;
347 
348  //Returns the phasecenter for the first time stamp of the iteration
349  //The time is important for field tables that have polynomial or ephemerides
350  //phasecenters, i.e time varying for a given field_id..
351  //If the iterator is set so as one iteration has more that 1 time stamp
352  //then this version is correct only for fixed phasecenters
353  const MDirection& phaseCenter() const ;
354 
355  //If the iterator is set so as one iteration has more that 1 value of time stamp
356  // or fieldid
357  //then the caller should use the phasecenter with field id and time explicitly
358  const MDirection phaseCenter(const Int fldID, const Double timeStamp) const ;
359 
360  //return FIELD table associated current fieldname and sourcename respectively
361  const String& fieldName() const;
362  const String& sourceName() const;
363 
364 protected:
365  // handle the construction details
366  void construct(const Block<Int>& sortColumns, Bool addDefaultSortColumns);
367  // advance the iteration
368  void advance();
369  // set the iteration state
370  virtual void setState();
371  void setMSInfo();
372  void setArrayInfo();
373  void setFeedInfo();
374  void setDataDescInfo();
375  void setFieldInfo();
376 
377 // Determine if the numbers in r1 are a sorted subset of those in r2
378  Bool isSubSet(const Vector<uInt>& r1, const Vector<uInt>& r2);
379 
384 
396 
397  // Globally control disk storage of SORTED_TABLE
399 
400  // time selection
402 
403  // columns
405 
408  //cache for access functions
409  Matrix<Double> receptorAnglesFeed0_p; // former receptorAngle_p,
410  // temporary retained for compatibility
411  // contain actually a reference to the
412  // first plane of receptorAngles_p
414  Vector<SquareMatrix<Complex,2> > CJonesFeed0_p; // a temporary reference
415  // similar to receptorAngle_p
417  Vector<String> antennaMounts_p; // a string mount identifier for each
418  // antenna (e.g. EQUATORIAL, ALT-AZ,...)
419  Cube<RigidVector<Double, 2> > beamOffsets_p;// angular offsets (two values for
420  // each element of the cube in radians)
421  // in the antenna coordinate system.
422  // Cube axes are: receptor, antenna, feed.
423  Bool allBeamOffsetsZero_p; // True if all elements of beamOffsets_p
424  // are zero (to speed things up in a
425  // single beam case)
432 
433  CountedPtr<MSInterval> timeComp_p; // Points to the time comparator.
434  // 0 if not using a time interval.
435 };
436 
437 inline Bool MSIter::more() const { return more_p;}
438 inline Table MSIter::table() const {return curTable_p;}
439 inline const MS& MSIter::ms() const {return bms_p[curMS_p];}
440 inline const MSColumns& MSIter::msColumns() const { return *msc_p;}
441 inline Bool MSIter::newMS() const { return newMS_p;}
442 inline Bool MSIter::newArray() const {return newArray_p;}
443 inline Bool MSIter::newField() const { return newField_p;}
445 { return newSpectralWindow_p;}
446 inline Int MSIter::msId() const { return curMS_p;}
447 inline Int MSIter::numMS() const { return nMS_p;}
448 inline Int MSIter::arrayId() const {return curArray_p;}
449 inline Int MSIter::fieldId() const { return curField_p;}
451 { return curSpectralWindow_p;}
456 inline Int MSIter::polFrame() const { return polFrame_p;}
458 { return telescopePosition_p;}
460 { return CJonesFeed0_p;}
462 { return CJones_p;}
463 inline const Matrix<Double>& MSIter::receptorAngle() const
464 {return receptorAnglesFeed0_p;}
466 {return receptorAngles_p;}
468 {return antennaMounts_p;}
470 {return beamOffsets_p;}
472 
473 } //# NAMESPACE CASACORE - END
474 
475 #endif
casacore::MSIter::CJones
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...
Definition: MSIter.h:459
casacore::MSIter::lastDataDescId_p
Int lastDataDescId_p
Definition: MSIter.h:392
casacore::MSIter::polFrame
Int polFrame() const
Return frame for polarization (returns PolFrame enum)
Definition: MSIter.h:456
casacore::MSIter::lastField_p
Int lastField_p
Definition: MSIter.h:390
casacore::MFrequency
A Measure: wave characteristics.
Definition: MFrequency.h:161
casacore::MSIter::getBeamOffsets
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...
Definition: MSIter.h:469
casacore::Matrix
A 2-D Specialization of the Array class.
Definition: Array.h:50
casacore::MSIter::restFrequency_p
MFrequency restFrequency_p
Definition: MSIter.h:430
casacore::MSIter::isSubSet
Bool isSubSet(const Vector< uInt > &r1, const Vector< uInt > &r2)
Determine if the numbers in r1 are a sorted subset of those in r2.
casacore::MSIter::CJonesAll
const Matrix< SquareMatrix< Complex, 2 > > & CJonesAll() const
Return the feed configuration/leakage matrix for all feeds and antennae First axis is antennaId,...
Definition: MSIter.h:461
casacore::MSIter::curTable_p
Table curTable_p
Definition: MSIter.h:387
casacore::MSInterval::comp
virtual int comp(const void *obj1, const void *obj2) const
Compare two objects, and return.
casacore::MPosition
A Measure: position on Earth.
Definition: MPosition.h:79
casacore::MSIter::curFieldName_p
String curFieldName_p
Definition: MSIter.h:389
casacore::MSIter::bms_p
Block< MeasurementSet > bms_p
Definition: MSIter.h:381
casacore::PtrBlock
A drop-in replacement for Block<T*>.
Definition: Block.h:814
casacore::MSIter::setMSInfo
void setMSInfo()
casacore::MSInterval::getOffset
Double getOffset() const
Definition: MSIter.h:63
casacore::MSIter::polFrame_p
PolFrame polFrame_p
are zero (to speed things up in a single beam case)
Definition: MSIter.h:426
casacore::MSIter::frequency0_p
MFrequency frequency0_p
Definition: MSIter.h:429
casacore::MSIter::msId
Int msId() const
Return the current MS Id (according to the order in which they appeared in the constructor)
Definition: MSIter.h:446
casacore::MSIter::lastSpectralWindow_p
Int lastSpectralWindow_p
Definition: MSIter.h:390
casacore::MSIter::advance
void advance()
advance the iteration
casacore::MSIter::fieldName
const String & fieldName() const
return FIELD table associated current fieldname and sourcename respectively
casacore::MSIter::phaseCenter_p
MDirection phaseCenter_p
Definition: MSIter.h:406
casacore::CountedPtr
Referenced counted pointer for constant data.
Definition: CountedPtr.h:80
casacore::MSInterval
Small helper class to specify an 'interval' comparison.
Definition: MSIter.h:57
casacore::MSIter::sourceName
const String & sourceName() const
casacore::MSIter::telescopePosition_p
MPosition telescopePosition_p
Definition: MSIter.h:431
casacore::MSIter::table
Table table() const
Return the current Table iteration.
Definition: MSIter.h:438
casacore::MSIter::newField_p
Bool newField_p
Definition: MSIter.h:393
casacore::ScalarColumn< Int >
casacore::MSIter::receptorAnglesFeed0_p
Matrix< Double > receptorAnglesFeed0_p
cache for access functions
Definition: MSIter.h:409
casacore::MSIter::spectralWindowId
Int spectralWindowId() const
Return current SpectralWindow.
Definition: MSIter.h:450
casacore::MSIter::curDataDescId_p
Int curDataDescId_p
Definition: MSIter.h:392
casacore::MSIter::dataDescriptionId
Int dataDescriptionId() const
Return current DataDescriptionId.
Definition: MSIter.h:453
casacore::MSIter::lastArray_p
Int lastArray_p
Definition: MSIter.h:388
casacore::MSIter::allBeamOffsetsZero
Bool allBeamOffsetsZero() const
True if all elements of the cube returned by getBeamOffsets are zero.
Definition: MSIter.h:471
casacore::MSIter::curSource_p
Int curSource_p
Definition: MSIter.h:388
casacore::MSIter::frequency_p
Vector< Double > frequency_p
Definition: MSIter.h:428
casacore::MSIter::operator++
virtual MSIter & operator++()
casacore::MSIter::freqCacheOK_p
Bool freqCacheOK_p
Definition: MSIter.h:427
casacore::MSIter::setFieldInfo
void setFieldInfo()
casacore::MSIter::curField_p
Int curField_p
Definition: MSIter.h:390
casacore::MSIter::telescopePosition
const MPosition & telescopePosition() const
Return the telescope position (if a known telescope) or the position of the first antenna (if unknown...
Definition: MSIter.h:457
casacore::MSIter::CJonesFeed0_p
Vector< SquareMatrix< Complex, 2 > > CJonesFeed0_p
Definition: MSIter.h:414
casacore::MSIter::phaseCenter
const MDirection & phaseCenter() const
Returns the phasecenter for the first time stamp of the iteration The time is important for field tab...
casacore::MSIter::curSourceName_p
String curSourceName_p
Definition: MSIter.h:389
casacore::Cube< Double >
casacore::MSIter::colArray_p
ScalarColumn< Int > colArray_p
columns
Definition: MSIter.h:404
casacore::MSIter::interval_p
Double interval_p
time selection
Definition: MSIter.h:401
casacore::MSIter::origin
virtual void origin()
Reset iterator to start of data.
casacore::MSIter::antennaMounts
const Vector< String > & antennaMounts() const
Return a string mount identifier for each antenna.
Definition: MSIter.h:467
casacore::MSIter::newPolarizationId_p
Bool newPolarizationId_p
Definition: MSIter.h:393
casacore::MSIter::nMS_p
Int nMS_p
Definition: MSIter.h:385
casacore::Table
Main interface class to a read/write table.
Definition: Table.h:153
casacore::MSIter::MSIter
MSIter()
Default constructor - useful only to assign another iterator later.
casacore::MSIter::getSpwInFreqRange
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...
casacore::MSIter::keyChange
const String & keyChange() const
Report Name of slowest column that changes at end of current iteration.
casacore::MSIter::newArray
Bool newArray() const
Return True if ArrayId has changed since last iteration.
Definition: MSIter.h:442
casacore::MSIter::beamOffsets_p
Cube< RigidVector< Double, 2 > > beamOffsets_p
antenna (e.g.
Definition: MSIter.h:419
casacore::MSIter::~MSIter
virtual ~MSIter()
Destructor.
casacore::Double
double Double
Definition: aipstype.h:55
casacore::MSIter::newPolarizationId
Bool newPolarizationId() const
Return True if polarization has changed since last iteration.
Definition: MSIter.h:454
casacore::MSInterval::interval_p
Double interval_p
Definition: MSIter.h:68
casacore::MSIter::restFrequency
const MFrequency & restFrequency(Int line=0) const
Return the rest frequency of the specified line as a Measure.
casacore::MSIter::arrayId
Int arrayId() const
Return the current ArrayId.
Definition: MSIter.h:448
casacore::MSInterval::setInterval
void setInterval(Double interval)
Definition: MSIter.h:66
casacore::MSIter::Circular
Circular polarization.
Definition: MSIter.h:166
casacore::MSIter::tabIterAtStart_p
Block< Bool > tabIterAtStart_p
Definition: MSIter.h:383
casacore::MSIter::newField
Bool newField() const
Return True if FieldId/Source has changed since last iteration.
Definition: MSIter.h:443
casacore::MSIter::ms
const MS & ms() const
Return reference to the current MS.
Definition: MSIter.h:439
casacore::uInt
unsigned int uInt
Definition: aipstype.h:51
casacore::MSIter::timeDepFeed_p
Bool timeDepFeed_p
Definition: MSIter.h:393
casacore::MSIter::setInterval
void setInterval(Double timeInterval)
Set or reset the time interval to use for iteration.
casacore::MSIter::receptorAngles
const Cube< Double > & receptorAngles() const
Return the receptor angles for all feeds and antennae First axis is a receptor number,...
Definition: MSIter.h:465
casacore::MSIter::operator=
MSIter & operator=(const MSIter &other)
Assigment.
casacore::MSIter::newMS_p
Bool newMS_p
Definition: MSIter.h:393
casacore::MSIter::msColumns
const MSColumns & msColumns() const
Return reference to the current MSColumns.
Definition: MSIter.h:440
casacore::MSIter::colDataDesc_p
ScalarColumn< Int > colDataDesc_p
Definition: MSIter.h:404
casacore::MSInterval::getInterval
Double getInterval() const
Definition: MSIter.h:65
casacore::MSIter::curArray_p
Int curArray_p
Definition: MSIter.h:388
casacore::MSIter::spwDepFeed_p
Bool spwDepFeed_p
Definition: MSIter.h:393
casacore::MSIter::clone
MSIter * clone() const
casacore::MSIter::lastMS_p
Int lastMS_p
Definition: MSIter.h:388
casacore::MSIter::fieldId
Int fieldId() const
Return the current FieldId.
Definition: MSIter.h:449
casacore::MSIter::storeSorted_p
Bool storeSorted_p
Globally control disk storage of SORTED_TABLE.
Definition: MSIter.h:398
casacore::MDirection
A Measure: astronomical direction.
Definition: MDirection.h:174
casacore::MSIter::newMS
Bool newMS() const
Return true if msId has changed since last iteration.
Definition: MSIter.h:441
casacore::MSIter::setArrayInfo
void setArrayInfo()
casacore::MSIter::Linear
Linear polarization.
Definition: MSIter.h:168
casacore::Int
int Int
Definition: aipstype.h:50
casacore
this file contains all the compiler specific defines
Definition: mainpage.dox:28
casacore::MSIter::allBeamOffsetsZero_p
Bool allBeamOffsetsZero_p
each element of the cube in radians) in the antenna coordinate system.
Definition: MSIter.h:423
casacore::MSIter::newArray_p
Bool newArray_p
Definition: MSIter.h:393
casacore::MSIter::prevFirstTimeStamp_p
Double prevFirstTimeStamp_p
Definition: MSIter.h:407
casacore::MSInterval::~MSInterval
virtual ~MSInterval()
Definition: MSIter.h:61
casacore::MSIter::curMS_p
Int curMS_p
Definition: MSIter.h:388
casacore::MSIter::more
virtual Bool more() const
Return False if there is no more data.
Definition: MSIter.h:437
casacore::True
const Bool True
Definition: aipstype.h:43
casacore::MSIter::curSpectralWindow_p
Int curSpectralWindow_p
Definition: MSIter.h:390
casacore::MSIter::polarizationId
Int polarizationId() const
Return current PolarizationId.
Definition: MSIter.h:452
casacore::MSIter::colField_p
ScalarColumn< Int > colField_p
Definition: MSIter.h:404
casacore::MSIter::newDataDescId_p
Bool newDataDescId_p
Definition: MSIter.h:393
casacore::MSIter::construct
void construct(const Block< Int > &sortColumns, Bool addDefaultSortColumns)
handle the construction details
casacore::MSIter::newDataDescriptionId
Bool newDataDescriptionId() const
Return True if DataDescriptionId has changed since last iteration.
Definition: MSIter.h:455
casacore::MSIter::receptorAngles_p
Cube< Double > receptorAngles_p
temporary retained for compatibility contain actually a reference to the first plane of receptorAngle...
Definition: MSIter.h:413
casacore::MSIter::frequency
const Vector< Double > & frequency() const
Return the frequencies corresponding to the DATA matrix.
casacore::MSIter::numMS
Int numMS() const
Get the number of actual ms's associated wth this iterator.
Definition: MSIter.h:447
casacore::MSIter::newSpectralWindow
Bool newSpectralWindow() const
Return True if SpectralWindow has changed since last iteration.
Definition: MSIter.h:444
casacore::MSIter::checkFeed_p
Bool checkFeed_p
Definition: MSIter.h:393
casacore::MeasurementSet
A Table intended to hold astronomical data (a set of Measurements).
Definition: MeasurementSet.h:241
casacore::MSIter
An iterator class for MeasurementSets
Definition: MSIter.h:161
casacore::MSIter::curPolarizationId_p
Int curPolarizationId_p
Definition: MSIter.h:391
casacore::MSIter::setDataDescInfo
void setDataDescInfo()
casacore::MSIter::This
MSIter * This
Definition: MSIter.h:380
casacore::String
String: the storage and methods of handling collections of characters.
Definition: String.h:223
casacore::Bool
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::Block< Int >
casacore::MSIter::receptorAngle
const Matrix< Double > & receptorAngle() const
Return the receptor angle for feed 0 on each antenna.
Definition: MSIter.h:463
casacore::MSIter::antennaMounts_p
Vector< String > antennaMounts_p
Definition: MSIter.h:417
casacore::MSInterval::setOffset
virtual void setOffset(Double offset)
Definition: MSIter.h:64
casacore::BaseCompare
abstract base class for comparing two objects
Definition: Compare.h:64
casacore::MSColumns
A class to provide easy access to MeasurementSet columns.
Definition: MSColumns.h:116
casacore::MSInterval::MSInterval
MSInterval(Double interval)
Definition: MSIter.h:60
casacore::Vector< Double >
casacore::MSIter::setState
virtual void setState()
set the iteration state
casacore::MSIter::more_p
Bool more_p
Definition: MSIter.h:393
casacore::MSIter::setFeedInfo
void setFeedInfo()
casacore::MSIter::timeComp_p
CountedPtr< MSInterval > timeComp_p
Definition: MSIter.h:433
casacore::MSInterval::offset_p
Double offset_p
Definition: MSIter.h:69
casacore::MSIter::frequency0
const MFrequency & frequency0() const
Return frequency of first channel with reference frame as a Measure.
casacore::MSIter::PolFrame
PolFrame
Definition: MSIter.h:164
casacore::MSIter::CJones_p
Matrix< SquareMatrix< Complex, 2 > > CJones_p
similar to receptorAngle_p
Definition: MSIter.h:416
casacore::MSIter::tabIter_p
PtrBlock< TableIterator * > tabIter_p
Definition: MSIter.h:382
casacore::MSIter::newSpectralWindow_p
Bool newSpectralWindow_p
Definition: MSIter.h:393
casacore::MSIter::msc_p
CountedPtr< MSColumns > msc_p
Definition: MSIter.h:386
casacore::MSIter::lastPolarizationId_p
Int lastPolarizationId_p
Definition: MSIter.h:391