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

ATMS-MIRS support...

parent 25e92e68
Branches main
No related tags found
No related merge requests found
......@@ -133,6 +133,7 @@ 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)
......@@ -143,3 +144,13 @@ class CrIS_Retrieval(Files):
dto = datetime.datetime.strptime(dt_str, '_d%Y%m%d_t%H%M').replace(tzinfo=timezone.utc)
return dto
class ATMS_MIRS(Files):
def __init__(self, files_path, file_time_span=8, pattern='NPR-MIRS-SND*.nc'):
super().__init__(files_path, file_time_span, pattern)
def get_datetime(self, pathname):
filename = os.path.split(pathname)[1]
dt_str = re.search('_s.{12}', filename).group(0)
dto = datetime.datetime.strptime(dt_str, '_s%Y%m%d%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