From 613bed624e3c259b1d496736dd249e16e3057b48 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Sun, 10 Jul 2022 20:49:11 -0500
Subject: [PATCH] fix bug

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

diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py
index 34bcc730..e5f02113 100644
--- a/modules/util/viirs_l1b_l2.py
+++ b/modules/util/viirs_l1b_l2.py
@@ -5,15 +5,15 @@ import glob
 import os
 from pathlib import Path
 
-emis_params = ['temp_10_4um_nom', 'temp_11_0um_nom', 'temp_12_0um_nom', 'temp_13_3um_nom', 'temp_3_75um_nom',
-               'temp_6_2um_nom', 'temp_6_7um_nom', 'temp_7_3um_nom', 'temp_8_5um_nom', 'temp_9_7um_nom']
+emis_params = ['temp_10_4um_nom', 'temp_11_0um_nom', 'temp_12_0um_nom', 'temp_13_3um_nom', 'temp_3_9um_nom',
+               'temp_6_7um_nom', 'temp_7_3um_nom', 'temp_8_5um_nom', 'temp_9_7um_nom']
 
 #refl_params = ['refl_0_47um_nom', 'refl_0_65um_nom', 'refl_0_86um_nom', 'refl_1_38um_nom', 'refl_1_60um_nom']
 
 # data_params = refl_params + emis_params
 data_params = emis_params
 
-l2_params = ['cloud_fraction', 'cld_temp_acha', 'cld_press_acha', 'cld_opd_acha', 'cld_reff_acha']
+l2_params = ['cloud_fraction', 'cld_temp_acha', 'cld_press_acha', 'cld_emiss_acha']
 label_params = l2_params
 
 # data_params = ['cloud_fraction']
@@ -153,7 +153,7 @@ def run(data_h5f, label_h5f, data_tiles, label_tiles, mod_tile_width=64, border=
     img_num_lines = label_h5f[l2_param_name].shape[0]
     img_num_pixels = label_h5f[l2_param_name].shape[1]
 
-    factor = img_num_pixels / mod_num_pixels
+    factor = int(img_num_pixels / mod_num_pixels)
     img_tile_width = mod_tile_width * factor
 
     # mod_num_y_tiles = int(mod_num_lines / mod_tile_width)
-- 
GitLab