Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
PhotometryAttributeFromRow.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2012-2021 Euclid Science Ground Segment
3 *
4 * This library is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU Lesser General Public License as published by the Free
6 * Software Foundation; either version 3.0 of the License, or (at your option)
7 * any later version.
8 *
9 * This library is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12 * details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this library; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
26#ifndef PHOTOMETRYATTRIBUTEFROMROW_H_
27#define PHOTOMETRYATTRIBUTEFROMROW_H_
28#include <map>
29#include <memory>
30#include <string>
31#include <utility>
32#include <vector>
33
35
38#include "Table/Table.h"
39
40namespace Euclid {
41namespace SourceCatalog {
42
51public:
86 const bool missing_photometry_enabled, const double missing_photometry_flag, const bool upper_limit_enabled,
89
91
98 std::unique_ptr<Attribute> createAttribute(const Euclid::Table::Row& row) override;
99
100 std::pair<double, double> convertFromMag(const double mag, const double mag_err) const;
101
102private:
103 /*
104 * Map the correspondence between the filterName and the indexes used in the Table columns
105 */
107
108 /*
109 * Pointer to the shared filter name vector
110 */
112
114
115 /*
116 * Flag value for missing photometry data
117 */
119
121
123
125
127};
128
129} // namespace SourceCatalog
130} // end of namespace Euclid
131
132#endif // PHOTOMETRYATTRIBUTEFROMROW_H_
Interface for building a source Attribute from a table Row.
Store the Right Ascension (Ra) and Delination (Dec) of a source in decimal degrees,...
Definition Coordinates.h:41
Implementation of the AttributeFromRow for a photometry attribute. This class implements the createAt...
std::vector< std::pair< size_t, size_t > > m_table_index_vector
std::vector< std::pair< std::string, bool > > m_convert_from_mag
std::shared_ptr< std::vector< std::string > > m_filter_name_vector_ptr
std::vector< std::pair< std::string, float > > m_n_map
Represents one row of a Table.
Definition Row.h:57
#define ELEMENTS_API