summaryrefslogtreecommitdiff
path: root/lib/stwcs/wcsutil/hstwcs.py
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2014-04-28 15:44:02 -0400
committerdencheva <dencheva@stsci.edu>2014-04-28 15:44:02 -0400
commita4081a38404b8759a185638fb49687c196153464 (patch)
tree8313dd70d6493dae50854a1ffb19b68c7b3d8520 /lib/stwcs/wcsutil/hstwcs.py
parentd7256629cc01af99cb5e3be70a64000f6d2fb0dc (diff)
downloadstwcs_hcf-a4081a38404b8759a185638fb49687c196153464.tar.gz
changes to use astropy instead of pyfits and pywcs
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@31240 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'lib/stwcs/wcsutil/hstwcs.py')
-rw-r--r--lib/stwcs/wcsutil/hstwcs.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/stwcs/wcsutil/hstwcs.py b/lib/stwcs/wcsutil/hstwcs.py
index 36e1de4..4bd6eb0 100644
--- a/lib/stwcs/wcsutil/hstwcs.py
+++ b/lib/stwcs/wcsutil/hstwcs.py
@@ -1,8 +1,10 @@
from __future__ import division # confidence high
import os
-from pywcs import WCS
-import pyfits
+#from pywcs import WCS
+from astropy.wcs import WCS
+from astropy.io import fits as pyfits
+#import pyfits
import instruments
from stwcs.distortion import models, coeff_converter
import altwcs
@@ -929,7 +931,6 @@ adaptive=False, detect_divergence=False, quiet=False)
else:
return np.dstack( [x, y] )[0]
-
def _updatehdr(self, ext_hdr):
#kw2add : OCX10, OCX11, OCY10, OCY11
# record the model in the header for use by pydrizzle