diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index de0d04b1c1d70e7afbd0f9c5a1015270912c1d90..986e4bd7b83449bbba918bb035ed411a483737f5 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -170,7 +170,7 @@ def run(pirep_dct, outfile=None, outfile_l1b=None, dt_str_start=None, dt_str_end time_s = [] fl_alt_s = [] ice_int_s = [] - cnt = 0 + for idx, time in enumerate(time_keys): if t_start is not None: if time < t_start: @@ -238,10 +238,8 @@ 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) - cnt += 1 if len(time_s) == 0: return - print('num reports: ', cnt) t_start = time_s[0] t_end = time_s[len(time_s)-1]