From a666251197983c986539744059b710c79270200d Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Thu, 25 Mar 2021 12:35:48 -0500
Subject: [PATCH] snapshot...

---
 modules/icing/pirep_goes.py | 26 --------------------------
 1 file changed, 26 deletions(-)

diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py
index 95ddadda..db4b0cfc 100644
--- a/modules/icing/pirep_goes.py
+++ b/modules/icing/pirep_goes.py
@@ -197,7 +197,6 @@ def run(pirep_dct, outfile=None, outfile_l1b=None, dt_str_start=None, dt_str_end
         if clvr_file is None:
             continue
 
-        print(clvr_file, last_clvr_file)
         if clvr_file != last_clvr_file:
             try:
                 h5f = h5py.File(clvr_file, 'r')
@@ -210,7 +209,6 @@ def run(pirep_dct, outfile=None, outfile_l1b=None, dt_str_start=None, dt_str_end
                 last_h5f.close()
             last_h5f = h5f
             last_clvr_file = clvr_file
-            print('new file')
         else:
             h5f = last_h5f
 
@@ -220,30 +218,6 @@ def run(pirep_dct, outfile=None, outfile_l1b=None, dt_str_start=None, dt_str_end
             lat_s[0] = lat
             lon_s[0] = lon
 
-            # try:
-            #     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')
-            #     except Exception:
-            #         if h5f is not None:
-            #             h5f.close()
-            #         print('Problem with file: ', clvr_file)
-            #         continue
-            #     if last_h5f is not None:
-            #         last_h5f.close()
-            #     last_h5f = h5f
-            #     last_clvr_file = clvr_file
-            # else:
-            #     h5f = last_h5f
-
             cc, ll = nav.earth_to_lc_s(lon_s, lat_s)
             if cc[0] < 0:
                 continue
-- 
GitLab