dtarb / TauDEM

Terrain Analysis Using Digital Elevation Models (TauDEM) software for hydrologic terrain analysis and channel network extraction.
http://hydrology.usu.edu/taudem
Other
228 stars 116 forks source link

Tau DEM with QGIS error "Failed to Execute" #187

Open AnitaBianchi opened 5 years ago

AnitaBianchi commented 5 years ago

Hello I installed the latest TauDEM 5.3 Complete Windows installer from the official website and activated it in QGIS 2.18.1. I have a digital elevation model (.tif format). I tried to run the algorithm "Pit Remove", but there ist an error loading the result layer, means there is no resulting file "fel.tif" at the given path (please see attached image). I assumed, the path is too long (some where as temporary file) and i gave a shorter path where the resulting fel.tif should be saved. I does not work.

By consulting the TROUBLESHOOTING on http://hydrology.usu.edu/taudem/taudem5/support.html i tried to run the algorithm by the windows command prompt. I get a result.

My question is why it doesn't work in QGIS? I know that some colleagues of mine can use TauDEM with QGIS.

Thank you in advance Regards, Anita

Input for Pit remove: pitremove_input Missing output of Pit remove: pitremove_output With command prompt: pitremove_with_commandprompt

dtarb commented 5 years ago

I do not know how the QGIS implementation works (or what could be wrong).

Looking at the screen shot I am a little bit suspicious about the output file specification and the directory name that includes ~. Perhaps try specifying a name for the output file, rather than a temporary location.

I will mention a few of the QGIS users and perhaps one of them could point you in the right direction. @solomonvimal @KittelC

solomonvimal commented 5 years ago

I get the same error. It looks like a bug in the processing toolbox. I think the TauDEM Python wrapper is trying to load the output of pitremove before the command is finished executing. I don't have a fix, but a temporary workaround (works for me) is to run the tool twice with the same output path, and you will see the output load into your workspace as expected. But that can be inefficient if you have big files. Another workaround is to load the output manually. The authors of the QGIS processing toolbox (@volaya @alexbruy) might be able to help fix the bug.

AnitaBianchi commented 5 years ago

Thank you for your speedy answer!

@dtarb : I tried specifying a name and directory for the output file, but it did not help. I become the same error message. @solomonvimal : Even if I run the tool twice with the same output path i don't get the output file neither in the given directory nor into my workspace. The output file is not generated.

I work with QGIS version 2.18.21.

Do you have others proposal for solution or idea? Thank you in advance for your help!

AnitaBianchi commented 5 years ago

Dear Víctor @volaya and Alexander @alexbruy

could wou please help me?

mach0 commented 5 years ago

according to the error report this should be only a typo in the call-> mpiexex instead of mpiexec - should be easy to fix Can take a look later in the evening.. edit: was this only a commandline test with the wrong command? I avoid using windows so I am not familiar with the output windows of windows execution.

AnitaBianchi commented 5 years ago

Hi @mach0

Yes, it was a typo in the call. But it was just an example with the cmd.

The main problem persists: I can not run any TauDEM Tools on QGIS Version 2.18.