File: msiterator.cpp

package info (click to toggle)
aoflagger 3.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,960 kB
  • sloc: cpp: 83,076; python: 10,187; sh: 260; makefile: 178
file content (19 lines) | stat: -rw-r--r-- 679 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "msiterator.h"

MSIterator::MSIterator(const casacore::MeasurementSet& ms,
                       bool hasCorrectedData)
    : _row(0),
      _ms(ms),
      _antenna1Col(_ms, "ANTENNA1"),
      _antenna2Col(_ms, "ANTENNA2"),
      _dataCol(_ms, "DATA"),
      _flagCol(_ms, "FLAG"),
      _correctedDataCol(hasCorrectedData
                            ? new casacore::ArrayColumn<casacore::Complex>(
                                  _ms, "CORRECTED_DATA")
                            : nullptr),
      _timeCol(_ms, "TIME"),
      _fieldCol(_ms, "FIELD_ID"),
      _scanNumberCol(_ms, "SCAN_NUMBER"),
      _uvwCol(_ms, "UVW"),
      _windowCol(_ms, "DATA_DESC_ID") {}