32 namespace po = boost::program_options;
33 namespace fs = boost::filesystem;
36 namespace Configuration {
45 declareDependency<CatalogConfig>();
46 declareDependency<PhotometricBandMappingConfig>();
50 return {{
"Input catalog options", {
52 "The value passed in the flux indicating that the photometry is missing, if the flag is not provided the functionality is disabled"},
54 "Define if the catalog contains flux upper limit (YES/NO by default NO)"},
56 "Define a flag (in the flux error column) telling that the sigma has to be computed from the flux and the Upper Limit threshold defined for each filter (must be <0 to trigger upper limit functionality, by default -99)"}
65 double upper_limit_threshold_flag =-99.;
70 logger.
info() <<
"Upper limit threshold flag is " << upper_limit_threshold_flag;
74 double missing_photo_flag =-99.;
81 auto filter_name_mapping = getDependency<PhotometricBandMappingConfig>().getPhotometricBandMapping();
82 auto threshold_mapping = getDependency<PhotometricBandMappingConfig>().getUpperLimitThresholdMapping();
83 auto column_info = getDependency<CatalogConfig>().getColumnInfo();
93 upper_limit_threshold_flag
96 getDependency<CatalogConfig>().addAttributeHandler(
std::move(handler_ptr));
103 throw Elements::Exception() <<
"isMissingPhotometryEnabled() call to uninitialized PhotometryCatalogConfig";
113 throw Elements::Exception() <<
"isUpperLimitEnabled() call to uninitialized PhotometryCatalogConfig";