Error in lake incorporation

23 views
Skip to first unread message

Swetasree Nag

unread,
Jul 10, 2025, 8:02:37 AM7/10/25
to SWAT+ Editor
Hi all,
I am seeking guidance regarding the following problem-

How can I add such small waterbodies into the gridded model as these are not generating any grid lakes. If I manually try to add lake cell then I am getting this following python error.
Please guide me in this regard.

Note
1. My study area is 830 sq.km
2. It has more than 1500 waterbodies from very tiny pond to big reservoirs
3. Have tried with creating more finer grids (like 30sqm as my DEM has 30m resolution) but it increased the number grid cells and HRUs which cant be processed at the later stage
4. My target is to incorporate every waterbodies into the model to observe their routing process for flood/drought mitigation

The information contained in this electronic communication is intended solely for the individual(s) or entity to which it is addressed. It may contain proprietary, confidential and/or legally privileged information. Any review, retransmission, dissemination, printing, copying or other use of, or taking any action in reliance on the contents of this information by person(s) or entities other than the intended recipient is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us by responding to this email or telephone and immediately and permanently delete all copies of this message and any attachments from your system(s). The contents of this message do not necessarily represent the views or policies of BITS Pilani.
PythonError.png
WB_error.png

Chris George

unread,
Jul 10, 2025, 8:20:42 AM7/10/25
to Swetasree Nag, SWAT+ Editor
If you hope to include such small water bodies then you probably need to
resample your DEM. But basically you cannot avoid the problem that
these water bodies are too small to incorporate effectively in a model
dependent on a DEM with this resolution.

As to the Python error, check that your lake file's RES field only has
integers in it.

Chris


On 7/10/2025 6:50 AM, Swetasree Nag wrote:
> Hi all, I am seeking guidance regarding the following problem- How can I
> add such small waterbodies into the gridded model as these are not
> generating any grid lakes. If I manually try to add lake cell then I am
> getting this following python
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
> --
> You received this message because you are subscribed to the Google
> Groups "SWAT+ Editor" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to swatplus-edit...@googlegroups.com
> <mailto:swatplus-edit...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> swatplus-editor/e9c13736-a4a8-4c17-b76e-eba77ebe5b5fn%40googlegroups.com
> <https://urldefense.com/v3/__https://groups.google.com/d/msgid/swatplus-
> editor/e9c13736-a4a8-4c17-b76e-eba77ebe5b5fn*40googlegroups.com?
> utm_medium=email&utm_source=footer__;JQ!!KwNVnqRv!
> BbxrMyE2Du8Ykes5q2AzvgjW63XdmQdSxI_2HSoM_6-
> hXzMsBvNlXWpClimw40uyw3SNMOENY9plfmPqOa9tmkKzZWbrPQjZp5VHLg$>.

Swetasree Nag

unread,
Jul 10, 2025, 9:21:30 PM7/10/25
to SWAT+ Editor

Thank you for your response.

Resampling the DEM or using a finer grid resolution does indeed result in a significantly larger number of grid cells, ultimately leading to an unmanageable number of HRUs and subbasins. For example, at a 30 × 30 m resolution, the model ends up generating more than 5 million HRUs (even with the Dominant HRU option), which becomes computationally infeasible.

Given this limitation, is there an alternative way to incorporate small waterbodies—those smaller than the grid cell size—into the model? Perhaps by representing them as wetlands or detention ponds without requiring direct stream connectivity?

Regarding the Python error:
The issue only arises when I manually add lake cells that cover less than 50% of a grid cell area. However, I have ensured that the RES field contains only valid integer values.


Thank you,
Swetasree
Reply all
Reply to author
Forward
0 new messages