DP3
Namespaces | Functions
SkyModelFunctions.h File Reference
#include <optional>
#include <string>
#include <string_view>
#include <vector>
#include "sky_model/SkyModel.h"
#include "Patch.h"

Go to the source code of this file.

Namespaces

 dp3
 This file has generic helper routines for testing steps.
 
 dp3::sky_model
 

Functions

bool dp3::sky_model::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. More...
 
bool dp3::sky_model::CheckPolarized (const sky_model::SkyModel &source_db, const std::vector< std::string > &patch_names)
 
std::vector< std::shared_ptr< Patch > > dp3::sky_model::clusterProximateSources (const std::vector< std::shared_ptr< Patch >> &patchList, double proximityLimit)
 
std::vector< std::vector< std::string > > dp3::sky_model::MakeDirectionList (const std::vector< std::string > &packed_directions, const std::string &sky_model_filename)
 
std::vector< std::shared_ptr< Patch > > dp3::sky_model::makeOnePatchPerComponent (const std::vector< std::shared_ptr< Patch >> &)
 From a given patch list, create a new one with one patch per component. More...
 
std::vector< std::shared_ptr< Patch > > dp3::sky_model::MakePatches (const sky_model::SkyModel &source_db, const std::vector< std::string > &patch_names)
 
std::vector< std::string > dp3::sky_model::MakePatchList (const sky_model::SkyModel &source_db, const std::vector< std::string > &patterns)
 
std::vector< std::pair< std::shared_ptr< base::ModelComponent >, std::shared_ptr< Patch > > > dp3::sky_model::makeSourceList (std::vector< std::shared_ptr< Patch >> &patchList)
 
void dp3::sky_model::SetPatchIndices (std::vector< std::shared_ptr< Patch >> &patch_list)
 

Detailed Description

Helper functions to extract patch and source information from a SourceDB.