diff options
author | dencheva <dencheva@stsci.edu> | 2014-04-28 15:44:02 -0400 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2014-04-28 15:44:02 -0400 |
commit | a4081a38404b8759a185638fb49687c196153464 (patch) | |
tree | 8313dd70d6493dae50854a1ffb19b68c7b3d8520 /lib/stwcs/updatewcs/npol.py | |
parent | d7256629cc01af99cb5e3be70a64000f6d2fb0dc (diff) | |
download | stwcs_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/updatewcs/npol.py')
-rw-r--r-- | lib/stwcs/updatewcs/npol.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/stwcs/updatewcs/npol.py b/lib/stwcs/updatewcs/npol.py index cebaa8e..9346439 100644 --- a/lib/stwcs/updatewcs/npol.py +++ b/lib/stwcs/updatewcs/npol.py @@ -1,6 +1,6 @@ from __future__ import division # confidence high -import pyfits +from astropy.io import fits as pyfits from stsci.tools import fileutil import utils import numpy as np @@ -83,7 +83,7 @@ class NPOLCorr(object): if idccoeffs != None: dx, dy = cls.transformData(dx,dy, idccoeffs) - # Determine EXTVER for the WCSDVARR extension from the + # Determine EXTVER for the WCSDVARR extension from the # NPL file (EXTNAME, EXTVER) kw. # This is used to populate DPj.EXTVER kw wcsdvarr_x_version = 2 * extversion -1 @@ -276,8 +276,8 @@ class NPOLCorr(object): sciheader.get('LTM'+si+'_'+si, 1) kw_val1['CRPIX'+si] = npol_header.get('CRPIX'+si, 0.0) kw_val1['CRVAL'+si] = (npol_header.get('CRVAL'+si, 0.0) - \ - sciheader.get('LTV'+str(i), 0)) - + sciheader.get('LTV'+str(i), 0)) + kw_comm0 = {'XTENSION': 'Image extension', 'BITPIX': 'IEEE floating point', 'NAXIS': 'Number of axes', |