From 7104dfaf3a6da0c226824d148dbd6f70364db077 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Tue, 27 Oct 2020 12:36:17 -0500
Subject: [PATCH] snapshot...

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

diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py
index d7275bdd..f75f357b 100644
--- a/modules/aeolus/aeolus_amv.py
+++ b/modules/aeolus/aeolus_amv.py
@@ -455,7 +455,9 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct, amv_files, cld_lyr=Fals
         namvs += param_nd.shape[1]
 
         prof_s = aeolus_dct.get(key)
-        prof = prof_s[0]
+        prof = prof_s
+        if isinstance(prof, list):
+            prof = prof_s[0]
         num_levs.append(prof.shape[0])
         nlevs += prof.shape[0]
 
-- 
GitLab