Skip to content

DM-52721: Implement MultiResolutionDetectionTask - #485

Open
fred3m wants to merge 6 commits into
mainfrom
tickets/DM-52721
Open

fred3m wants to merge 6 commits into
mainfrom
tickets/DM-52721

Conversation

@fred3m

@fred3m fred3m commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

No description provided.

fred3m and others added 6 commits September 23, 2026 07:58
Detect sources with the scarlet lite starlet transform as a compensated
filter, on single-band Exposures or MultibandExposures, as a drop-in
replacement for SourceDetectionTask that needs no background subtraction.
The detection intermediate products (peaks, candidates, positions) are
returned as astropy tables.

Generated with AI

Co-Authored-By: SLAC AI
Starlets are a compensated filter with no response to smooth flux, so
the coefficient footprints of an extended source stop well inside it.
Footprints now come from a chi^2 coadd of the PSF-correlated bands, with
the starlet peaks inserted into whichever footprint contains them, and
peakValue read off the image the footprint came from.

That leaves an image in counts to re-estimate a background from, so the
background handling of the base task is used rather than suppressed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Feed the excludeMaskPlanes mask to the starlet peak finder so that
detections ringing around saturated stars are dropped in the bands
that flag them, while clean bands still detect the source. The image
is still zeroed at those pixels to keep the transform finite;
badPixelDilation sets how far the suppression reaches.

Also default thresholdType to pixel_stdev. The median stdev
underestimates the noise on images with a long tail, where a plain
stdev threshold yields more false detections than real ones.

Generated with AI

Co-Authored-By: SLAC AI
scarlet_lite's detect_peaks now takes a PSF FWHM per band, derives
the minimum separation from the narrowest one, and returns the pairs
and components tables that describe how positions were grouped. The
tables are joined across polarities like the others, and every table
carries the detection settings in its meta.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant