From c9e46b34cd5d1d5fff4051ea97a2421307b2c7ea Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Tue, 29 Mar 2022 13:51:56 -0500
Subject: [PATCH] snapshot...

---
 modules/aeolus/aeolus_amv.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py
index de770eaf..7623866d 100644
--- a/modules/aeolus/aeolus_amv.py
+++ b/modules/aeolus/aeolus_amv.py
@@ -312,7 +312,7 @@ def run_best_fit_driver(amv_dir, source, raob_path, gfs_path, product_dir, produ
         filename = None
         raob_filename = None
         amv_filename = None
-        create_file_new2(filename, raob_dct, gfs_at_raob_dct, bf_dct, prd_dct, raob_filename, amv_filename)
+        create_file_new2(filename, m_d, raob_dct, gfs_at_raob_dct, bf_dct, prd_dct, raob_filename, amv_filename)
 
         # Skip this and below if writing an output file.
         out_list.append((bf_dct, prd_dct))
@@ -2014,7 +2014,7 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct, amv_files, cld_lyr=Fals
 
     rootgrp.close()
 
-def create_file_new2(filename, raob_dct, gfs_at_raob_dct, bf_dct, prd_dct, raob_filename, amv_file_name):
+def create_file_new2(filename, match_dct, raob_dct, gfs_at_raob_dct, bf_dct, prd_dct, raob_filename, amv_file_name):
     num_aparams = 7
     num_aprofs = 0
     max_num_alevels = 0
@@ -2030,7 +2030,7 @@ def create_file_new2(filename, raob_dct, gfs_at_raob_dct, bf_dct, prd_dct, raob_
     #amv_file_s = np.array(amv_file_s, dtype='object')
 
     # scan to get max num levels, amvs
-    keys = list(raob_dct.keys())
+    keys = list(match_dct.keys())
     for key in keys:
         print(key)
         raob = raob_dct.get(key)
-- 
GitLab