7 #ifndef DP3_SKY_MODEL_SKY_MODEL_FUNCTIONS_H_
8 #define DP3_SKY_MODEL_SKY_MODEL_FUNCTIONS_H_
12 #include <string_view>
23 const std::vector<std::string> &patch_names);
28 std::pair<std::shared_ptr<base::ModelComponent>, std::shared_ptr<Patch>>>
39 const std::vector<std::shared_ptr<Patch>> &);
42 const std::vector<std::shared_ptr<Patch>> &patchList,
43 double proximityLimit);
47 const std::vector<std::string> &patterns);
58 const std::vector<std::string> &packed_directions,
59 const std::string &sky_model_filename);
62 const std::vector<std::string> &patch_names);
66 const std::vector<std::string> &patch_names);
Definition: SkyModel.h:15
std::vector< std::shared_ptr< Patch > > MakePatches(const sky_model::SkyModel &source_db, const std::vector< std::string > &patch_names)
bool CheckAnyOrientationIsAbsolute(const sky_model::SkyModel &sky_model, const std::vector< std::string > &patch_names)
Check whether any source in a skymodel-sourcedb has absolute orientation.
std::vector< std::shared_ptr< Patch > > makeOnePatchPerComponent(const std::vector< std::shared_ptr< Patch >> &)
From a given patch list, create a new one with one patch per component.
std::vector< std::pair< std::shared_ptr< base::ModelComponent >, std::shared_ptr< Patch > > > makeSourceList(std::vector< std::shared_ptr< Patch >> &patchList)
std::vector< std::string > MakePatchList(const sky_model::SkyModel &source_db, const std::vector< std::string > &patterns)
std::vector< std::shared_ptr< Patch > > clusterProximateSources(const std::vector< std::shared_ptr< Patch >> &patchList, double proximityLimit)
bool CheckPolarized(const sky_model::SkyModel &source_db, const std::vector< std::string > &patch_names)
void SetPatchIndices(std::vector< std::shared_ptr< Patch >> &patch_list)
std::vector< std::vector< std::string > > MakeDirectionList(const std::vector< std::string > &packed_directions, const std::string &sky_model_filename)