Issue with Stream Creation in QSWAT+ Using TOPODATA DEM

49 views
Skip to first unread message

joel italo

unread,
Jun 22, 2025, 11:10:17 PM6/22/25
to qswa...@googlegroups.com

Hello, how are you?
I’m a student and I’m currently participating in a project in which I need to work with SWAT. This is my first time using the plugin, and I don’t have much experience with QGIS.

When I try to create the streams in QSWAT+, the cells appear this way, and when I click on "Create," the program freezes.

While I was learning how to use QSWAT+, I worked with the example data from the Ethiopia watershed (if I’m not mistaken), which comes with SWAT, and everything worked fine.

This digital elevation map was obtained from a website called TOPODATA. I created a mosaic and clipped it according to the region I will be working on.

Sorry for my broken english

image.png

Tawan Charoenpittaya

unread,
Jun 23, 2025, 4:42:29 PM6/23/25
to QSWAT+
  I'm not sure which DEM product you're using, but I think you should use a gridded DEM such as SRTM or HydroSHEDS. Then, if possible, you should also include a shapefile that roughly defines the stream network (under “Burn in existing stream network”).  

ในวันที่ วันจันทร์ที่ 23 มิถุนายน ค.ศ. 2025 เวลา 11 นาฬิกา 10 นาที 17 วินาที UTC+8 onoo...@gmail.com เขียนว่า:

joel italo

unread,
Jul 5, 2025, 9:31:11 AM7/5/25
to Tawan Charoenpittaya, QSWAT+
Hi, How is it going?

I've been having some difficulties on QSWAT+ and i would like to ask for your help.

Previously i had problems to add the Streams and, by following the tips that i got, i was able to make some progress. I think the DEM is correctly projected for the corresponding region, respecting the suitable SRC. I've also added the Mossoró River Manually, because the automatic process was not responding.

But, When i tried to add the Inlets/Outlets, the same problem occurred: the QSWAT+ Freezes completely and, afther that, the QGIS does the same thing.

I appreciate a lot who helped me previously and i thank in advance to someone who can guide me in this obstacle. I'm attaching the folder with the files that i'm using to this message to help the analysis of the problem.

Once again, I would like to thank anyone who can help. I am starting my studies with SWAT and QGIS in a self-taught way, so any guidance will be very welcome.

Best Regards
Joel Ítalo.

--
You received this message because you are subscribed to the Google Groups "QSWAT+" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qswatplus+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/qswatplus/09987069-6386-4cb2-9c7a-5047f06dc608n%40googlegroups.com.

Chris George

unread,
Jul 5, 2025, 1:09:30 PM7/5/25
to joel italo, Tawan Charoenpittaya, QSWAT+
There are several issues:

1. Your area is quite flat and the normal burnin depth of 50m is too
much: it causes your main stream to split into two. Use the parameters
form to reduce this to 10m, and delete the file MOSSORODEM_burned.tif so
it is recreated.

2. I don't see why you have two outlets, unless you perhaps decided you
needed both because of the stream split. Remove the southern one, as in
any case the stream will not reach it.

3. The snap threshold needs to be increased to 400 to enable the
northern outlet to be snapped to a stream.

4. Don't have spaces in the project name or its path: it causes errors
to be reported.

I don't know about the freezing, but delineation takes a while and
perhaps you did not wait long enough. You could use MPI to make it run
faster.

It is generally not a good idea to try to clip the DEM to what you think
is the watershed: you are in danger of losing some of the watershed to
the east and south. (Or of course you might have to clip to prevent the
delineation being bigger than you think it should be.)

Chris

