Checking (sub)basin dimensions when delineating (sub)basin geometry/mask #236
Labels
bug
Something isn't working
enhancement
New feature or request
workflows
Issue linked to the workflows
Milestone
Kind of request
Adding new functionality
Enhancement Description
It is possible that a user provides region settings that result in a basin being generated consisting of only 1 cell. For example, when only
-r "{'subbasin': [x, y]
is provided withoutstrord
settings. Later in the workflow, this will likely cause errors resulting in failed model building.Use case
Consider the following log:
It may be nice to 'catch' these errors and provide a warning when a model consisting of 1 by 1 cell is generated (or n_x by n_y where n_x,y < 3). For example, in the form of an if-statement that may produce the log:
Additional Context
I was not sure whether this would fit better under hydromt core or wflow, my guess was wflow ;)
The text was updated successfully, but these errors were encountered: