# HSC backport: Support a full background model when detecting cosmic rays

XMLWordPrintable

## Details

• Type: Improvement
• Status: Done
• Resolution: Done
• Fix Version/s: None
• Component/s:
• Labels:
None
• Templates:
• Story Points:
1
• Sprint:
Science Pipelines DM-W16-6
• Team:
Data Release Production

## Description

This is a port of the following two standalone HSC commits:

Support a full background model when detecting cosmic rays

 If there are strong gradients (e.g. M31's nucleus) we need to do more than treat the background as a constant. However, this requires making a copy of the data so the background-is-a-constant model is preserved as a special case 

Fixed cosmicRay() in RepairTask for the case background is subtracted.

 When the background is subtracted with finer binsize, new exposure will be created and cosmic rays will be detected on that exposure. But the image of that exposure was not properly returned back. 

## People

• Assignee:
Lauren MacArthur
Reporter:
Lauren MacArthur
Reviewers:
John Swinbank
Watchers:
John Swinbank, Lauren MacArthur