Deltares / hydromt_wflow

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

Bug: read and write multiple forcing files #162

Closed hboisgon closed 1 year ago

hboisgon commented 1 year ago

In the case a wflow model has multiple forcing files (so input.path_forcing with a '' key e.g. input.path_forcing = inmaps-era5-.nc, hydromt is able to read the files properly but not to write them out again (eg when clipping a model or just read and write to another output folder).

Maybe when writing back if * is in the key we could just remove it and try just writing the file. If there is an overflow or people want to keep writing several files then they should just elaborate their configuration with explicitly [write_forcing] and the freq_out. This would not work for the clip CLI but wonder if we will keep supporteing anyway or just switch back to just using the update CLI

laurenebouaziz commented 1 year ago

fixed in PR #163 and tested with test case from Albrecht, which works now.