summaryrefslogtreecommitdiff
path: root/wcsutil/instruments.py
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2010-12-17 14:58:05 -0500
committerdencheva <dencheva@stsci.edu>2010-12-17 14:58:05 -0500
commit2314b5d0cf8aac5cd979700d200cd15ca9f1a0cb (patch)
treed2ce4665fcf5de810a59266c012074cb3f41432f /wcsutil/instruments.py
parentb398ab81ff63121418a3cec7916827f014c082ea (diff)
downloadstwcs_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
Diffstat (limited to 'wcsutil/instruments.py')
-rw-r--r--wcsutil/instruments.py6
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