File: facetreader.h

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 (30 lines) | stat: -rw-r--r-- 847 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
#ifndef FACET_READER_H
#define FACET_READER_H

#include <memory>
#include <string>
#include <vector>

#include <schaapcommon/facets/facet.h>

#include "../main/settings.h"
#include "../structures/observationinfo.h"

namespace wsclean {

class FacetReader {
 public:
  // Reading facets requires the scale and size so do it after those settings
  // are validated, and validate the facet settings here.
  static std::vector<std::shared_ptr<schaapcommon::facets::Facet>> ReadFacets(
      std::string filename, double width, double height, double pixelScaleX,
      double pixelScaleY, double phaseCentreRA, double phaseCentreDec,
      double l_shift, double m_shift, double imagePadding, bool make_square,
      size_t feather_size);

  static std::size_t CountFacets(const std::string& facet_region_filename);
};

}  // namespace wsclean

#endif