summaryrefslogtreecommitdiff
path: root/wcsutil/instruments.py
diff options
context:
space:
mode:
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