DonutQuickMeasurementTask#

class lsst.ts.wep.task.DonutQuickMeasurementTask(**kwargs)#

Bases: QuickFrameMeasurementTask

Parameters:

kwargs (Any)

Methods Summary

run(exp[, template, donutDiameter, ...])

Run method for the task.

Methods Documentation

run(exp, template=None, donutDiameter=None, cutoutPadding=None)#

Run method for the task. This task runs a quick detection and measurement scheme to detect donuts in images based upon QuickFrameMeasurementTask.

Parameters:
  • exp (lsst.afw.image.Exposure) – Post-ISR image with donut sources.

  • template (numpy.ndarray or None, optional) – Donut template binary image. A template is required if doPreConvolution is True in configuration. (The Default is None.)

  • donutDiameter (int or None, optional) – Expected size of donut in pixels. If None then it will take this from the input configuration class. (The default is None.)

  • cutOutPadding (int or None, optional) – Number of pixels to add in addition to donutDiameter when creating postage stamp for exact centroid measurement. If None it will take this from the input configuration class. (The default is None.)

  • cutoutPadding (int | None, default: None)

Returns:

struct

The struct contains the following data:
  • detectedCatalogdict

    Dictionary of detected sources with location and flux measurements.

Return type:

lsst.pipe.base.Struct

Raises:

ValueError – Raised if template is None when doPreConvolution configuration parameter is set to True.