diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 26a1ac84da422c75bfee1c8ec0bf1ba3bae68edb..ea783e34a14c8dd88f072b73f710543c6286d7ea 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -144,7 +144,7 @@ def create_file(filename, data_dct, ds_list, lon_c, lat_c, time_s, fl_alt_s, ici h5f_expl.close() -def run(pirep_dct, outfile=None, outfile_l1b=None, dt_str_start=None, dt_str_end=None): +def run(pirep_dct, outfile=None, outfile_l1b=None, dt_str_start=None, dt_str_end=None, reduce=False): time_keys = list(pirep_dct.keys()) l1b_grd_dct = {name: [] for name in l1b_ds_list} ds_grd_dct = {name: [] for name in ds_list} @@ -240,6 +240,9 @@ def run(pirep_dct, outfile=None, outfile_l1b=None, dt_str_start=None, dt_str_end fl_alt_s.append(fl) ice_int_s.append(I) + if reduce is True: + break + if len(time_s) == 0: return