diff --git a/modules/aeolus/datasource.py b/modules/aeolus/datasource.py index 8164c5a204806ad19a4192dd18e3d3a0e9d81cd1..7c907628aacfa2a0adc898302864062273e30b6d 100644 --- a/modules/aeolus/datasource.py +++ b/modules/aeolus/datasource.py @@ -136,6 +136,27 @@ 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) +class CLAVRx_H08(Files): + def __init__(self, files_path): + super().__init__(files_path, 10, 'clavrx_H08*.level2.nc') + self.params = get_parameters_clavrx() + + def get_datetime(self, pathname): + filename = os.path.split(pathname)[1] + so = re.search('_s\\d{11}', filename) + dt_str = so.group() + dto = datetime.datetime.strptime(dt_str, '_s%Y%j%H%M').replace(tzinfo=timezone.utc) + + dto = datetime.datetime.strptime(filename, 'clavrx_H08_%Y%m%d_%H%M_B01_FLDK_R.level2.nc').replace(tzinfo=timezone.utc) + return dto + + def get_parameters(self): + return self.params + + def get_navigation(self, h5f): + return None + + class CLAVRx_VIIRS(Files): def __init__(self, files_path): super().__init__(files_path, 5, 'clavrx*viirs*level2.h5')