New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add setup_river_floodplain method #123
Conversation
Note that setting a list via the hydromt ini file does not work currently. A fix is proposed in Deltares/hydromt#246 |
@JoostBuitink @laurenebouaziz @verseve There are a few last TODO's to finalize this PR. see description above. Regarding the question whether to merge My suggestion:
Also, I cannot reproduce the failing test locally. Does it also fail for you? I'll try to do a clean checkout to see if there is a local file conflict somewhere.. |
@DirkEilander, yes I think this is a very good suggestion! Now we have: [input.lateral.river] but in fact in case we have floodplain 1d routing, D4 or D8 does not matter because the river is D8 anyways. So we could have this standard as D8 if floodplain 1d is applied. If 1d2d is applied, it makes sense to update to D4 in a specific setup_2d_floodplains method (maybe good to have 2d included in the name of the method to make it very clear?) @verseve, we were just discussing with @JoostBuitink that the toml also includes: how is this used in wflow and should this also be consistent (dem versus subgrid?) About the test, I had updated the staticmaps and the local tests were working for me, but I will check again and add some more tests as we discussed! |
This is not used by the |
Is it also then still possible to use the average dem value ( |
Yes, we will keep this option. Or perhaps even remove the other option (subgrid outlet pixel elevation) as it is not a logical approach as we discussed this largely overestimates the floodplain volume, right? For the river bed elevation I will then also implement #126 |
I think the subgrid option is good to keep, because it has a more realistic river slope profile right? with the average option, there was too much delay in the Meuse and Rhine models. |
The example model was currently a model not compatible with Wflow (local-inertial for land routing, and floodplain_1d set to true will not work)
change example models to be based on kinematic-wave for both river and land routing, and update staticmaps to reflect this (essentially removing the `hydrodem_avg_D4` layer, as this was breaking the tests)
pyflwdir v0.5.7 has been released https://pypi.org/project/pyflwdir/ |
|
if an existing model, which already contains floodplain_volume, is updated with different flood_depth intervals, the staticmaps were not updated correctly
added test/data/floodplain_layers.nc to use as reference data during the tests. If these layers are included in the example model, the build test are failing, as these layers will not be produced when following the test build ini files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice work @JoostBuitink
I made two small suggestion, but in general I think this is good to go.
I'm however not allowed to approve it as I started the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewing on behalf of @DirkEilander, quoting:
Really nice work @JoostBuitink I made two small suggestion, but in general I think this is good to go. I'm however not allowed to approve it as I started the PR.
The two small suggestion are included, so this PR is good to go
see #107
TODO: