LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
45 geom::Point2D const center = _centroidExtractor(measRecord, _flagHandler);
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
Return the Exposure's Psf object.
void handleFailure(afw::table::BaseRecord &record, MeasurementError const *error=nullptr) const
Handle an expected or unexpected Exception thrown by a measurement algorithm.
Record class that contains measurements made on a single exposure.
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.
Defines the fields and offsets for a table.
An ellipse core for the semimajor/semiminor axis and position angle parametrization (a,...
double getDeterminantRadius() const
Return the radius defined as the 4th root of the determinant of the quadrupole matrix.
A Result struct for running an aperture flux algorithm with a single radius.
A FunctorKey for FluxResult.
MaskedImageT getMaskedImage()
Return the MaskedImage.
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." ;
A mapping between the keys of two Schemas, used to copy data between them.
A base class for image defects.
An ellipse defined by an arbitrary BaseCore and a center point.
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)
Set value of a field for the given key.
Configuration object for multiple-aperture flux algorithms.
geom::ellipses::Quadrupole computeShape(lsst::geom::Point2D position=makeNullPoint(), image::Color color=image::Color()) const
Compute the ellipse corresponding to the second moments of the Psf.
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.