From b1c0cae4cb1d23e69228ecb1da96dd8ac359c23d Mon Sep 17 00:00:00 2001 From: dencheva Date: Wed, 14 Jul 2010 20:33:07 +0000 Subject: Pywcs was changed not to set the WCS values for a default object (header is None) and these are the corresponing changes in wcsutil.And some other minor bug fixes. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@9839 fe389314-cf27-0410-b35b-8c050e845b92 --- updatewcs/corrections.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'updatewcs/corrections.py') diff --git a/updatewcs/corrections.py b/updatewcs/corrections.py index fa0a290..3d504ca 100644 --- a/updatewcs/corrections.py +++ b/updatewcs/corrections.py @@ -168,8 +168,8 @@ class CompSIP(object): if n >= m and n>=2: idcval = np.array([[cx[n,m]],[cy[n,m]]]) sipval = np.dot(imatr, idcval) - akeys1[m,n-m] = sipval[0] - bkeys1[m,n-m] = sipval[1] + akeys1[m,n-m] = sipval[0] * ext_wcs.binned + bkeys1[m,n-m] = sipval[1] * ext_wcs.binned Akey="A_%d_%d" % (m,n-m) Bkey="B_%d_%d" % (m,n-m) kw2update[Akey] = sipval[0,0] -- cgit