From 1fed287c74759e086ec5b3dd1480957618a5a1b3 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Fri, 5 Mar 2021 12:39:48 -0600
Subject: [PATCH] snapshot...

---
 modules/icing/pirep_goes.py | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py
index df5d105e..a64af65c 100644
--- a/modules/icing/pirep_goes.py
+++ b/modules/icing/pirep_goes.py
@@ -109,10 +109,17 @@ def run():
             else:
                 h5f = last_h5f
 
+            cc, ll = nav.earth_to_lc_s(lon_s, lat_s)
+
+            gvals_a = get_grid_values(h5f, 'temp_10_4um_nom', ll[0], cc[0], 20)
+            if gvals_a is None:
+                continue
+            gvals_b = get_grid_values(h5f, 'cld_height_acha', ll[0], cc[0], 20)
+            if gvals_b is None:
+                continue
+
             obs_times.append(time)
             obs_lons.append(lon)
             obs_lats.append(lat)
-
-            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)
-            gvals = get_grid_values(h5f, 'cld_height_acha', ll[0], cc[0], 20)
\ No newline at end of file
+            temp_10_4um_nom.append(gvals_a)
+            cld_height_acha.append(gvals_b)
\ No newline at end of file
-- 
GitLab