From 9891d47303cc09cc064f4298155af1cb99533cdb Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Thu, 3 Jun 2021 13:09:17 -0500
Subject: [PATCH] add new match file creator

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

diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py
index ad1fc2b8..f4aaa3cf 100644
--- a/modules/aeolus/aeolus_amv.py
+++ b/modules/aeolus/aeolus_amv.py
@@ -1469,8 +1469,8 @@ def match_aeolus_to_clavrx(aeolus_dict, clvrx_files):
 
 
 def create_file_2(match_dct, filename, clvrx_params=['cld_height_acha', 'cld_press_acha', 'cld_temp_acha']):
-    grd_x_len = 7
-    grd_y_len = 7
+    grd_x_len = 9
+    grd_y_len = 9
     num_aparams = 7
     num_aprofs = len(match_dct)
     max_num_alevels = 0
@@ -1554,10 +1554,12 @@ def create_file_2(match_dct, filename, clvrx_params=['cld_height_acha', 'cld_pre
         for pidx, param in enumerate(clvrx_params):
             nc4_vars[pidx][idx, :, :] = param_nd[pidx, :, :]
 
-        prf_spd[idx,:] = prof[:,6]
-        prf_azm[idx,:] = prof[:,5]
-        prf_hht[idx,:] = prof[:,3]
-        prf_hhb[idx,:] = prof[:,4]
+        nlevs = prof.shape[0]
+        for k in range(nlevs):
+            prf_spd[idx,k] = prof[k,6]
+            prf_azm[idx,k] = prof[k,5]
+            prf_hht[idx,k] = prof[k,3]
+            prf_hhb[idx,k] = prof[k,4]
 
     prf_lon[:] = alons
     prf_lat[:] = alats
-- 
GitLab