From a4081a38404b8759a185638fb49687c196153464 Mon Sep 17 00:00:00 2001 From: dencheva Date: Mon, 28 Apr 2014 19:44:02 +0000 Subject: 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 --- lib/stwcs/updatewcs/npol.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/stwcs/updatewcs/npol.py') 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', -- cgit