diff --git a/modules/util/viirs.py b/modules/util/viirs.py index f371926ffcd42aae0dd1ee05362c3e52d1124b2d..9791ffbf2262a106cc9f013c21e47e4c403adfcc 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)