diff --git a/modules/amv/aeolus.py b/modules/amv/aeolus.py index a2fccf4dde243dd74f7ab0f58b5ced90c3467865..6f15fa16c8239d994fea9c828aee536d44b8e612 100644 --- a/modules/amv/aeolus.py +++ b/modules/amv/aeolus.py @@ -109,6 +109,7 @@ def compare_aeolus_max_height(aeolus_dict, files_path, grid_value_name='cld_heig nn_idxs = nav.earth_to_indexs(a_lons[f_idx], a_lats[f_idx], grd_vals.shape[0]) if len(nn_idxs) == 0: continue + on_earth = nn_idxs != -1 nn_idxs = nn_idxs[on_earth] grd_crds = np.unravel_index(nn_idxs, grd_vals.shape)