Problem with TauDEM

1,251 views
Skip to first unread message

Jazmine Burgess

unread,
May 7, 2022, 5:37:54 PM5/7/22
to QSWAT+
Hi all, I keep getting the same TauDEM error message when I delineate the watershed. it happens when I click 'create streams' and never used to happen before now. I have updated to all the latest versions but that's not fixing it.


TauDEM error.JPG

Any advice would be much appreciated as I'm new to QSWAT+ and going round in circles

Thanks

Chris George

unread,
May 8, 2022, 8:00:08 AM5/8/22
to Jazmine Burgess, QSWAT+
What version of QGIS are you running?

What version of QSWAT+ are you running?

When you open a command shell, cd to C:\SWAT\SWATPlus\TauDEM539Bin, and
execute the command

pitremove

what happens?

If the call of pitremove generates an error saying that gdal304.dll was
not found, look in C:\Program Files\QGIS 3.22.4\bin (you need to use the
path for your version of QGIS) and look for gdalnnn.dll, where nnn might
be, for example, 304, or 301. What do you find?

Please let me know the answers to all these 4 questions.

If the error in pitremove is that it wants gdal301.dll and your QGIS has
gdal304.dll, or vice versa, then the problem is mismatched versions of
QGIS and QSWAT+ and you need to check the QSWAT+ installation instructions.

Chris

On 5/5/2022 2:29 AM, Jazmine Burgess wrote:
> Hi all, I keep getting the same TauDEM error message when I delineate
> the watershed. it happens when I click 'create streams' and never used
> to happen before now. I have updated to all the latest versions but
> that's not fixing it.
>
>
> TauDEM error.JPG
>
> Any advice would be much appreciated as I'm new to QSWAT+ and going
> round in circles
>
> Thanks
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/qswatplus/1a8f73d0-7fa3-406b-9454-961be727ea1fn%40googlegroups.com
> <https://groups.google.com/d/msgid/qswatplus/1a8f73d0-7fa3-406b-9454-961be727ea1fn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Jazmine Burgess

unread,
May 17, 2022, 6:04:06 PM5/17/22
to QSWAT+
Resolved thanks, the problem was mismatched versions of
QGIS and QSWAT+ 

Bcarine

unread,
May 30, 2022, 9:08:42 AM5/30/22
to QSWAT+
Hi, I am running into the same problem. What version of QGIS and QSWAT should I install. (I am using a mac)

Kristina Gumgowski

unread,
Aug 14, 2022, 8:53:46 AM8/14/22
to QSWAT+
I have the same issue. My version of QGIS is 3.22.8 with the gdal305.dll. However I am wondering which version of QGIS 3.22.xx will be installed with gdal304.dll  ?

Kristina Gumgowski

unread,
Aug 14, 2022, 8:53:46 AM8/14/22
to QSWAT+
Hello! I have the same problem. I have installed QGIS 3.22.18 and SWATPlus3_9 installed as described in the installation guide. However my QGIS seems to use gdal305.dll. Which Version of QGIS should I install to get gdal304.dll ? Is the problem that it is the version 3.22.18 ?

Thanks for your hlep.

On Monday, May 30, 2022 at 3:08:42 PM UTC+2 saintlou...@gmail.com wrote:

Kristina Gumgowski

unread,
Aug 19, 2022, 3:45:03 PM8/19/22
to QSWAT+
Hi!
update for other readers: By try and error I found matching versions of QGIS and SWAT+. Apparently QGIS version 3.22.1-1 uses gdal304.dll


You received this message because you are subscribed to a topic in the Google Groups "QSWAT+" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qswatplus/4Dm10GZRC7s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qswatplus+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qswatplus/110e92ec-f99a-4e09-a36a-a69daf93da67n%40googlegroups.com.

David de Andrade Costa

unread,
Dec 19, 2022, 2:07:13 AM12/19/22
to QSWAT+
Hello Cris, 
I sent a message earlier and I believe that now I managed to solve the problem. If possible, give me your opinion.

In QGIS version 3.24 and SWAT+2.1.5 everything is working perfectly.

The issue is that SWAT recommends using QGIS 3.22, which would be the most stable version. However, on the QGIS website, if you click on more stable version, you will download version 3.22.13, which has compatibility problems with SWAT for stream generation.

To resolve this, simply search for all versions on the QGIS website and download 3.22.0 (https://download.qgis.org/downloads/). At least, for me it worked.

But what would be the root problem?
After searching the forum I realized that there is a file that needs to have compatible versions in the Taudem folder and in the QGIS folder. It is the GDAL<XXX>.DLL file (where <XXX> is the version number), this file is located inside the folders C:\SWAT\SWATPlus\TauDEM539Bin and C:\Program Files\QGIS 3.22.13\bin, in my case with my software versions. 

For exemple:
In QGIS 3.24 we have GDAL304.DLL and in SWAT+ we have the same file. Everything works fine. 
In QGIS 3.22.13 we have GDAL306.DLL and in SWAT+ we have GDAL304. Stream generation does not work.
In QGIS 3.22.0 we have GDAL303.DLL and in SWAT+ we have GDAL304. Everything works. The files have different codes but apparently they are compatible.

All the best, David.

David de Andrade Costa

unread,
Dec 19, 2022, 2:07:14 AM12/19/22
to QSWAT+
For me, in QGIS version 3.24 and SWAT+2.1.5 everything is working perfectly.

The issue is that SWAT website recommends using QGIS 3.22, which would be the most stable version. However, on the QGIS website, if you click on more stable version, you will download version 3.22.13, which has compatibility problems with SWAT for stream generation.

To resolve this, simply search for all versions on the QGIS website and download 3.22.0 (https://download.qgis.org/downloads/). At least, for me it worked.

But what would be the root problem?
After searching the forum I realized that there is a file that needs to have compatible versions in the Taudem folder and in the QGIS folder. It is the GDAL<XXX>.DLL file (where <XXX> is the version number), this file is located inside the folders C:\SWAT\SWATPlus\TauDEM539Bin and C:\Program Files\QGIS 3.22.13\bin, in my case with my software versions. 

For exemple:
In QGIS 3.24 we have GDAL304.DLL and in SWAT+ we have the same file. Everything works fine. 
In QGIS 3.22.13 we have GDAL306.DLL and in SWAT+ we have GDAL304. Stream generation does not work.
In QGIS 3.22.0 we have GDAL303.DLL and in SWAT+ we have GDAL304. Everything works. The files have different codes but apparently they are compatible.

All the best, David.

Em domingo, 8 de maio de 2022 às 09:00:08 UTC-3, Chris George escreveu:
Reply all
Reply to author
Forward
0 new messages