From 138b356640950d751f92570ba58a8ebc2ca6667e Mon Sep 17 00:00:00 2001 From: dencheva Date: Tue, 16 Dec 2008 15:57:48 +0000 Subject: -Added SIP correction to look up tables -Changed CTYPE to reflect the use of SIP - mappings module was moved to wcsutil git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@7381 fe389314-cf27-0410-b35b-8c050e845b92 --- wcsutil/instruments.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'wcsutil/instruments.py') diff --git a/wcsutil/instruments.py b/wcsutil/instruments.py index e2c2b0b..092597c 100644 --- a/wcsutil/instruments.py +++ b/wcsutil/instruments.py @@ -1,7 +1,7 @@ import pyfits import numpy as N #from .. mappings import ins_spec_kw -from hstwcs.mappings import ins_spec_kw, prim_hdr_kw +from mappings import ins_spec_kw, prim_hdr_kw class InstrWCS(object): """ @@ -29,6 +29,7 @@ class InstrWCS(object): self.set_binned() self.set_chip() self.set_parity() + self.set_extver() def set_filter1(self): try: @@ -77,7 +78,13 @@ class InstrWCS(object): self.chip = self.exthdr.get('CCDCHIP', 1) 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]] -- cgit