Skip to content
Snippets Groups Projects
Commit 9ab129c6 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 50bd572a
Branches main
No related tags found
No related merge requests found
......@@ -130,3 +130,13 @@ class Files:
self._current_index = 0
raise StopIteration
class CrIS_Retrieval(Files):
def __init__(self, files_path, file_time_span=8, pattern='CrIS_*atm_prof_rtv.h5'):
super().__init__(files_path, file_time_span, pattern)
def get_datetime(self, pathname):
filename = os.path.split(pathname)[1]
dt_str = re.search('_d.{14}', filename).group(0)
dto = datetime.datetime.strptime(dt_str, '_d%Y%m%d_t%H%M').replace(tzinfo=timezone.utc)
return dto
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment