diff options
author | dencheva <dencheva@stsci.edu> | 2009-04-28 17:07:43 -0400 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2009-04-28 17:07:43 -0400 |
commit | 3b873f14d1ec709fe6df3ab053ecff3f363c7510 (patch) | |
tree | 4627d70f41ade03c3eafbe6a580be9847080f78e /hstwcs/__init__.py | |
parent | 9b7a13403e5ba2039a0f66682ad609d9fb2c685b (diff) | |
download | stwcs_hcf-3b873f14d1ec709fe6df3ab053ecff3f363c7510.tar.gz |
These changes allow the HSTWCS object ot be used for transformations and when updating the headers
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7974 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'hstwcs/__init__.py')
-rw-r--r-- | hstwcs/__init__.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/hstwcs/__init__.py b/hstwcs/__init__.py index 7de38fe..bf47cdc 100644 --- a/hstwcs/__init__.py +++ b/hstwcs/__init__.py @@ -81,11 +81,8 @@ def makecorr(fname, allowed_corr): utils.write_archive(f[nrefext].header) if 'DET2IMCorr' in allowed_corr: - kw2update = det2im.DET2IMCorr.updateWCS(f) - for kw in kw2update: - #these kw are written to the primary header - f[0].header.update(kw, kw2update[kw]) - + det2im.DET2IMCorr.updateWCS(f) + for i in range(len(f))[1:]: # Perhaps all ext headers should be corrected (to be consistent) extn = f[i] |