HigherOrderMomentsSourcePlugin#
- class lsst.meas.extensions.shapeHSM.HigherOrderMomentsSourcePlugin(config, name, schema, metadata, logName=None)#
Bases:
HigherOrderMomentsPluginPlugin for Higher Order Moments measurement of objects.
The moments are measured in normalized coordinates, where the normalized x axis is along the major axis and the normalized y axis along the minor. The moments are dependent only on the light profile, and does not scale with the size or orientation of the object.
For any well-sampled image, the zeroth order moment is 1, the first order moments are 0, and the second order moments are 0.5 for xx and yy and 0 for xy. For a symmetric profile, the moments are zeros if either of the indices is odd.
Notes#
This plugin requires the
ext_shapeHSM_HsmSourceMomentsplugin to be enabled in order to measure the higher order moments, and raises a FatalAlgorithmError otherwise. For accurate results, the weight function used must match those used for first and second order moments. Hence, this plugin does not use slots for centroids and shapes, but instead uses those measured by theext_shapeHSM_HsmSourceMomentsexplicitly.The only known failure mode of this plugin is if
ext_shapeHSM_HsmSourceMomentsmeasurement failed. The flags of that plugin are informative here as well and should be used to filter out unreliable measurements.Methods Summary
measure(record, exposure)Measure the properties of a source on a single image.
Methods Documentation
- measure(record, exposure)#
Measure the properties of a source on a single image.
The image may be from a single epoch, or it may be a coadd.
Parameters#
- measRecord
lsst.afw.table.SourceRecord Record describing the object being measured. Previously-measured quantities may be retrieved from here, and it will be updated in-place tih the outputs of this plugin.
- exposure
lsst.afw.image.ExposureF The pixel data to be measured, together with the associated PSF, WCS, etc. All other sources in the image should have been replaced by noise according to deblender outputs.
- measRecord