Must have equal len keys and value when setting with an iterable #318
|
I'm building the wflow model (static driver). Enter the command: An error occurs like this: I am attaching the log file: Sincerely looking for guidance, I'm just starting to learn models. |
Replies: 2 comments 2 replies
|
Dear @teiushi thanks for reaching out! Would it be possible for you to provide the reservoirs.gkpg that you are using in model building? And an outline of the model basin (staticgeoms/basins.geojson) that you can build without the reservoirs? That might help me with trying to replicate the error myself to see what is going wrong The workflow is looping through the identified waterbodies (i.e. reservoirs) using the column "waterbody_id" in the supplied source of reservoirs. So I am wondering if the error could be related to the values in the "waterbody_id" columns |
|
Thank you for providing the geopackage and the upstream area map! I have found the issue. The map uses upstream area rounded to integers. However because of that rounding, some neighbouring cells have identical values for uparea. For example in the image below, cells 1 and 2 have values 20245. It is possible to use the workflow without the upstream area (when |



Thank you for providing the geopackage and the upstream area map! I have found the issue. The map uses upstream area rounded to integers. However because of that rounding, some neighbouring cells have identical values for uparea. For example in the image below, cells 1 and 2 have values 20245.
The workflow uses the cell with the largest upstream area as the reservoir outlet inside a mask of the reservoir shape. This means that multiple cells can have the largest upstream area. Hence that keys and values have varying length (which they are not supposed to), as now 2 cells are found instead of 1
It is possible to use the workflow without the upstream area (when
uparea_name == Nonein https…