diff options
author | dencheva <dencheva@stsci.edu> | 2011-02-28 14:07:39 -0500 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2011-02-28 14:07:39 -0500 |
commit | d2cb30f106bb150c0f179d6636d8a61e41acb67e (patch) | |
tree | db236be78678da3eecfc94f8899a7b6aa3d38aac | |
parent | b20ff6909a696b14a0cc22f0af43722d21e440bb (diff) | |
download | stwcs_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
-rw-r--r-- | wcsutil/hstwcs.py | 5 |
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) |