summaryrefslogtreecommitdiff
path: root/wcsutil/instruments.py
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2008-12-16 10:57:48 -0500
committerdencheva <dencheva@stsci.edu>2008-12-16 10:57:48 -0500
commit138b356640950d751f92570ba58a8ebc2ca6667e (patch)
tree1721e5d5693cb8db961c0dce9243f0e4b157647e /wcsutil/instruments.py
parentd8180f17a14e755c66990baa98f7a593ee8d2ce3 (diff)
downloadstwcs_hcf-138b356640950d751f92570ba58a8ebc2ca6667e.tar.gz
-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
Diffstat (limited to 'wcsutil/instruments.py')
-rw-r--r--wcsutil/instruments.py11
1 files changed, 9 insertions, 2 deletions
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]]