summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2010-09-22 15:04:50 -0400
committerdencheva <dencheva@stsci.edu>2010-09-22 15:04:50 -0400
commit30d6c3d87b33940c8319fa53dd7cf2838706fb87 (patch)
tree67b4f3f081660f4d07dc26c483874a642a9862e1
parent5adec7028d59df487cf973d2baac6022a1607f33 (diff)
downloadstwcs_hcf-30d6c3d87b33940c8319fa53dd7cf2838706fb87.tar.gz
Corrected a mistake in previous checkin
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10373 fe389314-cf27-0410-b35b-8c050e845b92
-rw-r--r--wcsutil/altwcs.py1
-rw-r--r--wcsutil/hstwcs.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/wcsutil/altwcs.py b/wcsutil/altwcs.py
index 2c33902..3edac82 100644
--- a/wcsutil/altwcs.py
+++ b/wcsutil/altwcs.py
@@ -98,7 +98,6 @@ def archiveWCS(fname, wcskey=" ", wcsname=" ", ext=None, clobber=False):
wname = wcsname
wkey = wcskey
wname = wcsname
- print 'in archivewcs wkey, wname', wkey, wname
for e in exts:
w = pywcs.WCS(f[e].header, fobj=f)
hwcs = w.to_header()
diff --git a/wcsutil/hstwcs.py b/wcsutil/hstwcs.py
index e543550..8f3a96f 100644
--- a/wcsutil/hstwcs.py
+++ b/wcsutil/hstwcs.py
@@ -268,7 +268,7 @@ class HSTWCS(WCS):
"""
h = self.to_header()
if self.wcs.has_cd():
- h = pc2cd(h)
+ h = altwcs.pc2cd(h)
if sip2hdr:
hwcs = h.ascardlist()