DonutDetectDiameterConfig#

class lsst.ts.wep.task.DonutDetectDiameterConfig(*args, **kw)#

Bases: Config

Configuration for DonutDetectDiameterTask.

Attributes Summary

backgroundSteps

Number of ladder steps beyond each annulus's outer radius to include (together with the inner hole) when estimating the local background for the zero-mean matched filter.

badPixelTypes

Mask plane names treated as bad.

dMaxFull

Largest donut diameter to probe, in full-res pixels.

dMinFull

Smallest donut diameter to probe, in full-res pixels.

detectionBinning

Integer factor to bin the image before correlation.

edgeMargin

Width of detector edge region to exclude, in full-res pixels.

energyFloorFactor

Noise floor added to the local image energy in the normalized cross-correlation denominator, as a fraction of the median local energy across the map.

innerFrac

Inner/outer diameter ratio (central obscuration) of the donut.

likenessEdgeClip

Number of binned pixels to clip from the likeness map edges (where the correlation is biased by zero-padding).

likenessThreshold

Minimum likeness (cosine shape-agreement score) for a peak to be kept.

nPeaks

Maximum number of donut candidates to pool the sizing curve over.

peakMinSeparationFactor

Minimum separation between candidate peaks, in units of the winning (per-peak) binned donut diameter.

rootOrder

ratio = (1/innerFrac)**(1/k).

snrThreshold

Minimum matched-filter SNR (at the winning diameter) for a peak to be kept.

subtractColumnMedian

Subtract the column median from the binned image before correlation.

Methods Summary

validate()

Validate the config field values.

Attributes Documentation

backgroundSteps: pexConfig.Field#

Number of ladder steps beyond each annulus’s outer radius to include (together with the inner hole) when estimating the local background for the zero-mean matched filter. Larger values sample more background (lower noise) but reach further into neighbours in crowded fields. (int, default 2)

badPixelTypes: pexConfig.ListField#

Mask plane names treated as bad. Matching pixels are zeroed before binning and correlation (see _prepImage). (List, default ['SAT', 'BAD', 'NO_DATA', 'INTRP'])

dMaxFull: pexConfig.Field#

Largest donut diameter to probe, in full-res pixels. (float, default 480.0)

dMinFull: pexConfig.Field#

Smallest donut diameter to probe, in full-res pixels. (float, default 30.0)

detectionBinning: pexConfig.Field#

Integer factor to bin the image before correlation. (int, default 8)

edgeMargin: pexConfig.Field#

Width of detector edge region to exclude, in full-res pixels. (int, default 1)

energyFloorFactor: pexConfig.Field#

Noise floor added to the local image energy in the normalized cross-correlation denominator, as a fraction of the median local energy across the map. Prevents flat/empty regions (tiny energy) from producing spuriously high cosine scores. 0 disables the floor (pure cosine similarity). (float, default 0.1)

innerFrac: pexConfig.Field#

Inner/outer diameter ratio (central obscuration) of the donut. (float, default 0.61)

likenessEdgeClip: pexConfig.Field#

Number of binned pixels to clip from the likeness map edges (where the correlation is biased by zero-padding). (int, default 10)

likenessThreshold: pexConfig.Field#

Minimum likeness (cosine shape-agreement score) for a peak to be kept. Rejects wrong-shape features at any brightness. Set <= 0 to disable. (float, default 0.6)

nPeaks: pexConfig.Field#

Maximum number of donut candidates to pool the sizing curve over. (int, default 5)

peakMinSeparationFactor: pexConfig.Field#

Minimum separation between candidate peaks, in units of the winning (per-peak) binned donut diameter. Declusters extended features. (float, default 1.0)

rootOrder: pexConfig.Field#

ratio = (1/innerFrac)**(1/k). Larger k -> finer diameter sampling at proportionally higher cost. (int, default 5)

Type:

Root order k for the diameter ladder

snrThreshold: pexConfig.Field#

Minimum matched-filter SNR (at the winning diameter) for a peak to be kept. Rejects noise peaks at any shape. Set <= 0 to disable. (float, default 15.0)

subtractColumnMedian: pexConfig.Field#

Subtract the column median from the binned image before correlation. (bool, default False)

Methods Documentation

validate()#

Validate the config field values.

Raises:

lsst.pex.config.FieldValidationError – If rootOrder is less than 1, dMaxFull does not exceed dMinFull, or detectionBinning is less than 1.

Return type:

None