From 00860a3fe27e3a0b394530af30e654595430eaa7 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Thu, 5 May 2022 13:33:57 -0500
Subject: [PATCH] snapshot...

---
 modules/util/viirs.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/modules/util/viirs.py b/modules/util/viirs.py
index f371926f..9791ffbf 100644
--- a/modules/util/viirs.py
+++ b/modules/util/viirs.py
@@ -75,8 +75,12 @@ def run_test(directory):
 
     for file in files:
         h5f = h5py.File(file, 'r')
-        opd_nl = get_grid_values_all(h5f, 'cld_opd_nlcomp')
-        reff_nl = get_grid_values_all(h5f, 'cld_reff_nlcomp')
+        try:
+            opd_nl = get_grid_values_all(h5f, 'cld_opd_nlcomp')
+            reff_nl = get_grid_values_all(h5f, 'cld_reff_nlcomp')
+        except:
+            print('PROBLEM with: ', file)
+            continue
 
         if np.sum(np.isnan(opd_nl)) < opd_nl.size and np.sum(np.isnan(reff_nl)) < reff_nl.size:
             print(file)
-- 
GitLab