From d22bc2b6552a82a9dde8682c947c17e7017784e3 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 22 Mar 2021 18:14:47 -0500 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index de0d04b1..986e4bd7 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] -- GitLab