Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ip_diffim
-
Labels:None
-
Story Points:4
-
Epic Link:
-
Sprint:AP S23-5 (April), AP S23-6 (May)
-
Team:Alert Production
-
Urgent?:No
Description
Add a config option to the image differencing tasks for specific template mask planes to preserve, and clear all others.
Mask planes we know should be preserved:
- NO_DATA
Mask planes we should preserve for now, and investigate whether they should be removed:
- BAD
- SAT
Adding the code to clear the template mask uncovered a couple of minor bugs in the existing code, which are also fixed on this ticket. I added new unit tests to verify the behavior of the image difference mask, and ran ap_verify on the ap_verify_ci_hits2015 test dataset to verify the results on real data. Snapshots below are provided as a quick summary of the changed behavior:
The mask of the science and template images retrieved from the butler are identical in both runs (as they should be). Mask of the science image with suppressed color scale:
With our original code, the mask of the difference image is almost useless (same color scale):
With the new code to clear the mask of the template, the mask of the difference image may be useful (same color scale):