From 7dbcbd9066109f818b9e4b73d957e861c1496a50 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Tue, 1 Jun 2021 13:29:37 -0500
Subject: [PATCH] maybe fix problem

---
 modules/amv/aeolus.py | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/modules/amv/aeolus.py b/modules/amv/aeolus.py
index 1506971c..c71c7538 100644
--- a/modules/amv/aeolus.py
+++ b/modules/amv/aeolus.py
@@ -116,10 +116,15 @@ def compare_aeolus_max_height(aeolus_dict, files_path, grid_value_name='cld_heig
         a_lats[f_idx] = a_lats[f_idx][on_earth]
         a_times[f_idx] = a_times[f_idx][on_earth]
 
+        # layers = []
+        # for k in range(len(nn_idxs)):
+        #     if on_earth[k]:
+        #         layers.append(a_profs[f_idx][k])
+        # a_profs[f_idx] = layers
+
         layers = []
-        for k in range(len(nn_idxs)):
-            if on_earth[k]:
-                layers.append(a_profs[f_idx][k])
+        for k in nn_idxs:
+            layers.append(a_profs[f_idx][k])
         a_profs[f_idx] = layers
 
         total += len(nn_idxs)
-- 
GitLab