diff options
author | hack <hack@stsci.edu> | 2014-10-06 16:20:47 -0400 |
---|---|---|
committer | hack <hack@stsci.edu> | 2014-10-06 16:20:47 -0400 |
commit | ce0b790f0d19bb1b85328ee64f83a67f5a9905f5 (patch) | |
tree | 3026e5921453432407ded5043814ae8f4ef47077 /lib/stwcs/wcsutil/altwcs.py | |
parent | bd432a46967bb359c3a6dc5b0430436c24ff0696 (diff) | |
download | stwcs_hcf-ce0b790f0d19bb1b85328ee64f83a67f5a9905f5.tar.gz |
update to STWCS code to handle additional TDD coefficient for ACS: specifically, TDD_CXA* and TDD_CXB*.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@34759 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'lib/stwcs/wcsutil/altwcs.py')
-rw-r--r-- | lib/stwcs/wcsutil/altwcs.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/stwcs/wcsutil/altwcs.py b/lib/stwcs/wcsutil/altwcs.py index bdb9b3b..6a2ddbd 100644 --- a/lib/stwcs/wcsutil/altwcs.py +++ b/lib/stwcs/wcsutil/altwcs.py @@ -350,8 +350,7 @@ def deleteWCS(fname, ext, wcskey=" ", wcsname=" "): if hwcs is None: continue for k in hwcs.keys(): - if k in hdr: - del hdr[k] + del hdr[k] #del hdr['ORIENT'+wkey] prexts.append(i) if prexts != []: @@ -434,7 +433,7 @@ def _restore(fobj, ukey, fromextnum, norient = np.rad2deg(np.arctan2(hwcs['CD1_2'+'%s' %ukey], hwcs['CD2_2'+'%s' %ukey])) fobj[toextension].header['ORIENTAT'] = norient # Reset 2014 TDD keywords prior to computing new values (if any are computed) - for kw in ['TDD_CYA','TDD_CYB']: + for kw in ['TDD_CYA','TDD_CYB','TDD_CXA','TDD_CXB']: if kw in fobj[toextension].header: fobj[toextension].header[kw] = 0.0 |