diff options
author | dencheva <dencheva@stsci.edu> | 2008-10-22 11:09:18 -0400 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2008-10-22 11:09:18 -0400 |
commit | f0d0edf3c0778abbd1f56ab172ca3eb7daa5c11a (patch) | |
tree | 625cd2cc7dde83ddd7b3410896082eb3e96ccf39 /updatewcs/__init__.py | |
parent | b003de463c45950a475892c8f5316c2f13a7536f (diff) | |
download | stwcs_hcf-f0d0edf3c0778abbd1f56ab172ca3eb7daa5c11a.tar.gz |
Many changes to match the changes in pywcs.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@7189 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'updatewcs/__init__.py')
-rw-r--r-- | updatewcs/__init__.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/updatewcs/__init__.py b/updatewcs/__init__.py index 107a9f5..2f77949 100644 --- a/updatewcs/__init__.py +++ b/updatewcs/__init__.py @@ -99,15 +99,15 @@ def makecorr(fname, allowed_corr): for extn in f: # Perhaps all ext headers should be corrected (to be consistent) if extn.header.has_key('extname') and extn.header['extname'].lower() == 'sci': - refwcs = HSTWCS(primhdr, ref_hdr, fobj=f) - refwcs.readModel(ref_hdr) + ref_wcs = HSTWCS(primhdr, ref_hdr, fobj=f) + ref_wcs.readModel(ref_hdr) hdr = extn.header - owcs = HSTWCS(primhdr, hdr, fobj=f) + ext_wcs = HSTWCS(primhdr, hdr, fobj=f) utils.write_archive(hdr) - owcs.readModel(hdr) + ext_wcs.readModel(hdr) for c in allowed_corr: corr_klass = corrections.__getattribute__(c) - kw2update = corr_klass.updateWCS(owcs, refwcs) + kw2update = corr_klass.updateWCS(ext_wcs, ref_wcs) for kw in kw2update: hdr.update(kw, kw2update[kw]) |