From 9d65fd883d5107564ff581b6aadbac5f1f4e7a01 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Wed, 11 May 2022 12:51:43 -0500
Subject: [PATCH] snapshot...

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

diff --git a/modules/util/viirs.py b/modules/util/viirs.py
index 7d130db4..4ae771a4 100644
--- a/modules/util/viirs.py
+++ b/modules/util/viirs.py
@@ -16,9 +16,10 @@ def run_all(directory):
     img_tiles = []
 
     for idx, mfile in enumerate(mod_files):
-        w_o_ext, ext = os.path.splitext(mfile)
-        ifile = w_o_ext+'uwssec'+ext
-        run(mfile, ifile, mod_tiles, img_tiles)
+        if idx % 2 == 0:
+            w_o_ext, ext = os.path.splitext(mfile)
+            ifile = w_o_ext+'uwssec'+ext
+            run(mfile, ifile, mod_tiles, img_tiles)
 
     mod_nda = np.stack(mod_tiles)
     img_nda = np.stack(img_tiles)
-- 
GitLab