diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 9f672e77dc7fb8944261e1d971cec78857068082..31610465439ce949fd7c904de2e488e4c6cfc813 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