File: directmsrowprovider.cpp

package info (click to toggle)
wsclean 3.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,296 kB
  • sloc: cpp: 129,246; python: 22,066; sh: 360; ansic: 230; makefile: 185
file content (32 lines) | stat: -rw-r--r-- 1,110 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
#include "directmsrowprovider.h"

#include "msprovider.h"

namespace wsclean {

void DirectMSRowProvider::ReadData(MSRowProvider::DataArray& data,
                                   MSRowProvider::FlagArray& flags,
                                   WeightArray& weights, double& u, double& v,
                                   double& w, uint32_t& dataDescId,
                                   uint32_t& antenna1, uint32_t& antenna2,
                                   uint32_t& fieldId, double& time) {
  u = _currentUVWArray(0);
  v = _currentUVWArray(1);
  w = _currentUVWArray(2);
  dataDescId = _currentDataDescId;
  MsColumns& columns = Columns();
  columns.data.get(_currentRow, data, true);
  columns.flag.get(_currentRow, flags, true);
  antenna1 = columns.antenna_1(_currentRow);
  antenna2 = columns.antenna_2(_currentRow);
  fieldId = columns.field_id(_currentRow);
  time = columns.time(_currentRow);

  getCurrentWeights(weights, data.shape());
}

void DirectMSRowProvider::ReadModel(MSRowProvider::DataArray& model) {
  _modelColumn->get(_currentRow, model, true);
}

}  // namespace wsclean