MeasureDonutCandidatesTask#

class lsst.ts.wep.blitz.MeasureDonutCandidatesTask(config=None, *, name=None, parentTask=None, log=None)#

Bases: Task

Measure aperture flux and quality metrics for candidate donuts.

For each candidate centroid, measures aperture flux and per-pixel noise over annular masks built once per call, then derives the inner_frac, outer_frac, outer_asym and snr metrics from them.

Measurement only: no row is dropped, no ordering is imposed, and no threshold is applied. CutDonutStampsTask is what cuts on these metrics and truncates to its own maxDonuts; a candidate too close to the detector edge to cut a background annulus gets nan metrics and is left in place for it to reject.

The donut radius and obscuration come from the module-level instrument (_LSSTCAM), not config – they are fixed geometry, not tunable.

Parameters:
  • config (Config | None, default: None)

  • name (str | None, default: None)

  • parentTask (Task | None, default: None)

  • log (Logger | LsstLogAdapter | None, default: None)

Methods Summary

run(exposure, selections[, donut_radius])

Measure aperture flux and quality metrics for candidate donuts.

Methods Documentation

run(exposure, selections, donut_radius=None)#

Measure aperture flux and quality metrics for candidate donuts.

Parameters:
  • exposure (Exposure) – Background-subtracted post-ISR science exposure, in un-binned pixel coordinates.

  • selections (QTable) – Catalog-selected (or blitz-detection) centroids with columns centroid_x, centroid_y, donut_id.

  • donut_radius (float or None, optional) – Measured donut radius in un-binned pixels, or None/NaN if unmeasured. If None, the nominal _LSSTCAM.donut_radius is used.

Returns:

measurementsQTable

A copy of selections with measurement columns added (flux, inner_frac, outer_frac, outer_asym, snr, plus raw *_flux, bkg_std, bkg). No rows are dropped and no ordering is imposed – selection and culling happen downstream. An empty input is returned unmodified, without measurement columns.

Return type:

pipeBase.Struct