From 930116c5ca514319cb066de69aa5640cbaacaa35 Mon Sep 17 00:00:00 2001 From: Chenggong Wang Date: Mon, 4 Mar 2024 11:14:25 -0800 Subject: [PATCH] fix time resampling issue in score_ensemble_outputs.py (#180) correct the issue: resample loses the time coordinate information --- earth2mip/score_ensemble_outputs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earth2mip/score_ensemble_outputs.py b/earth2mip/score_ensemble_outputs.py index 6c3e45b4..0593d241 100644 --- a/earth2mip/score_ensemble_outputs.py +++ b/earth2mip/score_ensemble_outputs.py @@ -110,7 +110,7 @@ def main( if time_averaging_window: verification = verification.resample(time=time_averaging_window).mean( - dim="time", keep_attrs=True, skipna=False, keepdims=True + dim="time", keep_attrs=True, skipna=False ) ensemble_mse = (verification - ensemble_mean) ** 2.0