diff options
author | dencheva <dencheva@stsci.edu> | 2009-03-18 17:09:04 -0400 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2009-03-18 17:09:04 -0400 |
commit | 52925c50bd2e80f50715b6c3dc6c7eeee4b20b75 (patch) | |
tree | c0735f21dc0fbf1960cceee249306d6790c80196 /hstwcs/__init__.py | |
parent | 887e88bcfdd124faa031f259ce6f11f71590d231 (diff) | |
download | stwcs_hcf-52925c50bd2e80f50715b6c3dc6c7eeee4b20b75.tar.gz |
More on detector to image correction
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7776 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'hstwcs/__init__.py')
-rw-r--r-- | hstwcs/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hstwcs/__init__.py b/hstwcs/__init__.py index 8b83e1e..a843888 100644 --- a/hstwcs/__init__.py +++ b/hstwcs/__init__.py @@ -84,7 +84,8 @@ def makecorr(fname, allowed_corr): if 'DET2IMCorr' in allowed_corr: kw2update = det2im.DET2IMCorr.updateWCS(f) for kw in kw2update: - f[1].header.update(kw, kw2update[kw]) + #these kw are written to the primary header + f[0].header.update(kw, kw2update[kw]) for i in range(len(f))[1:]: # Perhaps all ext headers should be corrected (to be consistent) @@ -106,6 +107,9 @@ def makecorr(fname, allowed_corr): kw2update = dgeo.DGEOCorr.updateWCS(f) for kw in kw2update: f[1].header.update(kw, kw2update[kw]) + + + f.close() def getNrefchip(fobj): |