diff options
author | dencheva <dencheva@stsci.edu> | 2009-03-17 16:35:57 -0400 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2009-03-17 16:35:57 -0400 |
commit | 0bc834376d0e7cb66c1b7f5e27d14402b84235d9 (patch) | |
tree | a2c8d2c80b33c79d7da2d872dabe22a89f24cbca /wcsutil/__init__.py | |
parent | 2f388a86de97f76640063aa521389bdd5ddf2ee6 (diff) | |
download | stwcs_hcf-0bc834376d0e7cb66c1b7f5e27d14402b84235d9.tar.gz |
Added code which populates the science file with information about detector to image correction - header keywords and a lookup table extension. Cleaned coed.
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/updatewcs@7770 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'wcsutil/__init__.py')
-rw-r--r-- | wcsutil/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wcsutil/__init__.py b/wcsutil/__init__.py index 894abad..05790f8 100644 --- a/wcsutil/__init__.py +++ b/wcsutil/__init__.py @@ -224,28 +224,28 @@ class HSTWCS(WCS): def all_pix2sky(self, *args, **kwargs): origin = self.get_origin(*args) - if self.det2imfile != None: + if self.det2imext != None: return WCS.all_pix2sky(self, self.det2im(*args),origin ) else: return WCS.all_pix2sky(self, *args) def pix2foc(self, *args, **kwargs): origin = self.get_origin(*args) - if self.det2imfile != None: + if self.det2imext != None: return WCS.pix2foc(self, self.det2im(*args), origin) else: return WCS.pix2foc(self, *args) def p4_pix2foc(self, *args, **kwargs): origin = self.get_origin(*args) - if self.det2imfile != None: + if self.det2imext != None: return WCS.p4_pix2foc(self, self.det2im(*args), origin) else: return WCS.p4_pix2foc(self, *args) def wcs_pix2sky(self, *args, **kwargs): origin = self.get_origin(*args) - if self.det2imfile != None: + if self.det2imext != None: return WCS.wcs_pix2sky(self, self.det2im(*args), origin) else: return WCS.wcs_pix2sky(self, *args) |