From 87eb2614fd87d76ce5f5f9888fb8d247036ae87c Mon Sep 17 00:00:00 2001 From: dencheva Date: Tue, 10 Mar 2009 15:28:53 +0000 Subject: 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 --- hstwcs/dgeo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hstwcs/dgeo.py') 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 -- cgit