diff --git a/modules/aeolus/datasource.py b/modules/aeolus/datasource.py index 46d8e294cda66b0d3f942e2fecfe9f650549271a..484e939e2608688aec3304f0b8a80988df5630c2 100644 --- a/modules/aeolus/datasource.py +++ b/modules/aeolus/datasource.py @@ -162,6 +162,34 @@ class FrameworkCloudPhase(AMVFiles): return dto +class OpsCloudPhase(AMVFiles): + def __init__(self, files_path, file_time_span): + elem_name = None + line_name = None + lon_name = None + lat_name = None + + out_params = ['Phase'] + params = ['Phase'] + meta_dict = {'Phase': (None, 'i1')} + + super().__init__(files_path, file_time_span, 'OR_ABI-L2-ACTPF'+'*.nc', band=None, elem_name=elem_name, params=params, + line_name=line_name, lat_name=lat_name, lon_name=lon_name, out_params=out_params, meta_dict=meta_dict) + + def get_navigation(self): + return GEOSNavigation(sub_lon=-75.0) + + def get_datetime(self, pathname): + fname = os.path.split(pathname)[1] + toks = fname.split('_') + dstr = toks[4] + tstr = toks[5] + dtstr = dstr + tstr + dto = datetime.datetime.strptime(dtstr, '%Y%j%H%M').replace(tzinfo=timezone.utc) + + return dto + + class OPS(AMVFiles): def __init__(self, files_path, file_time_span, band='14'): elem_name = None