From 5563614c8aba4d178f6237c12e911146f9630c9a Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Thu, 11 May 2023 14:11:30 -0500 Subject: [PATCH] snapshot --- modules/aeolus/datasource.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/aeolus/datasource.py b/modules/aeolus/datasource.py index 42c91592..7b2a987e 100644 --- a/modules/aeolus/datasource.py +++ b/modules/aeolus/datasource.py @@ -183,6 +183,24 @@ class CLAVRx_H08(Files): return None +class CLAVRx_H09(Files): + def __init__(self, files_path, pattern='clavrx_H09*.level2.nc'): + super().__init__(files_path, 10, pattern) + self.params = get_parameters_clavrx() + + def get_datetime(self, pathname): + filename = os.path.split(pathname)[1] + dt_str = filename[11:24] + dto = datetime.datetime.strptime(dt_str, '%Y%m%d_%H%M').replace(tzinfo=timezone.utc) + return dto + + def get_parameters(self): + return self.params + + def get_navigation(self, h5f): + return None + + class CLAVRx_CALIPSO(Files): def __init__(self, files_path, pattern='*_06kmCLay.matchup.calipso.h5'): super().__init__(files_path, 10, pattern) -- GitLab