MeasureDonutCandidatesTask#
- class lsst.ts.wep.blitz.MeasureDonutCandidatesTask(config=None, *, name=None, parentTask=None, log=None)#
Bases:
TaskMeasure 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_asymandsnrmetrics from them.Measurement only: no row is dropped, no ordering is imposed, and no threshold is applied.
CutDonutStampsTaskis what cuts on these metrics and truncates to its ownmaxDonuts; a candidate too close to the detector edge to cut a background annulus getsnanmetrics 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:
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_radiusis used.
- Returns:
measurementsQTableA copy of
selectionswith 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