summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)