DP3
Public Member Functions | List of all members
dp3::parmdb::SourceDBSkymodel Class Referencefinal

#include <SourceDBSkymodel.h>

Inheritance diagram for dp3::parmdb::SourceDBSkymodel:
dp3::parmdb::SourceDBBase

Public Member Functions

unsigned addPatch (const std::string &patch_name, int cat_type, double apparent_brightness, double ra, double dec, bool check) override
 
void addSource (const SourceInfo &source_info, const std::string &patch_name, const ParmMap &default_parameters, double ra, double dec, bool check) override
 
void addSource (const SourceInfo &source_info, const std::string &patch_name, int cat_type, double apparent_brightness, const ParmMap &default_parameters, double ra, double dec, bool check) override
 
std::vector< std::string > FindPatches (const std::string &pattern) const
 
const PatchInfoGetPatch (const std::string &patch_name) const
 
const std::vector< PatchInfo > & GetPatches () const
 
const std::vector< SourceData > & GetSources () const
 
void updatePatch (unsigned patch_id, double apparent_brightness, double ra, double dec) override
 
- Public Member Functions inherited from dp3::parmdb::SourceDBBase
virtual ~SourceDBBase ()=default
 

Member Function Documentation

◆ addPatch()

unsigned dp3::parmdb::SourceDBSkymodel::addPatch ( const std::string &  patch_name,
int  cat_type,
double  apparent_brightness,
double  ra,
double  dec,
bool  check 
)
overridevirtual

Add a patch and return its patch_id.

Optionally it is checked if the patch already exists.

Implements dp3::parmdb::SourceDBBase.

◆ addSource() [1/2]

void dp3::parmdb::SourceDBSkymodel::addSource ( const SourceInfo source_info,
const std::string &  patch_name,
const ParmMap default_parameters,
double  ra,
double  dec,
bool  check 
)
overridevirtual

◆ addSource() [2/2]

void dp3::parmdb::SourceDBSkymodel::addSource ( const SourceInfo source_info,
const std::string &  patch_name,
int  cat_type,
double  apparent_brightness,
const ParmMap default_parameters,
double  ra,
double  dec,
bool  check 
)
overridevirtual

Add a source to a patch. Its ra and dec and default parameters will be stored as default values in the associated ParmDB tables. The names of the parameters will be succeeded by a colon and the source name. The map should contain the parameters belonging to the source type. Not all parameters need to be present. The ParmDB classes will use a default of 0 for missing ones.

Implements dp3::parmdb::SourceDBBase.

◆ FindPatches()

std::vector<std::string> dp3::parmdb::SourceDBSkymodel::FindPatches ( const std::string &  pattern) const

◆ GetPatch()

const PatchInfo& dp3::parmdb::SourceDBSkymodel::GetPatch ( const std::string &  patch_name) const

◆ GetPatches()

const std::vector<PatchInfo>& dp3::parmdb::SourceDBSkymodel::GetPatches ( ) const
inline

◆ GetSources()

const std::vector<SourceData>& dp3::parmdb::SourceDBSkymodel::GetSources ( ) const
inline

◆ updatePatch()

void dp3::parmdb::SourceDBSkymodel::updatePatch ( unsigned  patch_id,
double  apparent_brightness,
double  ra,
double  dec 
)
overridevirtual

The documentation for this class was generated from the following file: