Skip to content

Commit

Permalink
one-liner fix, adds setting of wcs.array_shape
Browse files Browse the repository at this point in the history
  • Loading branch information
emolter committed Jul 15, 2024
1 parent bc255f4 commit 87e1555
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jwst/outlier_detection/outlier_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 87e1555

Please sign in to comment.