From 3542fde3063f2697f3df67763f1126c03b56e4d2 Mon Sep 17 00:00:00 2001 From: Tim Leijnse Date: Fri, 8 Sep 2023 12:36:11 +0200 Subject: [PATCH] Update sfincs.py - Xarray.rename input type seems to have changed - Only relevant for precip_2D and press_2D? (or more?) --- hydromt_sfincs/sfincs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hydromt_sfincs/sfincs.py b/hydromt_sfincs/sfincs.py index c9cab3ba..35c15471 100644 --- a/hydromt_sfincs/sfincs.py +++ b/hydromt_sfincs/sfincs.py @@ -2095,8 +2095,8 @@ def setup_precip_forcing_from_grid( downsampling="sum", logger=self.logger, ) - precip_out = precip_out.rename("precip_2d") - + precip_out = precip_out.rename({"precip":"precip_2d"}) + # add to forcing self.set_forcing(precip_out, name="precip_2d") @@ -2197,8 +2197,8 @@ def setup_pressure_forcing_from_grid( logger=self.logger, ) - press_out = press_out.rename("press_2d") - + press_out = press_out.rename({"press":"press_2d"}) + # add to forcing self.set_forcing(press_out, name="press_2d")