diff options
author | dencheva <dencheva@stsci.edu> | 2014-04-24 15:28:34 -0400 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2014-04-24 15:28:34 -0400 |
commit | d7256629cc01af99cb5e3be70a64000f6d2fb0dc (patch) | |
tree | 659e429c5f8a088044f1bd8e8f48ecbf0ee21c34 /lib/stwcs/distortion/utils.py | |
parent | 63e6e5aa0d7ebca70489d03573bb122bfb11c788 (diff) | |
download | stwcs_hcf-d7256629cc01af99cb5e3be70a64000f6d2fb0dc.tar.gz |
port changes from astropy.wcs - naxis1/2 are private now.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31128 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'lib/stwcs/distortion/utils.py')
-rw-r--r-- | lib/stwcs/distortion/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/stwcs/distortion/utils.py b/lib/stwcs/distortion/utils.py index 6cff569..234b69d 100644 --- a/lib/stwcs/distortion/utils.py +++ b/lib/stwcs/distortion/utils.py @@ -49,9 +49,9 @@ def output_wcs(list_of_wcsobj, ref_wcs=None, owcs=None, undistort=True): tanpix = outwcs.wcs.s2p(fra_dec, 0)['pixcrd'] - outwcs.naxis1 = int(np.ceil(tanpix[:,0].max() - tanpix[:,0].min())) - outwcs.naxis2 = int(np.ceil(tanpix[:,1].max() - tanpix[:,1].min())) - crpix = np.array([outwcs.naxis1/2., outwcs.naxis2/2.], dtype=np.float64) + outwcs._naxis1 = int(np.ceil(tanpix[:,0].max() - tanpix[:,0].min())) + outwcs._naxis2 = int(np.ceil(tanpix[:,1].max() - tanpix[:,1].min())) + crpix = np.array([outwcs._naxis1/2., outwcs._naxis2/2.], dtype=np.float64) outwcs.wcs.crpix = crpix outwcs.wcs.set() tanpix = outwcs.wcs.s2p(fra_dec, 0)['pixcrd'] |