On 7/5/2025 1:35 AM, joel italo wrote:
> Hi, How is it going? I've been having some difficulties on QSWAT+ and i
> would like to ask for your help. Previously i had problems to add the
> Streams and, by following the tips that i got, i was able to make some
> progress. I think the DEM
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
> Hi, How is it going?
>
> I've been having some difficulties on QSWAT+ and i would like to ask for
> your help.
>
> Previously i had problems to add the Streams and, by following the tips
> that i got, i was able to make some progress. I think the DEM is
> correctly projected for the corresponding region, respecting the
> suitable SRC. I've also added the Mossoró River Manually, because the
> automatic process was not responding.
>
> But, When i tried to add the Inlets/Outlets, the same problem occurred:
> the QSWAT+ Freezes completely and, afther that, the QGIS does the same
> thing.
>
> I appreciate a lot who helped me previously and i thank in advance to
> someone who can guide me in this obstacle. I'm attaching the folder with
> the files that i'm using to this message to help the analysis of the
> problem.
>
> Once again, I would like to thank anyone who can help. I am starting my
> studies with SWAT and QGIS in a self-taught way, so any guidance will be
> very welcome.
>
> Best Regards
> Joel Ítalo.
> Swat-Mossoró River Project.rar <https://urldefense.com/v3/__https://
> drive.google.com/file/d/1b-fY8BxnIv1EIcLFovPvNAL_9AKYGAK2/view?
> usp=drive_web__;!!KwNVnqRv!
> B5eVVvBYwQ2VcBusCP6XZKn_tr1Wt3wjWBwOQEbuLXkv6Gn8sgeX_Nq8Tg6h-
> aA-30IlAEo2zksCkCRq$>
>
> Em seg., 23 de jun. de 2025 às 17:42, Tawan Charoenpittaya
> <tent....@gmail.com <mailto:tent....@gmail.com>> escreveu:
>
>   I'm not sure which DEM product you're using, but I think you
> should use a gridded DEM such as SRTM or HydroSHEDS. Then, if
> possible, you should also include a shapefile that roughly defines
> the stream network (under “Burn in existing stream network”).
>
> ในวันที่ วันจันทร์ที่ 23 มิถุนายน ค.ศ. 2025 เวลา 11 นาฬิกา 10 นาที 17 วินาที UTC+8
> onoo...@gmail.com <mailto:onoo...@gmail.com> เขียนว่า:
>
> Hello, how are you?
> I’m a student and I’m currently participating in a project in
> which I need to work with SWAT. This is my first time using the
> plugin, and I don’t have much experience with QGIS.
>
> When I try to create the streams in QSWAT+, the cells appear
> this way, and when I click on "Create," the program freezes.
>
> While I was learning how to use QSWAT+, I worked with the
> example data from the Ethiopia watershed (if I’m not mistaken),
> which comes with SWAT, and everything worked fine.
>
> This digital elevation map was obtained from a website called
> TOPODATA. I created a mosaic and clipped it according to the
> region I will be working on.
>
> Sorry for my broken english
>
> image.png
>
> --
> You received this message because you are subscribed to the Google
> Groups "QSWAT+" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to qswatplus+...@googlegroups.com
> <mailto:qswatplus+...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> qswatplus/09987069-6386-4cb2-9c7a-5047f06dc608n%40googlegroups.com
> <https://urldefense.com/v3/__https://groups.google.com/d/msgid/
> qswatplus/09987069-6386-4cb2-9c7a-5047f06dc608n*40googlegroups.com?
> utm_medium=email&utm_source=footer__;JQ!!KwNVnqRv!
> B5eVVvBYwQ2VcBusCP6XZKn_tr1Wt3wjWBwOQEbuLXkv6Gn8sgeX_Nq8Tg6h-
> aA-30IlAEo2zqmJ4lxo$>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "QSWAT+" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to qswatplus+...@googlegroups.com
> <mailto:qswatplus+...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> qswatplus/
> CABvATwoB%3DjQg7f0%2BopV7rRZdnsecODRY6WC_dCncgQx2T473Qg%40mail.gmail.com
> <https://urldefense.com/v3/__https://groups.google.com/d/msgid/
> qswatplus/
> CABvATwoB*3DjQg7f0*2BopV7rRZdnsecODRY6WC_dCncgQx2T473Qg*40mail.gmail.com?utm_medium=email&utm_source=footer__;JSUl!!KwNVnqRv!B5eVVvBYwQ2VcBusCP6XZKn_tr1Wt3wjWBwOQEbuLXkv6Gn8sgeX_Nq8Tg6h-aA-30IlAEo2zgYkJKJY$>.

