28 namespace lsst {
namespace meas {
namespace base {
31 flux(std::numeric_limits<
Flux>::quiet_NaN()),
37 std::string
const &
name,
38 std::string
const & doc
43 "1-sigma flux uncertainty",
"dn");
61 std::string
const &
name
85 std::string
const &
name,
91 mapper.addMapping(mapper.getInputSchema().find<afw::table::Flag>(
name +
"_flag").key);
111 for (; inSrc != inputCatalog.
end() && outSrc != outputCatalog.
end(); ++inSrc, ++outSrc) {
double getMagnitude(double const flux) const
Defines the fields and offsets for a table.
table::Key< std::string > name
virtual void set(afw::table::BaseRecord &record, FluxResult const &other) const
Set a FluxResult in the given record.
A custom container class for records, based on std::vector.
A mapping between the keys of two Schemas, used to copy data between them.
A FunctorKey for MagResult.
A reusable result struct for magnitudes.
static void setThrowOnNegativeFlux(bool raiseException)
Implementation of the WCS standard for a any projection.
afw::table::Key< Mag > _magKey
static FluxResultKey addFields(afw::table::Schema &schema, std::string const &name, std::string const &doc)
FluxResult()
Default constructor; initializes everything to NaN.
afw::table::Key< MagErrElement > _magErrKey
Field< T >::Value get(Key< T > const &key) const
Return the value of a field for the given key.
Custom catalog class for record/table subclasses that are guaranteed to have an ID, and should generally be sorted by that ID.
Schema getSchema() const
Return the schema associated with the catalog's table.
afw::table::Key< Flux > _flux
Iterator class for CatalogT.
virtual FluxResult get(afw::table::BaseRecord const &record) const
Get a FluxResult from the given record.
Flux flux
Measured flux in DN.
A FunctorKey for FluxResult.
static MagResultKey addFields(afw::table::Schema &schema, std::string const &name)
Key< T > addField(Field< T > const &field, bool doReplace=false)
Add a new field to the Schema, and return the associated Key.
Base class for all records.
std::string join(std::string const &a, std::string const &b) const
Join strings using the field delimiter appropriate for this Schema.
virtual MagResult get(afw::table::BaseRecord const &record) const
Get a MagResult from the given record.
NoThrowOnNegativeFluxContext()
virtual void set(afw::table::BaseRecord &record, MagResult const &magResult) const
Set a MagResult in the given record.
void set(Key< T > const &key, U const &value)
Set value of a field for the given key.
FluxErrElement fluxSigma
1-Sigma error (sqrt of variance) on flux in DN.
static bool getThrowOnNegativeFlux()
~NoThrowOnNegativeFluxContext()
afw::table::Key< FluxErrElement > _fluxSigma
A reusable result struct for flux measurements.