From 72ba190d582b51db95cec1f66170ca94a92cedf3 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Sun, 10 Apr 2022 11:22:54 -0500 Subject: [PATCH] snapshot... --- modules/aeolus/datasource.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/aeolus/datasource.py b/modules/aeolus/datasource.py index 4414b4f1..d15a6607 100644 --- a/modules/aeolus/datasource.py +++ b/modules/aeolus/datasource.py @@ -164,6 +164,7 @@ class CLAVRx(Files): return GEOSNavigation(sub_lon=-75.0, CFAC=5.6E-05, COFF=-0.101332, LFAC=-5.6E-05, LOFF=0.128212, num_elems=2500, num_lines=1500) +# filename must begin with 'clavrx_H08_YYYYMMDD_HHMM' class CLAVRx_H08(Files): def __init__(self, files_path): super().__init__(files_path, 10, 'clavrx_H08*.level2.nc') @@ -171,7 +172,8 @@ class CLAVRx_H08(Files): def get_datetime(self, pathname): filename = os.path.split(pathname)[1] - dto = datetime.datetime.strptime(filename, 'clavrx_H08_%Y%m%d_%H%M_B01_FLDK_R.level2.nc').replace(tzinfo=timezone.utc) + 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): -- GitLab