Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changes/10524.resample.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Corrected the "level" and "subtracted" keys in the output resampled model to
show correct values for the resampled image.
2 changes: 2 additions & 0 deletions jwst/resample/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,8 @@ def update_output_model(self, model, info_dict):
model.meta.exposure.measurement_time = info_dict["measurement_time"]
model.meta.exposure.effective_exposure_time = info_dict["exposure_time"]
model.meta.exposure.elapsed_exposure_time = info_dict["elapsed_exposure_time"]
model.meta.background.level = info_dict.get("level", 0.0)
model.meta.background.subtracted = info_dict.get("subtracted", True)

def add_model(self, model):
"""
Expand Down
Loading