From 2314b5d0cf8aac5cd979700d200cd15ca9f1a0cb Mon Sep 17 00:00:00 2001 From: dencheva Date: Fri, 17 Dec 2010 19:58:05 +0000 Subject: DATE-OBS for STIS is in the SCi extension header, not in the primary git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11452 fe389314-cf27-0410-b35b-8c050e845b92 --- wcsutil/instruments.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wcsutil/instruments.py') diff --git a/wcsutil/instruments.py b/wcsutil/instruments.py index 0787977..997bdc8 100644 --- a/wcsutil/instruments.py +++ b/wcsutil/instruments.py @@ -313,3 +313,9 @@ class STISWCS(InstrWCS): print 'ERROR: Detector kw not found.\n' raise + def set_date_obs(self): + try: + self.date_obs = self.exthdr['DATE-OBS'] + except (KeyError, TypeError): + self.date_obs = None + \ No newline at end of file -- cgit