From 9844d6a7dd96dd1f918a2f1615ce7395f74148fe Mon Sep 17 00:00:00 2001 From: Veerle Bril Date: Tue, 24 Sep 2024 16:48:18 +0200 Subject: [PATCH] fix hydrodynamics --- geb/setup/geb.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/geb/setup/geb.py b/geb/setup/geb.py index 687fae0f..e6cbb66a 100644 --- a/geb/setup/geb.py +++ b/geb/setup/geb.py @@ -5346,7 +5346,7 @@ def setup_hydrodynamics( hydrodynamics_data_catalog.add_source( "merit_hydro", RasterDatasetAdapter( - path=Path(self.root) / "hydrodynamic" / "merit_hydro.zarr.zip", + path=Path(self.root) / "hydrodynamics" / "merit_hydro.zarr.zip", meta=self.data_catalog.get_source("merit_hydro").meta, driver="zarr", ), # hydromt likes absolute paths @@ -5418,8 +5418,10 @@ def setup_hydrodynamics( buffer=200, # 2 km buffer ) del esa_worldcover.attrs["_FillValue"] - esa_worldcover.name = "esa_worldcover" - self.set_forcing(esa_worldcover, name="hydrodynamics/esa_worldcover") + esa_worldcover.name = "lulc" + esa_worldcover = esa_worldcover.to_dataset() + esa_worldcover["_dummy"] = 0 + self.set_forcing(esa_worldcover, name="hydrodynamics/esa_worldcover", split_dataset=False) hydrodynamics_data_catalog.add_source( "esa_worldcover",