33 : instFlux(
std::numeric_limits<meas::
base::
Flux>::quiet_NaN()),
41 schema.
join(name,
"instFluxErr"),
"1-sigma instFlux uncertainty",
"count");
59 result._magKey = schema.
addField<
Mag>(schema.
join(name,
"mag"),
"Magnitude");
70 record.
set(_magKey, magResult.
mag);
75 record.
set(_magKey, magResult.
value);
76 record.
set(_magErrKey, magResult.
error);
96 for (; inSrc != inputCatalog.end() && outSrc != outputCatalog.
end(); ++inSrc, ++outSrc) {
97 FluxResult instFluxResult = instFluxKey.get(*inSrc);
Defines the fields and offsets for a table.
A 2-dimensional celestial WCS that transform pixels to ICRS RA/Dec, using the LSST standard for pixel...
The photometric calibration of an exposure.
std::string join(std::string const &a, std::string const &b) const
Join strings using the field delimiter appropriate for this Schema.
A mapping between the keys of two Schemas, used to copy data between them.
A FunctorKey for MagResult.
double instFluxToMagnitude(double instFlux, lsst::geom::Point< double, 2 > const &point) const
Convert instFlux in ADU to AB magnitude.
A reusable result struct for magnitudes.
meas::base::FluxErrElement instFluxErr
Standard deviation of instFlux in DN.
static FluxResultKey addFields(afw::table::Schema &schema, std::string const &name, std::string const &doc)
Add a pair of _instFlux, _instFluxErr fields to a Schema, and return a FluxResultKey that points to t...
Field< T >::Value get(Key< T > const &key) const
Return the value of a field for the given key.
FluxResult()
Default constructor; initializes everything to NaN.
table::Key< table::Array< std::uint8_t > > wcs
A base class for image defects.
iterator end()
Iterator access.
Iterator class for CatalogT.
A FunctorKey for FluxResult.
static MagResultKey addFields(afw::table::Schema &schema, std::string const &name)
Add a pair of _mag, _magErr fields to a Schema, and return a MagResultKey that points to them...
Base class for all records.
virtual FluxResult get(afw::table::BaseRecord const &record) const
Get a FluxResult from the given record.
virtual void set(afw::table::BaseRecord &record, MagResult const &magResult) const
Set a MagResult in the given record.
virtual void set(afw::table::BaseRecord &record, FluxResult const &other) const
Set a FluxResult in the given record.
void set(Key< T > const &key, U const &value)
Set value of a field for the given key.
meas::base::Flux instFlux
Measured instFlux in DN.
virtual MagResult get(afw::table::BaseRecord const &record) const
Get a MagResult from the given record.
iterator begin()
Iterator access.
Key< T > addField(Field< T > const &field, bool doReplace=false)
Add a new field to the Schema, and return the associated Key.
A reusable result struct for instFlux measurements.