From 39a4d7eb16a0e5694eb2832654a414c30b08d34f Mon Sep 17 00:00:00 2001 From: Eddie Schlafly Date: Thu, 25 Jan 2024 10:22:13 -0500 Subject: [PATCH 1/2] Provide a default WCS for ramp fitting. --- romancal/ramp_fitting/ramp_fit_step.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/romancal/ramp_fitting/ramp_fit_step.py b/romancal/ramp_fitting/ramp_fit_step.py index a6f42986f..3d75dab4c 100644 --- a/romancal/ramp_fitting/ramp_fit_step.py +++ b/romancal/ramp_fitting/ramp_fit_step.py @@ -271,7 +271,7 @@ def create_image_model(input_model, image_info): # Create output datamodel # ... and add all keys from input - meta = {} + meta = dict(wcs=None) # default empty WCS meta.update(input_model.meta) meta["cal_step"]["ramp_fit"] = "INCOMPLETE" meta["photometry"] = maker_utils.mk_photometry() From f91a3ff8f1a28a3ee15b6f98b2f3e789095dab18 Mon Sep 17 00:00:00 2001 From: Eddie Schlafly Date: Fri, 26 Jan 2024 08:38:08 -0500 Subject: [PATCH 2/2] Update change log. --- CHANGES.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 70c106956..bd8b30ad4 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -24,6 +24,13 @@ documentation - added user documentation for ``roman_static_preview`` script [#1046] + +ramp_fitting +------------ + +- Add default WCS when constructing image model from ramp model [#1072] + + general -------