Skip to content
Snippets Groups Projects
Commit 056e1d34 authored by Michael Langguth's avatar Michael Langguth
Browse files

Final bugfix to handling all bins in statistical_evaluation.py.

parent 0f32596c
No related branches found
No related tags found
No related merge requests found
Pipeline #69672 passed
...@@ -76,7 +76,7 @@ def calculate_cond_quantiles(data_fcst: xr.DataArray, data_ref: xr.DataArray, fa ...@@ -76,7 +76,7 @@ def calculate_cond_quantiles(data_fcst: xr.DataArray, data_ref: xr.DataArray, fa
bins_all = list(np.arange(int(data_all_min), int(data_all_max) + 1)) bins_all = list(np.arange(int(data_all_min), int(data_all_max) + 1))
bins_c_all = 0.5 * (np.asarray(bins_all[0:-1]) + np.asarray(bins_all[1:])) bins_c_all = 0.5 * (np.asarray(bins_all[0:-1]) + np.asarray(bins_all[1:]))
# initialize quantile data array # initialize quantile data array
quantile_panel = xr.DataArray(np.full((nbins_all, nquantiles), np.nan), quantile_panel = xr.DataArray(np.full((len(bins_c_all), nquantiles), np.nan),
coords={"bin_center": bins_c_all, "quantile": list(quantiles)}, coords={"bin_center": bins_c_all, "quantile": list(quantiles)},
dims=["bin_center", "quantile"], dims=["bin_center", "quantile"],
attrs={"cond_var_name": data_cond_longname, "cond_var_unit": data_cond_unit, attrs={"cond_var_name": data_cond_longname, "cond_var_unit": data_cond_unit,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment