DP3
ReadSkyModel.h
Go to the documentation of this file.
1 // Copyright (C) 2021 ASTRON (Netherlands Institute for Radio Astronomy)
2 // SPDX-License-Identifier: GPL-3.0-or-later
3 
8 
9 #ifndef DP3_SKY_MODEL_READ_SKY_MODEL_H_
10 #define DP3_SKY_MODEL_READ_SKY_MODEL_H_
11 
12 #include "SkyModel.h"
13 
14 #include "common/StringTools.h"
15 #include "common/StreamUtil.h"
16 
17 #include <string>
18 #include <iostream>
19 #include <fstream>
20 #include <sstream>
21 
22 namespace dp3::sky_model {
23 
24 std::string ReadFormat(const std::string& file, const std::string& cat_file);
25 
26 SkyModel ReadSkyModel(const std::string& filename, const std::string& format);
27 
28 inline SkyModel ReadSkyModel(const std::string& filename) {
29  return ReadSkyModel(filename, sky_model::ReadFormat("", filename));
30 }
31 
32 } // namespace dp3::sky_model
33 
34 #endif
Definition: SkyModel.h:15
Definition: Patch.h:14
SkyModel ReadSkyModel(const std::string &filename, const std::string &format)
std::string ReadFormat(const std::string &file, const std::string &cat_file)