summaryrefslogtreecommitdiff
path: root/hstwcs/dgeo.py
diff options
context:
space:
mode:
Diffstat (limited to 'hstwcs/dgeo.py')
-rw-r--r--hstwcs/dgeo.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/hstwcs/dgeo.py b/hstwcs/dgeo.py
index d6313d7..00178d9 100644
--- a/hstwcs/dgeo.py
+++ b/hstwcs/dgeo.py
@@ -1,7 +1,6 @@
import pyfits
from pytools import fileutil
-#from hstwcs.mappings import dgeo_vals
-import numpy
+import numpy as np
class DGEOCorr(object):
"""
@@ -148,8 +147,8 @@ class DGEOCorr(object):
"""
coeffs = cls.getCoeffs(header)
idcscale = header['IDCSCALE']
- sclcoeffs = numpy.linalg.inv(coeffs/idcscale)
- ndx, ndy = numpy.dot(sclcoeffs, [dx.ravel(), dy.ravel()])
+ sclcoeffs = np.linalg.inv(coeffs/idcscale)
+ ndx, ndy = np.dot(sclcoeffs, [dx.ravel(), dy.ravel()])
ndx.shape = dx.shape
ndy.shape=dy.shape
return ndx, ndy
@@ -168,7 +167,7 @@ class DGEOCorr(object):
print 'First order IDCTAB coefficients are not available.\n'
print 'Cannot convert SIP to IDC coefficients.\n'
return None
- return numpy.array([[ocx11, ocx10], [ocy11,ocy10]], dtype=numpy.float32)
+ return np.array([[ocx11, ocx10], [ocy11,ocy10]], dtype=np.float32)
getCoeffs = classmethod(getCoeffs)