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
|