Deltares / hydromt_wflow

Wflow plugin for HydroMT
https://deltares.github.io/hydromt_wflow/
GNU General Public License v3.0
15 stars 13 forks source link

Read/write staticgeoms if dir_input is set in toml #276

Open hboisgon opened 2 months ago

hboisgon commented 2 months ago

HydroMT-Wflow version checks

Reproducible Example

try to read/write geoms if dir_input is "input" in toml

Current behaviour

In the wflow toml, all input can be located in a separate folder using the dir_input argument in the toml. We take this into account for grid / staticmaps:

https://github.com/Deltares/hydromt_wflow/blob/fc83571742f5dc251cd87b4f103824d205ac7476/hydromt_wflow/wflow.py#L3131-L3142

But not for staticgeoms. For staticgeoms, we assume the geoms folder is in the same path as staticmaps file but we do not take dir_input into account. So then the model geoms are not read.

Desired behaviour

Allow to read/write geoms if dir_input is set in the toml file.

Additional context

No response