DP3
Classes | Namespaces | Functions
SourceDBUtil.h File Reference
#include <string>
#include <string_view>
#include <variant>
#include <vector>
#include "parmdb/SourceDB.h"
#include "parmdb/SourceDBSkymodel.h"
#include "Patch.h"

Go to the source code of this file.

Classes

class  dp3::model::SourceDBWrapper
 

Namespaces

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

Functions

bool dp3::model::CheckAnyOrientationIsAbsolute (const parmdb::SourceDBSkymodel &source_db, const std::vector< std::string > &patch_names)
 Check whether any source in a sourcedb has absolute orientation. More...
 
bool dp3::model::CheckPolarized (const parmdb::SourceDBSkymodel &source_db, const std::vector< std::string > &patch_names)
 
bool dp3::model::checkPolarized (parmdb::SourceDB &sourceDB, const std::vector< std::string > &patchNames, unsigned int nModel)
 
std::vector< std::shared_ptr< Patch > > dp3::model::clusterProximateSources (const std::vector< std::shared_ptr< Patch >> &patchList, double proximityLimit)
 
bool dp3::model::HasSkymodelExtension (const std::string &source_db_name)
 
std::vector< std::vector< std::string > > dp3::model::MakeDirectionList (const std::vector< std::string > &packed_directions, const std::string &source_db_filename)
 
std::vector< std::shared_ptr< Patch > > dp3::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::model::MakePatches (const parmdb::SourceDBSkymodel &source_db, const std::vector< std::string > &patch_names)
 
std::vector< std::shared_ptr< Patch > > dp3::model::makePatches (parmdb::SourceDB &sourceDB, const std::vector< std::string > &patchNames, unsigned int nModel)
 
std::vector< std::string > dp3::model::MakePatchList (const parmdb::SourceDBSkymodel &source_db, const std::vector< std::string > &patterns)
 
std::vector< std::string > dp3::model::makePatchList (parmdb::SourceDB &sourceDB, std::vector< std::string > patterns)
 
std::vector< std::pair< std::shared_ptr< base::ModelComponent >, std::shared_ptr< Patch > > > dp3::model::makeSourceList (std::vector< std::shared_ptr< Patch >> &patchList)
 
void dp3::model::SetPatchIndices (std::vector< std::shared_ptr< Patch >> &patch_list)
 

Detailed Description

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