31#include "../../SourceCatalog/PhotometryParsingException.h"
37namespace SourceCatalog {
46 , m_missing_photometry_flag(missing_photometry_flag)
106 setup_desc +=
"'missing data' and 'upper limit' enabled";
108 setup_desc +=
"'missing data' and 'upper limit' disabled";
110 setup_desc +=
"'missing data' disabled and 'upper limit' enabled";
112 setup_desc +=
"'missing data' and 'upper limit' disabled";
133 flux = converted.first;
134 error = converted.second;
162 "Negative or Zero flux encountered when parsing the Photometry ",
context_desc.c_str(), flux, error);
165 error = std::abs(error);
171 "Negative or Zero error encountered when parsing the Photometry ",
context_desc.c_str(), flux, error);
Store the Right Ascension (Ra) and Delination (Dec) of a source in decimal degrees,...
std::vector< std::pair< size_t, size_t > > m_table_index_vector
std::unique_ptr< Attribute > createAttribute(const Euclid::Table::Row &row) override
Create a photometricAttribute from a Table row.
std::pair< double, double > convertFromMag(const double mag, const double mag_err) const
double m_n_upper_limit_flag
double m_missing_photometry_flag
std::vector< std::pair< std::string, bool > > m_convert_from_mag
virtual ~PhotometryAttributeFromRow()
std::shared_ptr< std::vector< std::string > > m_filter_name_vector_ptr
bool m_missing_photometry_enabled
bool m_upper_limit_enabled
PhotometryAttributeFromRow(std::shared_ptr< Euclid::Table::ColumnInfo > column_info_ptr, const std::vector< std::pair< std::string, std::pair< std::string, std::string > > > &filter_name_mapping, const bool missing_photometry_enabled, const double missing_photometry_flag, const bool upper_limit_enabled, const std::vector< std::pair< std::string, float > > &n_map, const double n_upper_limit_flag, const std::vector< std::pair< std::string, bool > > &convert_from_mag={})
Create a PhotometryAttributeFromRow object.
std::vector< std::pair< std::string, float > > m_n_map
Represents one row of a Table.
boost::variant< bool, int32_t, int64_t, float, double, std::string, std::vector< bool >, std::vector< int32_t >, std::vector< int64_t >, std::vector< float >, std::vector< double >, NdArray::NdArray< int32_t >, NdArray::NdArray< int64_t >, NdArray::NdArray< float >, NdArray::NdArray< double > > cell_type
The possible cell types.
bool almostEqual2sComplement(ELEMENTS_UNUSED const FloatType &a, ELEMENTS_UNUSED const FloatType &b, ELEMENTS_UNUSED const std::size_t &max_ulps=0)
static std::string getContextDescription(bool missing_photometry_enabled, bool upper_limit_enabled)