summaryrefslogtreecommitdiff
path: root/updatewcs/corrections.py
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2010-07-14 16:33:07 -0400
committerdencheva <dencheva@stsci.edu>2010-07-14 16:33:07 -0400
commitb1c0cae4cb1d23e69228ecb1da96dd8ac359c23d (patch)
tree18cabd15bfdf0d322524c630751c9843a76da93c /updatewcs/corrections.py
parent36281d4b8086a8488c113aaffaa9919c94573a6b (diff)
downloadstwcs_hcf-b1c0cae4cb1d23e69228ecb1da96dd8ac359c23d.tar.gz
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
Diffstat (limited to 'updatewcs/corrections.py')
-rw-r--r--updatewcs/corrections.py4
1 files changed, 2 insertions, 2 deletions
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]