From 8b0c5d93072971926ec57435f0af6ff137f746e4 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Tue, 2 Aug 2022 13:27:39 -0500
Subject: [PATCH] snapshot...

---
 modules/util/viirs_l1b_l2.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py
index 873efffd..27657d73 100644
--- a/modules/util/viirs_l1b_l2.py
+++ b/modules/util/viirs_l1b_l2.py
@@ -49,8 +49,9 @@ def run_all(directory, out_directory):
             if True:
                 w_o_ext, ext = os.path.splitext(data_f)
                 # label_f = data_f
-                label_f = w_o_ext+'.highres'+ext
-                label_f = label_f.replace('snpp_viirs', 'VNP02MOD')
+                pname, fname = os.path.split(data_f)
+                toks = fname.split('.')
+                label_f = pname + '/' + 'clavrx_VNP02MOD.' + toks[1]+'.'+toks[2]+'.'+toks[3]+'.'+toks[4]+'.'+'uwssec.highres.nc.level2.nc'
                 if not os.path.exists(label_f):
                     continue
 
-- 
GitLab