How to install and configure TauDem in QGIS/Sextante

Instruction for Windows with QGIS 1.9-dev using OSGeo4W installation


It's not very simple to install and configure it in the Sextante interface of QGIS, so I hope this blog can help you.

TauDEM installation 

TauDEM (Terrain Analysis Using Digital Elevation Models) is a suite of Digital Elevation Model (DEM) tools for the extraction and analysis of hydrologic information from topography as represented by a DEM.

First of all, download TauDEM precompiled binaries Command Line Executable for 32bit and 64bit systems.

Attention: you need TauDEM 5.0.6 executables, version 5.2 currently not supported.

Here the direct link for the download:
32 bit: http://hydrology.usu.edu/taudem/taudem5.0/TauDEM5Exex86.zip
64 bit: http://hydrology.usu.edu/taudem/taudem5.0/TauDEM5Exex64.zip

Extract the zip and copy the direcory ("TauDEM5Exex86" in the 32bit case) in the OSGEO4W apps directory (C:\OSGeo4W\apps\).

So, remember:  C:\OSGeo4W\apps\TauDEM5Exex86 will be the "TauDEM command line tools folder" in the Sextante/TauDEM configuration.

MPICH installation 

MPICH is a high performance and widely portable implementation of the Message Passing Interface (MPI) standard.

Then install the MPICH precompiled binaries.

Here the direct link for the download:
32 bit: http://www.mpich.org/static/tarballs/1.4.1p1/mpich2-1.4.1p1-win-ia32.msi
64 bit: http://www.mpich.org/static/tarballs/1.4.1p1/mpich2-1.4.1p1-win-x86-64.msi

Execute the downloaded .msi file (in my case: mpich2-1.4.1.p1-win-ia32.msi) and follow the simply installation procedure.

Remember the installation directory (in my case C:\Program Files\MPICH2\bin), it will be the "MPICH2/OpenMPI bin directory" in the Sextante/TauDEM configuration.

Configure Sextante

Launch QGIS, go in the Analysis (Sextante) menù and choose "Sextante options and configuration".

Open the TauDEM (hidrologic analysis) tree.
  • Click on the "Activate" box.
  • Configure the "MPICH2/OpenMPI bin directory".
  • Configure the "TauDEM command kline tools folder". 

 Now TauDEM is configured and activate and you can use it in Sextante for your hydrological analysis!

Instruction for Linux/Ubuntu with QGIS 1.9

Next post...




Commenti

  1. I've done wath you said, but i have a mesage error when I try to use any tool

    RispondiElimina
  2. Uncaught error while executing algorithm
    Traceback (most recent call last):
    Traceback (most recent call last):
    File "C:/Users/pc2/.qgis//python/plugins\sextante\core\GeoAlgorithm.py", line 145, in execute
    self.processAlgorithm(progress)
    File "C:/Users/pc2/.qgis//python/plugins\sextante\modeler\ModelerAlgorithm.py", line 455, in processAlgorithm
    self.prepareAlgorithm(alg, iAlg)
    File "C:/Users/pc2/.qgis//python/plugins\sextante\modeler\ModelerAlgorithm.py", line 371, in prepareAlgorithm
    if not param.setValue(value):
    File "C:/Users/pc2/.qgis//python/plugins\sextante\parameters\ParameterRaster.py", line 76, in setValue
    return os.path.exists(self.value)
    NameError: global name 'os' is not defined

    RispondiElimina
  3. same error as the last comment. Any workaround?

    RispondiElimina
  4. Indeed:

    Traceback (most recent call last):
    File "C:/XXX/.qgis//python/plugins\sextante\core\GeoAlgorithm.py", line 145, in execute
    self.processAlgorithm(progress)
    File "C:/XXX/.qgis//python/plugins\sextante\taudem\TauDEMAlgorithm.py", line 128, in processAlgorithm
    TauDEMUtils.executeTauDEM(commands, progress)
    File "C:/XXX/.qgis//python/plugins\sextante\taudem\TauDEMUtils.py", line 65, in executeTauDEM
    proc = subprocess.Popen(fused_command, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True).stdout
    File "C:\XXX\Quantum GIS Lisboa\apps\Python27\lib\subprocess.py", line 679, in __init__
    errread, errwrite)
    File "C:\XXX\Quantum GIS Lisboa\apps\Python27\lib\subprocess.py", line 867, in _execute_child
    args = '{} /c "{}"'.format (comspec, args)
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 143: ordinal not in range(128)

    RispondiElimina

Posta un commento

Post popolari in questo blog

Vogliamo anche l'Italia nel registro INSPIRE

I Plugin di QGIS: MultiQml