Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: pipe_tasks
-
Labels:None
-
Story Points:24
-
Epic Link:
-
Sprint:AP S22-3 (February), AP S22-4 (March), AP S22-5 (April), AP S22-6 (May), AP F22-1 (June)
-
Team:Alert Production
-
Urgent?:No
Description
John and I sketched out some thoughts on a whiteboard on how we might refactor ImageDifferenceTask in a Gen 3-only environment. This ticket is to write a prototype new implementation to bring to a larger group for discussion. Since the new design would change the API, we would also expect to file an RFC.
General plan:
ImageDifferenceTask should be divided into several PipelineTasks:
- makeTemplate (input: calexp, skymap, coadds; output: warpedTemplate)
- warpPatches
- assembleWarps
- subtraction (A&L, input: calexp, warpedTemplate; output: differenceExp)
- makeKernel (possibly now a configurable Task)
- convolve image (template or science)
- subtraction
- decorrelation
- subtraction with preconvolution (A&L, input: calexp, warpedTemplate; output: likelihoodExp)
- convolve science
- makeKernel
- convolveTemplate
- subtraction
- decorrelation
- detection and measurement (input: calexp, warpedTemplate, likelihoodExp, output: diaSources)
- detection
- measurement
- dipole measurement
- aperture correction
Attachments
Issue Links
- is triggering
-
DM-34801 Replace Diff_warpedExp with Diff_templateExp in diaPipe
- Done
-
DM-35068 New ip_diffim algorithm breaks on macOS
- Done
- relates to
-
DM-34811 Quantum graph ordering for component datasets
- Done
-
DM-34910 Test DCR correction with new image differencing
- In Progress
-
DM-33391 Assist in implementation of new image differencing Task
- Done
-
DM-33745 Refactor Task to make ImageDifference template
- Done
-
DM-34217 Move ScaleVarianceTask
- Done
-
DM-34266 Write unit tests for the refactored ImageDifferenceTask
- Done
-
DM-34364 Use PSF-matched template for image decorrelation
- Done
-
DM-34566 ip_diffim tests produce many warnings
- Done
-
DM-34786 Run ci_hits with the new image differencing
- Done
-
DM-34830 Increase template border size
- Done
-
DM-34909 Add preconvolution option to new image differencing
- Done
-
DM-35155 Write unit tests for DetectAndMeasureTask
- Done
-
DM-35175 Debug convolveScience option of new image differencing
- Done
-
DM-35639 Switch AP and DRP pipelines to use new image differencing
- Done
-
DM-37612 Remove unit tests of deprecated code
- Done
-
DM-33861 Process two tracts of DC2 with refactored Image Differencing
- Invalid
-
DM-34008 Test the performance of difference imaging
- Invalid
-
DM-34787 Run ci_cosmos and ci_hits with the new image differencing
- Invalid
-
DM-35172 Run the diffim sprint dataset through the refactored imageDifference code
- Invalid
-
RFC-866 Adopt new Image Differencing task
- Implemented
-
DM-34628 Variance underestimated in patch overlaps in templates
- Done
-
DM-35156 Prepare RFC for adoption of new image difference Task
- Done
We have a working new image differencing pipeline, which is now in ip.diffim. The new pipeline uses
DM-33745to create the warped template, and then performs image subtraction and detection and measurement of diaSources as separate PipelineTasks. The results are the same as the previous ImageDifferenceTask under a few conditions and with the following execptions: