From 91161a055af9848cd02270d8122ce12ffb72c451 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Sun, 17 Jan 2021 22:27:48 -0600
Subject: [PATCH] snapshot...

---
 modules/aeolus/datasource.py | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/modules/aeolus/datasource.py b/modules/aeolus/datasource.py
index 586d79e3..1059352f 100644
--- a/modules/aeolus/datasource.py
+++ b/modules/aeolus/datasource.py
@@ -29,10 +29,7 @@ class Files:
         self.flist = self.flist[sidxs]
 
     def get_datetime(self, pathname):
-        filename = os.path.split(pathname)[1]
-        dt_str = (((filename.split('raob_soundings'))[1]).split('.'))[0]
-        dto = datetime.datetime.strptime(dt_str, '%Y%m%d_%H%M').replace(tzinfo=timezone.utc)
-        return dto
+        pass
 
     def get_file_containing_time(self, timestamp):
         k = -1
@@ -54,6 +51,17 @@ class Files:
             return None, None, None
 
 
+class RAOBfiles(Files):
+    def __init__(selfs, files_path, file_time_span, pattern):
+        super().__init__(files_path, file_time_span, pattern)
+
+    def get_datetime(self, pathname):
+        filename = os.path.split(pathname)[1]
+        dt_str = (((filename.split('raob_soundings'))[1]).split('.'))[0]
+        dto = datetime.datetime.strptime(dt_str, '%Y%m%d_%H%M').replace(tzinfo=timezone.utc)
+        return dto
+
+
 class GFSfiles(Files):
     def __init__(self, files_path, file_time_span, pattern):
         super().__init__(files_path, file_time_span, pattern)
-- 
GitLab