From df44ff8df1f20b34d3bad09a7aaf4999828f903a Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Wed, 11 May 2022 14:03:02 -0500
Subject: [PATCH] snapshot...

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

diff --git a/modules/util/viirs.py b/modules/util/viirs.py
index cff98c91..e8da13da 100644
--- a/modules/util/viirs.py
+++ b/modules/util/viirs.py
@@ -16,11 +16,12 @@ def run_all(directory):
     img_tiles = []
 
     for idx, mfile in enumerate(mod_files):
-        if idx % 2 == 0:
+        if idx % 8 == 0:
             w_o_ext, ext = os.path.splitext(mfile)
             ifile = w_o_ext+'.highres'+ext
             if not os.path.exists(ifile):
                 continue
+            print(mfile)
             run(mfile, ifile, mod_tiles, img_tiles)
 
     mod_nda = np.stack(mod_tiles)
-- 
GitLab