File: spatialtimeloader.h

package info (click to toggle)
aoflagger 3.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,000 kB
  • sloc: cpp: 67,891; python: 497; sh: 242; makefile: 22
file content (36 lines) | stat: -rw-r--r-- 927 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef SPATIALTIMELOADER_H
#define SPATIALTIMELOADER_H

#include <cstring>

#include <casacore/tables/Tables/TableIter.h>

#include "../structures/timefrequencydata.h"
#include "../structures/msmetadata.h"

/**
 * Loader for time x baseline matrices. These are mainly used for SVD
 * experiments. This class is used in the SpatialTimeImageSet .
 */
class SpatialTimeLoader {
 public:
  explicit SpatialTimeLoader(MSMetaData& measurementSet);
  ~SpatialTimeLoader();

  TimeFrequencyData Load(unsigned channelIndex, bool fringeStop = true);

  unsigned ChannelCount() const { return _channelCount; }

  unsigned TimestepsCount() const { return _timestepsCount; }

 private:
  MSMetaData& _msMetaData;
  std::unique_ptr<casacore::Table> _sortedTable;
  std::unique_ptr<casacore::TableIterator> _tableIter;
  unsigned _channelCount;
  unsigned _timestepsCount;
  unsigned _antennaCount;
  unsigned _polarizationCount;
};

#endif