From 7d454d26157320effa121b8c57df225a479439e1 Mon Sep 17 00:00:00 2001 From: dencheva Date: Mon, 27 Jul 2009 17:55:37 +0000 Subject: Removed code related to d2im correction. Changed the type of CDELT to be float. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@8162 fe389314-cf27-0410-b35b-8c050e845b92 --- updatewcs/dgeo.py | 4 ++-- wcsutil/__init__.py | 14 ++------------ 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. -- cgit