From 61de590b8674b039bee67ba4112e2fad709e9462 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Thu, 4 Mar 2021 17:41:12 -0600 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index f8a05ac5..14733793 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -63,6 +63,7 @@ def run(): lat_s = np.zeros(1) last_clvr_file = None last_h5f = None + cnt = 0 for idx, time in enumerate(time_keys): if (idx % 4) != 0: continue @@ -81,6 +82,7 @@ def run(): if clvr_file != last_clvr_file: try: h5f = h5py.File(clvr_file, 'r') + cnt += 1 except Exception: h5f.close() print('Problem with file: ', clvr_file) @@ -93,3 +95,4 @@ def run(): h5f = last_h5f gvals = get_grid_values(h5f, 'temp_10_4um_nom', ll[0], cc[0], 20) + print(idx, cnt) -- GitLab