From 4da5cc4b93b74bb8d55a25c10542ea2020120dba Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Wed, 14 Apr 2021 15:52:32 -0500
Subject: [PATCH] snapshot...

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

diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py
index 2d8bf73d..bc94aea8 100644
--- a/modules/icing/pirep_goes.py
+++ b/modules/icing/pirep_goes.py
@@ -842,10 +842,10 @@ def fov_extract(outfile='/home/rink/fovs_out.h5', train_params=train_params_day)
 
         for i in range(num_obs):
             keep_0 = np.logical_or(cld_mask[i,] == 2, cld_mask[i,] == 3)  # cloudy
-            # keep_1 = np.invert(np.isnan(cld_top_temp[i,]))
-            # keep = keep_0 & keep_1
-            # keep = np.where(keep, cld_top_temp[i,] < 273.0, False)
-            k_idxs = sub_indexes[keep_0]
+            keep_1 = np.invert(np.isnan(cld_top_temp[i,]))
+            keep = keep_0 & keep_1
+            keep = np.where(keep, cld_top_temp[i,] < 273.0, False)
+            k_idxs = sub_indexes[keep]
             np.random.shuffle(k_idxs)
             if len(k_idxs) > 20:
                 k_idxs = k_idxs[0:20]
@@ -987,7 +987,7 @@ def fov_extract(outfile='/home/rink/fovs_out.h5', train_params=train_params_day)
     h5f_expl.close()
 
 
-def box_extract(outfile='/home/rink/box_out.h5', train_params=train_params_day):
+def tile_extract(outfile='/home/rink/tiles_out.h5', train_params=train_params_day):
     icing_int_s = []
     ice_time_s = []
     no_ice_time_s = []
-- 
GitLab