diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index e15648168198d6dca4e7093c7081b8fb3c0c6038..e835f6c5ade897469cb95d6297665a8ea2c95063 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -326,17 +326,21 @@ def run(pirep_dct, platform, outfile=None, outfile_l1b=None, dt_str_start=None, ll = ll_a[0] cnt_a = 0 + ds_lst = [] for didx, ds_name in enumerate(ds_list): gvals = get_grid_values(h5f, ds_name, ll_a[0], cc_a[0], 20, fill_value_name=None, range_name=ds_range[didx], fill_value=ds_fill[didx]) if gvals is not None: - ds_grd_dct[ds_name].append(gvals) + #ds_grd_dct[ds_name].append(gvals) + ds_lst.append(gvals) cnt_a += 1 cnt_b = 0 + l1b_lst = [] for didx, ds_name in enumerate(l1b_ds_list): gvals = get_grid_values(h5f, ds_name, ll_a[0], cc_a[0], 20, fill_value_name=None, range_name=l1b_ds_range[didx], fill_value=l1b_ds_fill[didx]) if gvals is not None: - l1b_grd_dct[ds_name].append(gvals) + #l1b_grd_dct[ds_name].append(gvals) + l1b_lst.append(gvals) cnt_b += 1 if cnt_a > 0 and cnt_a != len(ds_list): @@ -347,6 +351,12 @@ def run(pirep_dct, platform, outfile=None, outfile_l1b=None, dt_str_start=None, #raise GenericException('weirdness') if cnt_a == len(ds_list) and cnt_b == len(l1b_ds_list): + for didx, ds_name in enumerate(ds_list): + ds_grd_dct[ds_name].append(ds_lst[didx]) + + for didx, ds_name in enumerate(l1b_ds_list): + l1b_grd_dct[ds_name].append(l1b_lst[didx]) + lon_c.append(lon_s[0]) lat_c.append(lat_s[0]) time_s.append(time)