From 67a20f05cc159df68639337256595ca838a4427c Mon Sep 17 00:00:00 2001 From: dencheva Date: Mon, 13 Dec 2010 20:45:48 +0000 Subject: Initial fix for #637, will change this later. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11373 fe389314-cf27-0410-b35b-8c050e845b92 --- updatewcs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'updatewcs/__init__.py') diff --git a/updatewcs/__init__.py b/updatewcs/__init__.py index e820140..46d7267 100644 --- a/updatewcs/__init__.py +++ b/updatewcs/__init__.py @@ -198,7 +198,7 @@ def copyWCS(w, hdr, wkey, wname): if w.wcs.has_cd(): wcsutil.pc2cd(hwcs) for k in hwcs.keys(): - key = k+wkey + key = k[:7] + wkey hdr.update(key=key, value=hwcs[k]) norient = np.rad2deg(np.arctan2(hwcs['CD1_2'],hwcs['CD2_2'])) okey = 'ORIENT%s' % wkey -- cgit