diff options
author | dencheva <dencheva@stsci.edu> | 2010-07-14 16:33:07 -0400 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2010-07-14 16:33:07 -0400 |
commit | b1c0cae4cb1d23e69228ecb1da96dd8ac359c23d (patch) | |
tree | 18cabd15bfdf0d322524c630751c9843a76da93c /updatewcs/corrections.py | |
parent | 36281d4b8086a8488c113aaffaa9919c94573a6b (diff) | |
download | stwcs_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.py | 4 |
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] |