Moges Berbero

unread,
Jul 17, 2025, 2:24:45 PM7/17/25
to QSWAT+

Hi Chris George,  

 

I am working on a project using SWAT+ software, and I plan to include 100 wetland shapefiles as wetlands or reservoirs using the "Add Lakes" feature in QSWAT during watershed delineation. When I add the shapefiles during the delineation process (using the grid approach), the software appears to accept them, but it does not create reservoirs or wetlands after the HRU processing step.

 

To troubleshoot, I tried adding only three wetland shapefiles and manually assigning the grid cells that correspond to the lake shapefiles. However, I encountered the attached Python error during this process.


Could you please help me understand what might be going wrong?

 

Thanks,

 

Moges

Python_Error.txt

Chris George

unread,
Jul 18, 2025, 6:11:51 AM7/18/25
to Moges Berbero, QSWAT+
I recently fixed some issues with lakes in grid models. Can you try
again with version 3.0.7 from
https://github.com/swat-model/QSWATPlus/releases/tag/v3.0.7.

If it still goes wrong please send me your project folder and I will
investigate.

Chris

On 7/17/2025 7:04 PM, Moges Berbero wrote:
> Hi Chris George, I am working on a project using SWAT+ software, and I
> plan to include 100 wetland shapefiles as wetlands or reservoirs using
> the "Add Lakes" feature in QSWAT during watershed delineation. When I
> add the shapefiles during the
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
>
> Hi Chris George, ____
>
> __ __
>
> I am working on a project using SWAT+ software, and I plan to include
> 100 wetland shapefiles as wetlands or reservoirs using the "Add Lakes"
> feature in QSWAT during watershed delineation. When I add the shapefiles
> during the delineation process (using the grid approach), the software
> appears to accept them, but it does not create reservoirs or wetlands
> after the HRU processing step.____
>
> __ __
>
> To troubleshoot, I tried adding only three wetland shapefiles and
> manually assigning the grid cells that correspond to the lake
> shapefiles. However, I encountered the attached Python error during this
> process.____
>
>
> Could you please help me understand what might be going wrong?____
>
> __ __
>
> Thanks,____
>
> __
> __https:// <https://urldefense.com/v3/__https://>
> > drive.google.com/file/d/1b-fY8BxnIv1EIcLFovPvNAL_9AKYGAK2/view
> <https://urldefense.com/v3/__http://drive.google.com/file/d/1b-
> fY8BxnIv1EIcLFovPvNAL_9AKYGAK2/view__;!!KwNVnqRv!
> ABZ45IYTPOpwhkGp0hrUuQZuMMj1CiOdml-Cxt8cmvzhmY4DpvcCb-
> QVkRLpOImYuyTRK3_nvIzdL4VjcdqElw$>?
> <https://urldefense.com/v3/__https://groups.google.com/d/msgid/__;!!
> KwNVnqRv!ABZ45IYTPOpwhkGp0hrUuQZuMMj1CiOdml-Cxt8cmvzhmY4DpvcCb-
> QVkRLpOImYuyTRK3_nvIzdL4VLHirfOg$>
> >
> qswatplus/09987069-6386-4cb2-9c7a-5047f06dc608n%40googlegroups.com
> <https://urldefense.com/v3/__http://40googlegroups.com__;!!KwNVnqRv!
> ABZ45IYTPOpwhkGp0hrUuQZuMMj1CiOdml-Cxt8cmvzhmY4DpvcCb-
> QVkRLpOImYuyTRK3_nvIzdL4X7WnodMQ$>
> > <https://urldefense.com/v3/__https://groups.google.com/d/msgid/
> <https://urldefense.com/v3/__https://groups.google.com/d/msgid/>
> >
> qswatplus/09987069-6386-4cb2-9c7a-5047f06dc608n*40googlegroups.com
> <https://urldefense.com/v3/__http://40googlegroups.com__;!!KwNVnqRv!
> ABZ45IYTPOpwhkGp0hrUuQZuMMj1CiOdml-Cxt8cmvzhmY4DpvcCb-
> QVkRLpOImYuyTRK3_nvIzdL4X7WnodMQ$>?
> > utm_medium=email&utm_source=footer__;JQ!!KwNVnqRv!
> > B5eVVvBYwQ2VcBusCP6XZKn_tr1Wt3wjWBwOQEbuLXkv6Gn8sgeX_Nq8Tg6h-
> > aA-30IlAEo2zqmJ4lxo$>.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "QSWAT+" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to qswatplus+...@googlegroups.com
> > <mailto:qswatplus+...@googlegroups.com>.
> > To view this discussion visit https://groups.google.com/d/msgid/
> <https://urldefense.com/v3/__https://groups.google.com/d/msgid/__;!!
> KwNVnqRv!ABZ45IYTPOpwhkGp0hrUuQZuMMj1CiOdml-Cxt8cmvzhmY4DpvcCb-
> QVkRLpOImYuyTRK3_nvIzdL4VLHirfOg$>
> > qswatplus/
> >
> CABvATwoB%3DjQg7f0%2BopV7rRZdnsecODRY6WC_dCncgQx2T473Qg%40mail.gmail.com <https://urldefense.com/v3/__http://40mail.gmail.com__;!!KwNVnqRv!ABZ45IYTPOpwhkGp0hrUuQZuMMj1CiOdml-Cxt8cmvzhmY4DpvcCb-QVkRLpOImYuyTRK3_nvIzdL4XYWMQSdQ$>
> > <https://urldefense.com/v3/__https://groups.google.com/d/msgid/
> <https://urldefense.com/v3/__https://groups.google.com/d/msgid/>
> > qswatplus/
> >
> CABvATwoB*3DjQg7f0*2BopV7rRZdnsecODRY6WC_dCncgQx2T473Qg*40mail.gmail.com?utm_medium=email&utm_source=footer__;JSUl!!KwNVnqRv!B5eVVvBYwQ2VcBusCP6XZKn_tr1Wt3wjWBwOQEbuLXkv6Gn8sgeX_Nq8Tg6h-aA-30IlAEo2zgYkJKJY$ <https://urldefense.com/v3/__http://40mail.gmail.com?utm_medium=email&utm_source=footer__;JSUl!!KwNVnqRv!B5eVVvBYwQ2VcBusCP6XZKn_tr1Wt3wjWBwOQEbuLXkv6Gn8sgeX_Nq8Tg6h-aA-30IlAEo2zgYkJKJY$__;!!KwNVnqRv!ABZ45IYTPOpwhkGp0hrUuQZuMMj1CiOdml-Cxt8cmvzhmY4DpvcCb-QVkRLpOImYuyTRK3_nvIzdL4U4xxzGrg$>>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "QSWAT+" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to qswatplus+...@googlegroups.com
> <mailto:qswatplus+...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> qswatplus/a19bff58-30e1-45bc-a215-06b222f67f50n%40googlegroups.com
> <https://urldefense.com/v3/__https://groups.google.com/d/msgid/
> qswatplus/a19bff58-30e1-45bc-a215-06b222f67f50n*40googlegroups.com?
> utm_medium=email&utm_source=footer__;JQ!!KwNVnqRv!
> ABZ45IYTPOpwhkGp0hrUuQZuMMj1CiOdml-Cxt8cmvzhmY4DpvcCb-
> QVkRLpOImYuyTRK3_nvIzdL4WzKjGUfw$>.

Reply all
Reply to author
Forward
0 new messages