From 8b5b110718e9f9a474d4966e3620a8e4a7230b3c Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Tue, 27 Oct 2020 09:02:08 -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 56793ca5..b0c266a2 100644 --- a/modules/aeolus/aeolus_amv.py +++ b/modules/aeolus/aeolus_amv.py @@ -510,7 +510,9 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct, amv_files): i_d = i_c + nlevs prof_s = aeolus_dct.get(key) - prof = prof_s[0] + prof = prof_s + if isinstance(prof_s, list): + prof = prof_s[0] prf_hht[i_c:i_d] = prof[:, 3] prf_hhb[i_c:i_d] = prof[:, 4] prf_azm[i_c:i_d] = prof[:, 5] -- GitLab