From d2cb30f106bb150c0f179d6636d8a61e41acb67e Mon Sep 17 00:00:00 2001 From: dencheva Date: Mon, 28 Feb 2011 19:07:39 +0000 Subject: 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 --- wcsutil/hstwcs.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'wcsutil/hstwcs.py') 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) -- cgit