From d7e1b0dcc077a7fbf221ee36dc28e1112c2731cb Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Thu, 24 Jun 2021 13:15:04 -0500 Subject: [PATCH] snapshot... --- modules/aeolus/aeolus_amv.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/aeolus/aeolus_amv.py b/modules/aeolus/aeolus_amv.py index d4232f34..1a378b6e 100644 --- a/modules/aeolus/aeolus_amv.py +++ b/modules/aeolus/aeolus_amv.py @@ -1686,6 +1686,7 @@ def match_amvs_to_aeolus_fast(aeolus_dict, amv_files_path, amv_source='OPS', ban amv_files = get_datasource(amv_files_path, amv_source, band=band) nav = amv_files.get_navigation() amv_params = amv_files.get_parameters() + all_params = [amv_files.lon_name, amv_files.lat_name, amv_files.elem_name, amv_files.line_name] + amv_params match_dict = {} keys = list(aeolus_dict.keys()) @@ -1748,7 +1749,9 @@ def match_amvs_to_aeolus_fast(aeolus_dict, amv_files_path, amv_source='OPS', ban # dist = haversine_np(lon, lat, amv_lons[in_box], amv_lats[in_box]) param_nd = np.vstack(param_s) param_nd = param_nd[:, in_box] - match_dict[key].append((cc_prf, ll_prf, f_idx, prof, param_nd)) + coords = {'num_params': amv_var_names} + amvs_da = xr.DataArray(param_nd, coords=coords, dims=['num_params', 'num_amvs']) + match_dict[key].append((cc_prf, ll_prf, f_idx, prof, amvs_da)) return match_dict -- GitLab