From a2c246d2ff9dc1237a741a16416d597745887b12 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Fri, 6 Jan 2023 11:42:42 -0600 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 9f672e77..31610465 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -84,19 +84,19 @@ def setup(pirep_file=homedir+'data/pirep/pireps_20180101_20200331.csv'): return ice_dict, no_ice_dict, neg_ice_dict -def get_clavrx_datasource(timestamp, platform): +def get_clavrx_datasource(timestamp, platform, file_time_span=10): if platform == 'GOES': - return get_clavrx_datasource_goes(timestamp) + return get_clavrx_datasource_goes(timestamp, file_time_span=file_time_span) elif platform == 'VIIRS': return get_clavrx_datasource_viirs(timestamp) -def get_clavrx_datasource_goes(timestamp): +def get_clavrx_datasource_goes(timestamp, file_time_span=10): dt_obj, time_tup = get_time_tuple_utc(timestamp) date_dir_str = dt_obj.strftime(dir_fmt) ds = ds_dct.get(date_dir_str) if ds is None: - ds = CLAVRx(clavrx_dir + date_dir_str + '/') + ds = CLAVRx(clavrx_dir + date_dir_str + '/', file_time_span=file_time_span) ds_dct[date_dir_str] = ds return ds -- GitLab