From fd26334ac89665d129223a0e224e191bf14b2a25 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Tue, 3 Jan 2023 17:09:08 -0600
Subject: [PATCH] snapshot...

---
 modules/icing/pirep_goes.py | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py
index e1564816..e835f6c5 100644
--- a/modules/icing/pirep_goes.py
+++ b/modules/icing/pirep_goes.py
@@ -326,17 +326,21 @@ def run(pirep_dct, platform, outfile=None, outfile_l1b=None, dt_str_start=None,
                 ll = ll_a[0]
 
             cnt_a = 0
+            ds_lst = []
             for didx, ds_name in enumerate(ds_list):
                 gvals = get_grid_values(h5f, ds_name, ll_a[0], cc_a[0], 20, fill_value_name=None, range_name=ds_range[didx], fill_value=ds_fill[didx])
                 if gvals is not None:
-                    ds_grd_dct[ds_name].append(gvals)
+                    #ds_grd_dct[ds_name].append(gvals)
+                    ds_lst.append(gvals)
                     cnt_a += 1
 
             cnt_b = 0
+            l1b_lst = []
             for didx, ds_name in enumerate(l1b_ds_list):
                 gvals = get_grid_values(h5f, ds_name, ll_a[0], cc_a[0], 20, fill_value_name=None, range_name=l1b_ds_range[didx], fill_value=l1b_ds_fill[didx])
                 if gvals is not None:
-                    l1b_grd_dct[ds_name].append(gvals)
+                    #l1b_grd_dct[ds_name].append(gvals)
+                    l1b_lst.append(gvals)
                     cnt_b += 1
 
             if cnt_a > 0 and cnt_a != len(ds_list):
@@ -347,6 +351,12 @@ def run(pirep_dct, platform, outfile=None, outfile_l1b=None, dt_str_start=None,
                 #raise GenericException('weirdness')
 
             if cnt_a == len(ds_list) and cnt_b == len(l1b_ds_list):
+                for didx, ds_name in enumerate(ds_list):
+                    ds_grd_dct[ds_name].append(ds_lst[didx])
+
+                for didx, ds_name in enumerate(l1b_ds_list):
+                    l1b_grd_dct[ds_name].append(l1b_lst[didx])
+
                 lon_c.append(lon_s[0])
                 lat_c.append(lat_s[0])
                 time_s.append(time)
-- 
GitLab