From 7a666b03f217a4d78b2f4dd5a84662175e092e8d Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Tue, 9 Mar 2021 15:03:37 -0600 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 8ff809d9..f5e3c21b 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -43,20 +43,20 @@ def get_clavrx_datasource(timestamp): return ds -# def get_goes_datasource(timestamp): -# dt_obj, time_tup = get_time_tuple_utc(timestamp) -# -# yr_dir = str(dt_obj.timetuple().tm_year) -# date_dir = dt_obj.strftime(dir_fmt) -# yr_date = yr_dir+date_dir -# -# files_path = goes16_directory + '/' + yr_dir + '/' + date_dir + '/abi' + '/L1b' + '/RadC/' -# print(files_path) -# ds = goes_ds_dct.get(yr_date) -# if ds is None: -# ds = GOESL1B(files_path) -# goes_ds_dct[yr_date] = ds -# return ds +def get_goes_datasource(timestamp): + dt_obj, time_tup = get_time_tuple_utc(timestamp) + + yr_dir = str(dt_obj.timetuple().tm_year) + date_dir = dt_obj.strftime(dir_fmt) + yr_date = yr_dir+date_dir + + files_path = goes16_directory + '/' + yr_dir + '/' + date_dir + '/abi' + '/L1b' + '/RadC/' + print(files_path) + ds = goes_ds_dct.get(yr_date) + if ds is None: + ds = GOESL1B(files_path) + goes_ds_dct[yr_date] = ds + return ds def get_grid_values(h5f, grid_name, j_c, i_c, half_width, scale_factor_name='scale_factor', add_offset_name='add_offset'): -- GitLab