From 29624ac10d0c8a5a5aba170a907c3d8dbed02054 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Thu, 12 May 2022 14:15:44 -0500 Subject: [PATCH] snapshot... --- modules/util/viirs.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/modules/util/viirs.py b/modules/util/viirs.py index 7efb72c1..4e1e67f3 100644 --- a/modules/util/viirs.py +++ b/modules/util/viirs.py @@ -22,7 +22,7 @@ def run_all(directory): img_tiles = [] for idx, mfile in enumerate(mod_files): - if idx % 16 == 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): @@ -36,14 +36,6 @@ def run_all(directory): mod_nda = np.stack(mod_tiles) img_nda = np.stack(img_tiles) - mod_mean = mod_nda.mean() - img_mean = img_nda.mean() - mod_std = mod_nda.std() - img_std = img_nda.std() - - mod_nda = (mod_nda - mod_mean) / mod_std - img_nda = (img_nda - img_mean) / img_std - np.save('/data/Personal/rink/viirs/mod_res_'+str(cnt), mod_nda) np.save('/data/Personal/rink/viirs/img_res_'+str(cnt), img_nda) -- GitLab