summaryrefslogtreecommitdiff
path: root/hstwcs/dgeo.py
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2009-03-10 11:28:53 -0400
committerdencheva <dencheva@stsci.edu>2009-03-10 11:28:53 -0400
commit87eb2614fd87d76ce5f5f9888fb8d247036ae87c (patch)
tree2476c321e7f5272769e515d12830e70e41590621 /hstwcs/dgeo.py
parentf78ec472ac0f6c7f6cd7eac99883ad73d28f1675 (diff)
downloadstwcs_hcf-87eb2614fd87d76ce5f5f9888fb8d247036ae87c.tar.gz
The DGEO files were defined to be used after the IDC polynomial coefficients. To use them with SIP coefficients the first order IDC coefficients should be backed out of the DGEO data by multiplying with the inverse of the scaled cd matrix. The scaling of the cd matrix was done incorrectly - fixed in this revision.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7732 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'hstwcs/dgeo.py')
-rw-r--r--hstwcs/dgeo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hstwcs/dgeo.py b/hstwcs/dgeo.py
index 70e6a98..4ab9079 100644
--- a/hstwcs/dgeo.py
+++ b/hstwcs/dgeo.py
@@ -149,7 +149,7 @@ class DGEOCorr(object):
"""
coeffs = cls.getCoeffs(header)
idcscale = header['IDCSCALE']
- sclcoeffs = numpy.linalg.inv(coeffs)/idcscale
+ sclcoeffs = numpy.linalg.inv(coeffs/idcscale)
ndx, ndy = numpy.dot(sclcoeffs, [dx.ravel(), dy.ravel()])
ndx.shape = dx.shape
ndy.shape=dy.shape