diff options
author | dencheva <dencheva@stsci.edu> | 2010-07-14 16:33:07 -0400 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2010-07-14 16:33:07 -0400 |
commit | b1c0cae4cb1d23e69228ecb1da96dd8ac359c23d (patch) | |
tree | 18cabd15bfdf0d322524c630751c9843a76da93c /updatewcs/makewcs.py | |
parent | 36281d4b8086a8488c113aaffaa9919c94573a6b (diff) | |
download | stwcs_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.py | 8 |
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 |