summaryrefslogtreecommitdiff
path: root/wcsutil/instruments.py
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2008-12-16 11:59:36 -0500
committerdencheva <dencheva@stsci.edu>2008-12-16 11:59:36 -0500
commit9a4d14dd4842aa052251793681a2870e88aa5e94 (patch)
tree37aa0b0e3c6b0257f7e0eae57d4e10c7655e801c /wcsutil/instruments.py
parent138b356640950d751f92570ba58a8ebc2ca6667e (diff)
downloadstwcs_hcf-9a4d14dd4842aa052251793681a2870e88aa5e94.tar.gz
Added logic to handle the 'DETECTOR' kw
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@7382 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'wcsutil/instruments.py')
-rw-r--r--wcsutil/instruments.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/wcsutil/instruments.py b/wcsutil/instruments.py
index 092597c..d0ace1c 100644
--- a/wcsutil/instruments.py
+++ b/wcsutil/instruments.py
@@ -29,7 +29,7 @@ class InstrWCS(object):
self.set_binned()
self.set_chip()
self.set_parity()
- self.set_extver()
+ self.set_detector()
def set_filter1(self):
try:
@@ -79,14 +79,13 @@ class InstrWCS(object):
except:
self.chip = 1
- def set_extver(self):
- try:
- self.extver = self.exthdr.get('EXTVER', 1)
- except:
- self.extver = 1
-
def set_parity(self):
self.parity = [[1.0,0.0],[0.0,-1.0]]
+
+ def set_detector(self):
+ # each instrument has a different kw for detector and it can be
+ # in a different header, so this is to be handled by the instrument classes
+ pass
class ACSWCS(InstrWCS):
"""
@@ -146,4 +145,5 @@ class WFPC2WCS(InstrWCS):
def set_parity(self):
self.parity = [[-1.0,0.],[0.,1.0]]
-
+ def set_detector(self):
+ self.detector = self.exthdr.get('DETECTOR', None)