diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py index d7275bdd087f8b049cd763068647bccedee8d7f3..f75f357b069f5288b89c8fe257f1781c94187c22 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]