From 638dcd06c9c726bfa076b298a9448a499d9c3b00 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Tue, 17 May 2022 13:11:45 -0500 Subject: [PATCH] initial commit... --- modules/util/viirs_l1b_l2.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py index 96640821..61b2a97f 100644 --- a/modules/util/viirs_l1b_l2.py +++ b/modules/util/viirs_l1b_l2.py @@ -24,10 +24,10 @@ def run_all(directory): for idx, l1b_f in enumerate(l1b_files): if idx % 8 == 0: - w_o_ext, ext = os.path.splitext(l1b_f) - l2_f = w_o_ext+'.highres'+ext - if not os.path.exists(l2_f): - continue + # w_o_ext, ext = os.path.splitext(l1b_f) + # l2_f = w_o_ext+'.highres'+ext + # if not os.path.exists(l2_f): + # continue print(l1b_f) try: @@ -36,22 +36,22 @@ def run_all(directory): print('cant open file: ', l1b_f) continue - try: - l2_h5f = h5py.File(l2_f, 'r') - except: - print('cant open file: ', l2_f) - l1b_h5f.close() - continue + # try: + # l2_h5f = h5py.File(l2_f, 'r') + # except: + # print('cant open file: ', l2_f) + # l1b_h5f.close() + # continue try: - run(l1b_h5f, l2_h5f, l1b_tiles, l2_tiles) + run(l1b_h5f, None, l1b_tiles, l2_tiles) except: l1b_h5f.close() - l2_h5f.close() + # l2_h5f.close() continue l1b_h5f.close() - l2_h5f.close() + # l2_h5f.close() if len(l1b_tiles) or len(l2_tiles) == 0: continue -- GitLab