From 87e155521e07ecc66a07c6e9a2519f0519a9c9a9 Mon Sep 17 00:00:00 2001 From: Ned Molter Date: Mon, 15 Jul 2024 09:21:37 -0400 Subject: [PATCH] one-liner fix, adds setting of wcs.array_shape --- jwst/outlier_detection/outlier_detection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jwst/outlier_detection/outlier_detection.py b/jwst/outlier_detection/outlier_detection.py index 1e5d3c50c4d..2260196ebbb 100644 --- a/jwst/outlier_detection/outlier_detection.py +++ b/jwst/outlier_detection/outlier_detection.py @@ -569,6 +569,7 @@ def gwcs_blot(median_model, blot_img, interp='poly5', sinscl=1.0): log.debug("Pixmap shape: {}".format(pixmap[:, :, 0].shape)) log.debug("Sci shape: {}".format(blot_img.data.shape)) + blot_img.meta.wcs.array_shape = blot_img.shape #needed for compute image pixel area if 'SPECTRAL' not in blot_img.meta.wcs.output_frame.axes_type: input_pixflux_area = blot_img.meta.photometry.pixelarea_steradians input_pixel_area = compute_image_pixel_area(blot_img.meta.wcs)