Skip to content

Commit

Permalink
Merge pull request #109 from GEB-model/fix-hydrodynamics
Browse files Browse the repository at this point in the history
fix hydrodynamics
  • Loading branch information
jensdebruijn authored Sep 24, 2024
2 parents c710628 + 9844d6a commit 63afe08
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions geb/setup/geb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 63afe08

Please sign in to comment.