24 #ifndef LSST_MEAS_BASE_FluxUtilities_h_INCLUDED 25 #define LSST_MEAS_BASE_FluxUtilities_h_INCLUDED 79 : _flux(flux), _fluxErr(fluxErr) {}
101 return _flux == other._flux && _fluxErr == other._fluxErr;
107 bool isValid()
const {
return _flux.isValid() && _fluxErr.isValid(); }
217 bool _throwOnNegative;
224 #endif // !LSST_MEAS_BASE_FluxUtilities_h_INCLUDED
afw::table::Key< FluxErrElement > getFluxErr() const
Return the underlying fluxErr Key.
MagResultKey(afw::table::SubSchema const &s)
Construct from a subschema, assuming mag and magErr subfields.
afw::table::Key< meas::base::Flux > getFlux() const
Return the underlying flux Key.
FluxResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
afw::table::Schema schema
A FunctorKey for MagResult.
Temporarily replace negative fluxes with NaNs.
A reusable result struct for magnitudes.
bool operator==(CoordKey const &lhs, CoordKey const &rhs)
ItemVariant const * other
FluxResult()
Default constructor; initializes everything to NaN.
FluxResultKey(afw::table::SubSchema const &s)
Construct from a subschema, assuming flux and fluxErr subfields.
FluxResultKey(afw::table::Key< meas::base::Flux > const &flux, afw::table::Key< FluxErrElement > const &fluxErr)
Construct from a pair of Keys.
table::Key< table::Array< std::uint8_t > > wcs
FluxErrElement fluxErr
Standard deviation of flux in DN.
FluxResult(Flux flux_, FluxErrElement fluxErr_)
Constructor from flux and its uncertainty.
Flux flux
Measured flux in DN.
bool operator!=(FluxResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying flux and fluxErr Keys...
MagResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
A FunctorKey for FluxResult.
bool isValid() const
Return True if both the flux and fluxErr Keys are valid.
A reusable result struct for flux measurements.