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) {
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.
afw::table::Schema schema
A mapping between the keys of two Schemas, used to copy data between them.
A FunctorKey for MagResult.
A reusable result struct for magnitudes.
Implementation of the WCS standard for a any projection.
afw::table::Key< Mag > _magKey
Key< T > addField(Field< T > const &field, bool doReplace=false)
Add a new field to the Schema, and return the associated Key.
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
Custom catalog class for record/table subclasses that are guaranteed to have an ID, and should generally be sorted by that ID.
afw::table::Key< Flux > _flux
static void setThrowOnNegativeFlux(bool raiseException)
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)
Base class for all records.
virtual MagResult get(afw::table::BaseRecord const &record) const
Get a MagResult from the given record.
NoThrowOnNegativeFluxContext()
std::string join(std::string const &a, std::string const &b) const
Join strings using the field delimiter appropriate for this Schema.
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.
static bool getThrowOnNegativeFlux()
Field< T >::Value get(Key< T > const &key) const
Return the value of a field for the given key.
FluxErrElement fluxSigma
1-Sigma error (sqrt of variance) on flux in DN.
~NoThrowOnNegativeFluxContext()
afw::table::Key< FluxErrElement > _fluxSigma
Schema getSchema() const
Return the schema associated with the catalog's table.
A reusable result struct for flux measurements.
double getMagnitude(double const flux) const