summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--updatewcs/dgeo.py4
-rw-r--r--wcsutil/__init__.py14
2 files changed, 4 insertions, 14 deletions
diff --git a/updatewcs/dgeo.py b/updatewcs/dgeo.py
index 00178d9..e50725d 100644
--- a/updatewcs/dgeo.py
+++ b/updatewcs/dgeo.py
@@ -197,8 +197,8 @@ class DGEOCorr(object):
extver = dgeo_header['extver']
crpix1 = naxis1/2.
crpix2 = naxis2/2.
- cdelt1 = sci_naxis1/naxis1
- cdelt2 = sci_naxis2/naxis2
+ cdelt1 = float(sci_naxis1)/naxis1
+ cdelt2 = float(sci_naxis2)/naxis2
crval1 = sci_crpix1
crval2 = sci_crpix2
keys = ['XTENSION','BITPIX','NAXIS','NAXIS1','NAXIS2',
diff --git a/wcsutil/__init__.py b/wcsutil/__init__.py
index fe2e8c8..a275a18 100644
--- a/wcsutil/__init__.py
+++ b/wcsutil/__init__.py
@@ -119,8 +119,6 @@ class HSTWCS(WCS):
self.dec_targ = primhdr.get('DEC_TARG', None)
self.det2imfile = primhdr.get('D2IMFILE', None)
self.det2imext = ehdr.get('D2IMEXT', None)
- self.axiscorr = primhdr.get('AXISCORR', None)
- self.d2imerr = primhdr.get('D2IMERR', 0.0)
try:
self.pav3 = primhdr['PA_V3']
@@ -226,16 +224,8 @@ class HSTWCS(WCS):
return
else:
self.updatehdr(header)
-
- def get_origin(self, *args):
- # Parse the arguments to get the origin of the
- #transformation: 0 or 1
- if len(args) == 2:
- return args[1]
- elif len(args) == 3:
- return args[2]
- raise TypeError("Expected 2 or 3 arguments, %d given" % len(args))
-
+
+
def restore(self, header=None):
"""
Restore a WCS archive in memory and update the WCS object.