From 830cf4705ddf423baf2839964f6d15c26fd7c99c Mon Sep 17 00:00:00 2001 From: Ned Molter Date: Wed, 16 Oct 2024 12:19:43 -0400 Subject: [PATCH] added changelog entry --- changes/307.apichange.rst | 1 + src/stcal/alignment/util.py | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 changes/307.apichange.rst diff --git a/changes/307.apichange.rst b/changes/307.apichange.rst new file mode 100644 index 00000000..e085228b --- /dev/null +++ b/changes/307.apichange.rst @@ -0,0 +1 @@ +Make wcs_from_footprints accept s_regions instead of wcs objects diff --git a/src/stcal/alignment/util.py b/src/stcal/alignment/util.py index 1aa42830..630c6886 100644 --- a/src/stcal/alignment/util.py +++ b/src/stcal/alignment/util.py @@ -512,9 +512,8 @@ def wcs_from_footprints( containing (RA, Dec) vertices demarcating the footprint of the input WCSs. ref_wcs : - A valid datamodel whose WCS is used as reference for the creation of the output + A WCS used as reference for the creation of the output coordinate frame, projection, and scaling and rotation transforms. - If not supplied the first model in the list is used as ``refmodel``. ref_wcsinfo : dict A dictionary containing the WCS FITS keywords and corresponding values. @@ -569,7 +568,7 @@ def wcs_from_footprints( transform = _generate_tranform( ref_wcs, - wcsinfo=ref_wcsinfo, + ref_wcsinfo, pscale_ratio=pscale_ratio, pscale=pscale, rotation=rotation,