From c93e2d5522088d0f1d41c3b90beb594e6a5baffc Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Fri, 3 Jun 2022 13:11:51 -0500
Subject: [PATCH] minor

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

diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py
index fefe8d61..510da929 100644
--- a/modules/util/viirs_l1b_l2.py
+++ b/modules/util/viirs_l1b_l2.py
@@ -9,8 +9,11 @@ emis_params = ['temp_10_4um_nom', 'temp_11_0um_nom', 'temp_12_0um_nom', 'temp_13
                'temp_6_7um_nom']
 l2_params = ['cloud_fraction', 'cld_temp_acha', 'cld_press_acha']
 
-data_params = ['cloud_fraction']
-label_params = ['cloud_fraction']
+# data_params = ['cloud_fraction']
+# label_params = ['cloud_fraction']
+
+data_params = ['observation_data/M15']
+label_params = ['observation_data/M15_highres']
 
 
 def run_all(directory, out_directory):
@@ -20,8 +23,8 @@ def run_all(directory, out_directory):
         if not p.is_dir():
             continue
 
-        data_files = glob.glob(directory + p.name+'/'+'clavrx_snpp_viirs*.uwssec*.nc')
-        # data_files = glob.glob(directory + p.name + '/' + 'VNP02MOD*.uwssec.nc')
+        # data_files = glob.glob(directory + p.name+'/'+'clavrx_snpp_viirs*.uwssec*.nc')
+        data_files = glob.glob(directory + p.name + '/' + 'VNP02MOD*.uwssec.nc')
 
         label_valid_tiles = []
         label_train_tiles = []
@@ -34,7 +37,7 @@ def run_all(directory, out_directory):
             if True:
                 w_o_ext, ext = os.path.splitext(data_f)
                 label_f = w_o_ext+'.highres'+ext
-                label_f = label_f.replace('snpp_viirs', 'VNP02MOD')
+                # label_f = label_f.replace('snpp_viirs', 'VNP02MOD')
                 if not os.path.exists(label_f):
                     continue
                 print(data_f)
-- 
GitLab