summaryrefslogtreecommitdiff
path: root/lib/stwcs/distortion/utils.py
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2014-04-24 15:28:34 -0400
committerdencheva <dencheva@stsci.edu>2014-04-24 15:28:34 -0400
commitd7256629cc01af99cb5e3be70a64000f6d2fb0dc (patch)
tree659e429c5f8a088044f1bd8e8f48ecbf0ee21c34 /lib/stwcs/distortion/utils.py
parent63e6e5aa0d7ebca70489d03573bb122bfb11c788 (diff)
downloadstwcs_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.py6
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']