lsst.meas.base
20.0.0-3-g750bffe+699cb77157
|
Go to the documentation of this file.
45 geom::Point2D const center = _centroidExtractor(measRecord, _flagHandler);
46 double const radius = exposure.
getPsf()->computeShape(center).getDeterminantRadius();
48 double const size = _ctrl.
scale * fwhm;
58 measRecord.
set(_instFluxResultKey,
result);
78 mapper.getInputSchema().find<afw::table::Flag>(
name +
"_" + flagName).key;
std::shared_ptr< lsst::afw::detection::Psf const > getPsf() const
void handleFailure(afw::table::BaseRecord &record, MeasurementError const *error=nullptr) const
Handle an expected or unexpected Exception thrown by a measurement algorithm.
virtual void fail(afw::table::SourceRecord &measRecord, MeasurementError *error=nullptr) const override
Handle an exception thrown by the current algorithm by setting flags in the given record.
ScaledApertureFluxAlgorithm(Control const &control, std::string const &name, afw::table::Schema &schema)
Exception to be thrown when a measurement algorithm experiences a known failure mode.
A Result struct for running an aperture flux algorithm with a single radius.
A FunctorKey for FluxResult.
MaskedImageT getMaskedImage()
std::string shiftKernel
"Warping kernel used to shift Sinc photometry coefficients to different center positions" ;
void setValue(afw::table::BaseRecord &record, std::size_t i, bool value) const
Set the flag field corresponding to the given flag index.
double scale
"Scaling factor of PSF FWHM for aperture radius." ;
std::unique_ptr< SchemaItem< U > > result
static Result computeSincFlux(afw::image::Image< T > const &image, afw::geom::ellipses::Ellipse const &ellipse, Control const &ctrl=Control())
Compute the instFlux (and optionally, uncertanties) within an aperture using Sinc photometry.
std::size_t size() const
return the current size (number of defined elements) of the collection
static FlagDefinitionList const & getFlagDefinitions()
Simple class used to define and document flags The name and doc constitute the identity of the FlagDe...
std::string shiftKernel
"Warping kernel used to shift Sinc photometry coefficients to different center positions" ;
void set(Key< T > const &key, U const &value)
Configuration object for multiple-aperture flux algorithms.
static FlagHandler addFields(afw::table::Schema &schema, std::string const &prefix, FlagDefinitionList const &flagDefs, FlagDefinitionList const &exclDefs=FlagDefinitionList::getEmptyList())
Add Flag fields to a schema, creating a FlagHandler object to manage them.
virtual void measure(afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const override
Measure the scaled aperture instFlux on the given image.