Skip to content

Commit

Permalink
feat: try to create a WCS object
Browse files Browse the repository at this point in the history
  • Loading branch information
zonca committed Aug 26, 2020
1 parent ce9e533 commit d0a67de
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions iris_pipeline/resample/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
# try first importing everything from JWST
from jwst import datamodels

from astropy.io import fits
from astropy.wcs import WCS

from . import gwcs_drizzle
from . import resample_utils
from jwst.model_blender import blendmeta
Expand Down Expand Up @@ -47,6 +50,10 @@ def __init__(self, input_models, output=None, **pars):
filename for output
"""
self.input_models = input_models
for i in input_models:
with fits.open("/home/azonca/p/issues/202002_mosaic/example_field/iris_sim_gc_filterKN3_fix.fits") as f:
wcs = WCS(f[0].header)
i.meta.wcs = wcs
self.drizpars = pars
if output is None:
output = input_models.meta.resample.output
Expand Down

0 comments on commit d0a67de

Please sign in to comment.