From ec1f6fbeb5d69ad6babf3a5a8e163e1a8b7be6ba Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Thu, 4 Mar 2021 21:58:03 -0600
Subject: [PATCH] snapshot...

---
 modules/icing/pirep_goes.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py
index 93a7d2da..6e20d3b7 100644
--- a/modules/icing/pirep_goes.py
+++ b/modules/icing/pirep_goes.py
@@ -63,6 +63,9 @@ def run():
     last_clvr_file = None
     last_h5f = None
 
+    num_obs = 0
+    num_files = 0
+
     for idx, time in enumerate(time_keys):
         reports = ice_dict[time]
         for tup in reports:
@@ -74,9 +77,11 @@ def run():
                 clvr_ds = get_clavrx_datasource(time)
             except Exception:
                 continue
+
             clvr_file = clvr_ds.get_file(time)[0]
             if clvr_file is None:
                 continue
+
             if clvr_file != last_clvr_file:
                 try:
                     h5f = h5py.File(clvr_file, 'r')
@@ -88,8 +93,12 @@ def run():
                     last_h5f.close()
                 last_h5f = h5f
                 last_clvr_file = clvr_file
+                num_files += 1
             else:
                 h5f = last_h5f
 
             cc, ll = nav.earth_to_lc_s(lon_s, lat_s)
             gvals = get_grid_values(h5f, 'temp_10_4um_nom', ll[0], cc[0], 20)
+            num_obs += 1
+
+    print(num_obs, num_files)
\ No newline at end of file
-- 
GitLab