summaryrefslogtreecommitdiff
path: root/updatewcs/makewcs.py
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2010-07-14 16:33:07 -0400
committerdencheva <dencheva@stsci.edu>2010-07-14 16:33:07 -0400
commitb1c0cae4cb1d23e69228ecb1da96dd8ac359c23d (patch)
tree18cabd15bfdf0d322524c630751c9843a76da93c /updatewcs/makewcs.py
parent36281d4b8086a8488c113aaffaa9919c94573a6b (diff)
downloadstwcs_hcf-b1c0cae4cb1d23e69228ecb1da96dd8ac359c23d.tar.gz
Pywcs was changed not to set the WCS values for a default object (header is None) and these are the corresponing changes in wcsutil.And some other minor bug fixes.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@9839 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'updatewcs/makewcs.py')
-rw-r--r--updatewcs/makewcs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/updatewcs/makewcs.py b/updatewcs/makewcs.py
index b455640..77c8aa9 100644
--- a/updatewcs/makewcs.py
+++ b/updatewcs/makewcs.py
@@ -82,9 +82,9 @@ class MakeWCS(object):
off = sqrt((v2-v2ref)**2 + (v3-v3ref)**2)/(R_scale*3600.0)
if v3 == v3ref:
- theta=0.0
+ theta=0.0
else:
- theta = atan2(ext_wcs.parity[0][0]*(v2-v2ref), ext_wcs.parity[1][1]*(v3-v3ref))
+ theta = atan2(ext_wcs.parity[0][0]*(v2-v2ref), ext_wcs.parity[1][1]*(v3-v3ref))
if ref_wcs.idcmodel.refpix['THETA']: theta += ref_wcs.idcmodel.refpix['THETA']*pi/180.0
@@ -106,9 +106,9 @@ class MakeWCS(object):
# Account for subarray offset
# Angle of chip relative to chip
if ext_wcs.idcmodel.refpix['THETA']:
- dtheta = ext_wcs.idcmodel.refpix['THETA'] - ref_wcs.idcmodel.refpix['THETA']
+ dtheta = ext_wcs.idcmodel.refpix['THETA'] - ref_wcs.idcmodel.refpix['THETA']
else:
- dtheta = 0.0
+ dtheta = 0.0
rrmat = fileutil.buildRotMatrix(dtheta)
# Rotate the vectors