LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
24 #ifndef LSST_MEAS_BASE_FluxUtilities_h_INCLUDED
25 #define LSST_MEAS_BASE_FluxUtilities_h_INCLUDED
82 : _instFlux(instFlux), _instFluxErr(instFluxErr) {}
94 : _instFlux(s[
"instFlux"]), _instFluxErr(s[
"instFluxErr"]) {}
105 return _instFlux ==
other._instFlux && _instFluxErr ==
other._instFluxErr;
212 #endif // !LSST_MEAS_BASE_FluxUtilities_h_INCLUDED
FluxResult(meas::base::Flux instFlux_, meas::base::FluxErrElement instFluxErr_)
Constructor from instFlux and its uncertainty.
meas::base::Flux instFlux
Measured instFlux in DN.
virtual void set(afw::table::BaseRecord &record, MagResult const &magResult) const
Set a MagResult in the given record.
afw::table::Key< meas::base::Flux > getInstFlux() const
Return the underlying instFlux Key.
A reusable result struct for instFlux measurements.
virtual FluxResult get(afw::table::BaseRecord const &record) const
Get a FluxResult from the given record.
virtual MagResult get(afw::table::BaseRecord const &record) const
Get a MagResult from the given record.
table::Key< table::Array< std::uint8_t > > wcs
Convenience base class that combines the OutputFunctorKey and InputFunctorKey.
Defines the fields and offsets for a table.
A FunctorKey for MagResult.
A 2-dimensional celestial WCS that transform pixels to ICRS RA/Dec, using the LSST standard for pixel...
A FunctorKey for FluxResult.
bool isValid() const
Return True if both the instFlux and instFluxErr Keys are valid.
meas::base::FluxErrElement instFluxErr
Standard deviation of instFlux in DN.
FluxResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
virtual void set(afw::table::BaseRecord &record, FluxResult const &other) const
Set a FluxResult in the given record.
ItemVariant const * other
Base class for all records.
A mapping between the keys of two Schemas, used to copy data between them.
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.
MagResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
bool isValid() const noexcept
Return true if the key was initialized to valid offset.
The photometric calibration of an exposure.
A base class for image defects.
FluxResult()
Default constructor; initializes everything to NaN.
bool operator!=(FluxResultKey const &other) const
Implementation of the Photometric Calibration class.
A proxy type for name lookups in a Schema.
MagResultKey(afw::table::SubSchema const &s)
Construct from a subschema, assuming mag and magErr subfields.
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...
bool operator==(FluxResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying instFlux and instFluxErr Keys.
FluxResultKey(afw::table::Key< meas::base::Flux > const &instFlux, afw::table::Key< meas::base::FluxErrElement > const &instFluxErr)
Construct from a pair of Keys.
A reusable result struct for magnitudes.
FluxResultKey(afw::table::SubSchema const &s)
Construct from a subschema, assuming instFlux and instFluxErr subfields.
afw::table::Key< FluxErrElement > getInstFluxErr() const
Return the underlying instFluxErr Key.