summaryrefslogtreecommitdiff
path: root/wcsutil/hstwcs.py
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2011-02-28 14:07:39 -0500
committerdencheva <dencheva@stsci.edu>2011-02-28 14:07:39 -0500
commitd2cb30f106bb150c0f179d6636d8a61e41acb67e (patch)
treedb236be78678da3eecfc94f8899a7b6aa3d38aac /wcsutil/hstwcs.py
parentb20ff6909a696b14a0cc22f0af43722d21e440bb (diff)
downloadstwcs_hcf-d2cb30f106bb150c0f179d6636d8a61e41acb67e.tar.gz
wcslib.wcsini populates the WCS struct which includes 'RESTFRQ' and 'RESTWAV'. Remove them when writing it to headerhstwcs.py
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@12057 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'wcsutil/hstwcs.py')
-rw-r--r--wcsutil/hstwcs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/wcsutil/hstwcs.py b/wcsutil/hstwcs.py
index 5fe2690..397c9ae 100644
--- a/wcsutil/hstwcs.py
+++ b/wcsutil/hstwcs.py
@@ -260,6 +260,11 @@ class HSTWCS(WCS):
h.ascard.extend(self._idc2hdr())
+ try:
+ del h.ascard['RESTFRQ']
+ del h.ascard['RESTWAV']
+ except KeyError: pass
+
if sip2hdr and self.sip:
cards = self._sip2hdr('a')
h.ascard.extend(cards)