From 7418e98fd57e121e85da9dc5ac3e740cc5433046 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Tue, 27 Oct 2020 14:21:28 -0500 Subject: [PATCH] snapshot... --- modules/aeolus/aeolus_amv.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py index f75f357b..599e1e0b 100644 --- a/modules/aeolus/aeolus_amv.py +++ b/modules/aeolus/aeolus_amv.py @@ -218,9 +218,11 @@ def time_dict_to_nd(time_dict): for key in keys: vals = time_dict[key] if vals is not None: - for i in range(len(vals)): - nda = np.array(vals[i]) - vals[i] = nda + nda = np.array(vals[0]) # only take one profile per second + time_dict[key] = nda + # for i in range(len(vals)): + # nda = np.array(vals[i]) + # vals[i] = nda return time_dict @@ -387,8 +389,8 @@ def match_amvs_to_aeolus(aeolus_dict, amv_files_path, amv_source='OPS', band='14 continue layers = profs - if isinstance(profs, list): - layers = profs[0] + # if isinstance(profs, list): + # layers = profs[0] lat = layers[0, 0] lon = layers[0, 1] @@ -456,8 +458,8 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct, amv_files, cld_lyr=Fals prof_s = aeolus_dct.get(key) prof = prof_s - if isinstance(prof, list): - prof = prof_s[0] + # if isinstance(prof, list): + # prof = prof_s[0] num_levs.append(prof.shape[0]) nlevs += prof.shape[0] @@ -514,8 +516,8 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct, amv_files, cld_lyr=Fals prof_s = aeolus_dct.get(key) prof = prof_s - if isinstance(prof_s, list): - prof = prof_s[0] + # if isinstance(prof_s, list): + # prof = prof_s[0] if not cld_lyr: prf_hht[i_c:i_d] = prof[:, 3] prf_hhb[i_c:i_d] = prof[:, 4] -- GitLab