From 9a4d14dd4842aa052251793681a2870e88aa5e94 Mon Sep 17 00:00:00 2001 From: dencheva Date: Tue, 16 Dec 2008 16:59:36 +0000 Subject: 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 --- wcsutil/instruments.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'wcsutil/instruments.py') 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) -- cgit