diff options
author | dencheva <dencheva@stsci.edu> | 2010-12-17 14:58:05 -0500 |
---|---|---|
committer | dencheva <dencheva@stsci.edu> | 2010-12-17 14:58:05 -0500 |
commit | 2314b5d0cf8aac5cd979700d200cd15ca9f1a0cb (patch) | |
tree | d2ce4665fcf5de810a59266c012074cb3f41432f | |
parent | b398ab81ff63121418a3cec7916827f014c082ea (diff) | |
download | stwcs_hcf-2314b5d0cf8aac5cd979700d200cd15ca9f1a0cb.tar.gz |
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
-rw-r--r-- | wcsutil/instruments.py | 6 |
1 files changed, 6 insertions, 0 deletions
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 |