From 72050881b01f1c1332689f047387c3f266514703 Mon Sep 17 00:00:00 2001 From: Marshall Perrin Date: Wed, 7 Feb 2024 16:55:31 -0500 Subject: [PATCH] bugfix import --- webbpsf/trending.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webbpsf/trending.py b/webbpsf/trending.py index 0a8e10fd..8b1367ad 100644 --- a/webbpsf/trending.py +++ b/webbpsf/trending.py @@ -1700,7 +1700,7 @@ def nrc_ta_image_comparison(visitid, verbose=False, show_centroid=False): oss_cen_sci_pythonic = None ### WCS COORDINATES ### - import jwst + import jwst.datamodels model = jwst.datamodels.open(hdul) targ_coords = astropy.coordinates.SkyCoord(model.meta.target.ra, model.meta.target.dec, frame='icrs', unit=u.deg) targ_coords_pix = model.meta.wcs.world_to_pixel(targ_coords) # returns x, y