Refactor Background
Closes #151 (closed), #19 (closed), #67 (closed).
Changes:
- A separate template for the off-axis background determination.
- Rewrite of the derive background and apply background.
- Replace
add_background_layer
withsubtract_background
, because that better reflects the action. - Perform the background subtraction when determining the illumination correction.
TODO in (probably another MR):
- make it technically possible to use the science data for background correction
- creating the catalog for the illumination correction is now technically not possible, need to fix that at some point
- perhaps create a new recipe that combines
Detrend
andDetrendFinal
, e.g.DetrendFull
or so (as described in #76 (closed)), however this does not add that much, because the currentDetrend
recipe should still exist, e.g. for the background determination and illumination correction derivation.
@verdoes can you review this?
Perhaps the easiest would be to start with the association matrices: