diff options
author | dencheva <dencheva@stsci.edu> | 2010-07-16 13:35:53 -0400 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2010-07-16 13:35:53 -0400 |
commit | 187f9d9598db3a44a1a24a43aef2dbb393cd4bbf (patch) | |
tree | ce9e4c99511f8b9bdc2e4eadfe6f6ca14491a7b3 /updatewcs/corrections.py | |
parent | cfb8e3b4a7e20ed97a6566e11352d8948f33d9b7 (diff) | |
download | stwcs_hcf-187f9d9598db3a44a1a24a43aef2dbb393cd4bbf.tar.gz |
Should call repr instead of str which inserts \n
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@9877 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'updatewcs/corrections.py')
-rw-r--r-- | updatewcs/corrections.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/updatewcs/corrections.py b/updatewcs/corrections.py index c616e91..fea44c1 100644 --- a/updatewcs/corrections.py +++ b/updatewcs/corrections.py @@ -172,12 +172,12 @@ 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] * ext_wcs.binned - bkeys1[m,n-m] = sipval[1] * ext_wcs.binned + akeys1[m,n-m] = sipval[0] + bkeys1[m,n-m] = sipval[1] Akey="A_%d_%d" % (m,n-m) Bkey="B_%d_%d" % (m,n-m) - kw2update[Akey] = sipval[0,0] - kw2update[Bkey] = sipval[1,0] + kw2update[Akey] = sipval[0,0] * ext_wcs.binned + kw2update[Bkey] = sipval[1,0] * ext_wcs.binned kw2update['CTYPE1'] = 'RA---TAN-SIP' kw2update['CTYPE2'] = 'DEC--TAN-SIP' return kw2update |