summaryrefslogtreecommitdiff
path: root/hstwcs/makewcs.py
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2009-02-05 13:13:57 -0500
committerdencheva <dencheva@stsci.edu>2009-02-05 13:13:57 -0500
commitcc6eb9ab94b41a2f5ab513d21971bc6bfaa036c4 (patch)
tree8d6d9cf46f663745f631d497e46dc40558774c47 /hstwcs/makewcs.py
parent0c06bf709697cfb06ed400a6e4d4d26112e4b3a9 (diff)
downloadstwcs_hcf-cc6eb9ab94b41a2f5ab513d21971bc6bfaa036c4.tar.gz
Added verison numbers and 'origin' kw to pywcs calls
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7523 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'hstwcs/makewcs.py')
-rw-r--r--hstwcs/makewcs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/hstwcs/makewcs.py b/hstwcs/makewcs.py
index d016583..650d251 100644
--- a/hstwcs/makewcs.py
+++ b/hstwcs/makewcs.py
@@ -93,7 +93,7 @@ class MakeWCS(object):
dY=(off*cos(theta)) + offshifty
px = numpy.array([[dX,dY]])
- newcrval = ref_wcs.wcs.p2s_fits(px)['world'][0]
+ newcrval = ref_wcs.wcs.p2s(px, 1)['world'][0]
newcrpix = numpy.array([ext_wcs.idcmodel.refpix['XREF'] + ltvoffx,
ext_wcs.idcmodel.refpix['YREF'] + ltvoffy])
ext_wcs.wcs.crval = newcrval
@@ -116,7 +116,7 @@ class MakeWCS(object):
# Rotate the vectors
dxy = numpy.dot(rrmat, delmat)
- wc = ref_wcs.wcs.p2s_fits(px + dxy)['world']
+ wc = ref_wcs.wcs.p2s((px + dxy), 1)['world']
# Calculate the new CDs and convert to degrees
cd11 = utils.diff_angles(wc[0,0],newcrval[0])*cos(newcrval[1]*pi/180.0)
@@ -143,7 +143,7 @@ class MakeWCS(object):
rref = numpy.array([[ref_wcs.idcmodel.refpix['XREF']+ltvoffx ,
ref_wcs.idcmodel.refpix['YREF']+ltvoffy]])
- crval = ref_wcs.wcs.p2s_fits(rref)['world'][0]
+ crval = ref_wcs.wcs.p2s(rref, 1)['world'][0]
# Convert the PA_V3 orientation to the orientation at the aperture
# This is for the reference chip only - we use this for the
# reference tangent plane definition