diff options
author | dencheva <dencheva@stsci.edu> | 2008-12-08 15:20:46 -0500 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2008-12-08 15:20:46 -0500 |
commit | 23218fbd8a0cd9f0c3f1e4ba737bb0ef1235ed05 (patch) | |
tree | 19c01752c9fb4f316f61e0217515f53acf32d6ca /distortion/utils.py | |
parent | 43742ab5668909e1cc8f459ef3db22c8b9be31bb (diff) | |
download | stwcs_hcf-23218fbd8a0cd9f0c3f1e4ba737bb0ef1235ed05.tar.gz |
Fixed a sign error.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@7341 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'distortion/utils.py')
-rw-r--r-- | distortion/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/distortion/utils.py b/distortion/utils.py index be1f65e..218c6bf 100644 --- a/distortion/utils.py +++ b/distortion/utils.py @@ -34,7 +34,7 @@ def output_wcs(list_of_wcsobj, ref_wcs=None, outwcs=None): outwcs.wcs.crpix = crpix tanpix = outwcs.wcs.s2p(fra_dec)['pixcrd'] - newcrpix = np.array([crpix[0]-np.ceil(tanpix[:,0].min()), crpix[1]-np.ceil(tanpix[:,1].min())]) + newcrpix = np.array([crpix[0]+np.ceil(tanpix[:,0].min()), crpix[1]+np.ceil(tanpix[:,1].min())]) newcrval = outwcs.wcs.p2s([newcrpix])['world'][0] outwcs.wcs.crval = newcrval return outwcs |