Skip to content

Commit

Permalink
fix time resampling issue in score_ensemble_outputs.py (#180)
Browse files Browse the repository at this point in the history
correct the issue: resample loses the time coordinate information
  • Loading branch information
ChenggongWang authored Mar 4, 2024
1 parent 97ad0b7 commit 930116c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion earth2mip/score_ensemble_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 930116c

Please sign in to comment.