From d2e560145b5596a1b4b6caebca07f178b6659edb Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Wed, 21 Dec 2022 09:36:08 -0600
Subject: [PATCH] snapshot...

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

diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py
index c1041264..cbbf5797 100644
--- a/modules/icing/pirep_goes.py
+++ b/modules/icing/pirep_goes.py
@@ -243,7 +243,7 @@ def create_file(filename, data_dct, ds_list, ds_types, lon_c, lat_c, time_s, fl_
     h5f_expl.close()
 
 
-def run(pirep_dct, platform, outfile=None, outfile_l1b=None, dt_str_start=None, dt_str_end=None):
+def run(pirep_dct, platform, outfile=None, outfile_l1b=None, dt_str_start=None, dt_str_end=None, skip=True):
     time_keys = list(pirep_dct.keys())
     l1b_grd_dct = {name: [] for name in l1b_ds_list}
     ds_grd_dct = {name: [] for name in ds_list}
@@ -316,7 +316,7 @@ def run(pirep_dct, platform, outfile=None, outfile_l1b=None, dt_str_start=None,
             if cc_a[0] < 0 or ll_a[0] < 0:
                 continue
 
-            if cc_a[0] == cc and ll_a[0] == ll:  # time adjacent duplicate, skip
+            if skip and (cc_a[0] == cc and ll_a[0] == ll):  # time adjacent duplicate, skip
                 continue
             else:
                 cc = cc_a[0]
-- 
GitLab