Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: afw, ip_diffim, meas_algorithms, pipe_tasks
-
Labels:None
-
Story Points:6
-
Epic Link:
-
Sprint:Science Pipelines DM-S15-3, Science Pipelines DM-S15-4
-
Team:Data Release Production
Description
This issue involves transferring changesets from the following HSC issues:
- HSC-145 Investigate approximating rather than interpolating backgrounds
- HSC-1047 Background object cannot be loaded with butler
- HSC-1213 Set background 'approximate' control settings when background control is created.
- HSC-1221 tests failing in ip_diffim
- HSC-1217 Verify backgroundList IO works properly when Approximate is enabled in background control - HSC JIRA
The Approximate (Chebyshev) approach greatly improves the background subtraction around bright objects compared with the interpolation scheme currently in use (which over-subtracts near bright objects).
In looking into the relevant code in afw/math while working on this issue, it is clear there is some clean-up and restructuring that needs to be done before resetting the defaults (which may also require adjusting some defaults in the calibrate stage to be more appropriate for the approximation, as opposed to inperpolation, scheme). Therefore, the default setting will not be changed as part of this ticket (i.e. useApprox is set to False). A separate issue (
DM-2920) has been created to clean up the code and make sure it all operates coherently. Another ticket (DM-2921) has been created to actually reset the defaults and make any other config default changes required.In the meantime, a temporary check has been added here in meas.algoritms.detection.getBackground() so that it is currently "safe" to run with useApprox=True and any other user overridden config setting (binSize, approxOrderX, undersampleStyle) (and there currently exists similar checks in pipe.tasks.matchBackground), but these should be removed once
DM-2920has been implemented.