From 3a9dae8ea6096fbbecf67bf5bcc58091c7e1fc21 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Wed, 11 May 2022 15:31:39 -0500
Subject: [PATCH] snapshot...

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

diff --git a/modules/util/viirs.py b/modules/util/viirs.py
index e8da13da..d7c64d62 100644
--- a/modules/util/viirs.py
+++ b/modules/util/viirs.py
@@ -16,7 +16,7 @@ def run_all(directory):
     img_tiles = []
 
     for idx, mfile in enumerate(mod_files):
-        if idx % 8 == 0:
+        if idx % 16 == 0:
             w_o_ext, ext = os.path.splitext(mfile)
             ifile = w_o_ext+'.highres'+ext
             if not os.path.exists(ifile):
@@ -60,7 +60,7 @@ def run(mod_res_filename, img_res_filename, mod_tiles, img_tiles):
     mod_data = get_grid_values(mod_h5f, mod_param, 0, 0, None, mod_num_lines, mod_num_pixels, range_name=None)
     img_data = get_grid_values(img_h5f, img_param, 0, 0, None, img_num_lines, img_num_pixels, range_name=None)
 
-    num_cntr_tiles = 1
+    num_cntr_tiles = 2
     i_c = int(mod_num_pixels / num_cntr_tiles)  # center
     j_skip = int(mod_num_y_tiles / num_cntr_tiles) * mod_tile_width
     for k in range(num_cntr_tiles):
-- 
GitLab