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. For more information on the development of TauDEM please refer to the wiki https://github.com/dtarb/TauDEM/wiki. For the latest release and detailed documentation please refer to the website: http://hydrology.usu.edu/taudem. Building on Linux ----------------- Both make and Cmake options are available to accommodate different preferences and system demands Using make: > cd TauDEM > mkdir bin > cd src > make The executables are written to bin directory Using Cmake: > cd src && mkdir build && cd build > cmake .. > make && make install The executables are written to /usr/local/taudem directory. This can be changed at the second last line (following DESTINATION) if desired. Dependencies ------------ Dependencies include GDAL, MPI and C++ 2011. On Windows Dependencies are provided in the Windows Installer On Linux dependencies can be tricky. I've added the following scripts to help, though you may need to adjust based on your system. GDAL: GDAL.sh installs from GDAL source. You could also try apt-get install gdal-bin libgdal-dev apt-get install gdal-bin=2.1.3+dfsg-1~xenial2 apt-get install libmpich-dev (on Bionic 18.04 LTS) [Suggested by another user - not verified] C++: The script GCC.sh contains some commands I've used to get the required compiler. MPI: MPICH2.sh installs from mpich.org stable distribution source. sudo apt-get install openmpi-bin may also be an option, but I have not tried this. Testing ------- See the repository https://github.com/dtarb/TauDEM-Test-Data for test data and scripts that exercise every function. These can also serve as examples for using some of the functions.
Terrain Analysis Using Digital Elevation Models (TauDEM) software for hydrologic terrain analysis and channel network extraction.
I did a complete Windows install (Version 5.3.4), and I keep getting this error message:
"The program can't start because gdal111.dll is missing from your computer. Try reinstalling the program to fix this problem."
I used the recommended Complete Installer. When I went to download the GDAL 111 individually, it took me to a broken page.
I've reinstalled with no luck. Tried using both the command prompt and the ArcGIS toolbox. Any thoughts?
I've installed TauDEM as per the instructions on Windows 10 by using the TauDEM installer as well as Microsoft MPI (v8.1). I can access Taudem via the command line and can also add the toolbox in Arc. On running a command following the instructions from here using my own DEM (which is a valid GeoTiff) as per:
mpiexec -n 8 PitRemove -z ./ny_crop.tif -fel ./ny_crop_fel.tif
I am receiving an error stating:
PitRemove.exe – Entry Point Not Found
The procedure entry point sqlite3_create_function_v2 could not be located in the dynamic link library C:\Program Files\GDAL\spatialite.dll.
My installation has the following added to my path - as added by the TauDEM and MPI installers:
C:\Program Files\Microsoft MPI\Bin\ C:\GDAL C:\Program Files\GDAL C:\Program Files\TauDEM\TauDEM5Exe
The sptiallite.dll is located as in the error message at C:\Program Files\GDAL\spatialite.dll
I am wondering if the
Entry Pointerror may be linked to the C runtime library or .NET version I have - which versions were used/tested with TauDEM? I wonder if there is a version incompatibility at my end.
I moved an ArcMap project from my desktop to my MacBook laptop. I repeat the analysis steps using the same input files. All goes well until I get to MoveOutletstoStreams and there the script fails. Something to do with versions? I just downloaded the latest TauDEM to my MacBook, which is running ArcGIS 10.4
I tried to improve build system a bit in
Developbranch, but looks like it is broken
In file included from /home/alex/devel/TauDEM/src/commonLib.h:101:0, from /home/alex/devel/TauDEM/src/tiffIO.h:49, from /home/alex/devel/TauDEM/src/tiffIO.cpp:47: /home/alex/devel/TauDEM/src/linearpart.h: In member function ‘void linearpart<datatype>::savedxdyc(tiffIO&)’: /home/alex/devel/TauDEM/src/linearpart.h:523:16: error: invalid use of incomplete type ‘class tiffIO’ dxc[i]=obj.getdxc(globalY); ^ In file included from /home/alex/devel/TauDEM/src/linearpart.h:42:0, from /home/alex/devel/TauDEM/src/commonLib.h:101, from /home/alex/devel/TauDEM/src/tiffIO.h:49, from /home/alex/devel/TauDEM/src/tiffIO.cpp:47: /home/alex/devel/TauDEM/src/partition.h:46:7: note: forward declaration of ‘class tiffIO’ class tiffIO; ^ In file included from /home/alex/devel/TauDEM/src/commonLib.h:101:0, from /home/alex/devel/TauDEM/src/tiffIO.h:49, from /home/alex/devel/TauDEM/src/tiffIO.cpp:47: /home/alex/devel/TauDEM/src/linearpart.h:524:13: error: invalid use of incomplete type ‘class tiffIO’ dyc[i]=obj.getdyc(globalY); ^ In file included from /home/alex/devel/TauDEM/src/linearpart.h:42:0, from /home/alex/devel/TauDEM/src/commonLib.h:101, from /home/alex/devel/TauDEM/src/tiffIO.h:49, from /home/alex/devel/TauDEM/src/tiffIO.cpp:47: /home/alex/devel/TauDEM/src/partition.h:46:7: note: forward declaration of ‘class tiffIO’ class tiffIO;
I download and installed TauDEM for examining the capability of the tool to edit the DEM. I extracted and imported the elevation to ArcMap and ran the 'pit remove' tool. When it finished running it shows error message;
Executing: Calculate Statistics
Failed script PitRemove...
Traceback (most recent call last): File "C:\Program Files\TauDEM\TauDEM5Arc\PitRemove.py", line 63, in
arcpy.CalculateStatistics_management(outFile) File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\management.py", line 13825, in CalculateStatistics raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000732: Input Raster Dataset: Dataset D:\work\projects\test\Demo\cubdemfel.tif does not exist or is not supported Failed to execute (CalculateStatistics).
Failed to execute (PitRemove).
I could not process further. Any help would be greatly appreciated.
Hi. On Mac OS X, I am seeing many processes of the single-file version (5.1.1) of TauDEM finishing with open file handles, whereby the output file(s) become unreadable by other apps. It looks like this has been fixed in 45686615, and maybe other commits in this repository.
I would like to know if these fixes are planned to be ported to the single-file version? Thanks.
I get this when running make in Debian 8.4, please let me know how to fix this if there's a way:
mpic++ -g -c areadinfmn.cpp -o areadinfmn.o In file included from areadinfmn.cpp:46:0: commonLib.h:46:21: fatal error: ogr_api.h: Aucun fichier ou dossier de ce type
compilation terminated. makefile:179: recipe for target 'areadinfmn.o' failed make: *** [areadinfmn.o] Error 1
StreamNet version 5.3.8 Input file stream_raster_grid.tif has geographic coordinate system. This run may take on the order of 1 minutes to complete. This estimate is very approximate. Run time is highly uncertain as it depends on the complexity of the input data and speed and memory of the computer. This estimate is based on our testing on a dual quad core Dell Xeon E5405 2.0GHz PC with 16GB RAM. Input file flow_dir_grid_d8.tif has geographic coordinate system. Input file contributing_area_grid_d8.tif has geographic coordinate system. Input file elev.tif has geographic coordinate system. Evaluating distances to outlet Creating links ERROR 10: Name was NULL in OGR_DS_CreateLayer ERROR 10: Pointer 'hLayer' is NULL in 'OGR_L_CreateField'.
stream_reach_file warning: Layer creation failed.
Dear all, I'm trying to use TauDEM before begin with other tools, as SedinConnect. I'm using arcGIS 10.2.1 over windows 10. I installed all the tools indicated in the download page, listed here: GDAL 201 for 64 bit Windows PC GDAL 2.1.0 for Python 2.7 Microsoft MPI v7.1 Microsoft Visual C++ 2015 Redistributable Package (x86) Microsoft Visual C++ 2015 Redistributable Package (x64) I installed Microsoft MPI v7.1 by running as administrator from the contextual menu. Following the advice of SedInConnect people (https://github.com/HydrogeomorphologyTools/SedInConnect_2.3/blob/master/Guidelines_tools_stand-alone.docx), I turned the UAC (User Account Control) to the lowest value to prevent Windows from blocking MPI activity. I installed TauDEM 5.3.7 by running as administrator from the contextual menu. I installed the arcGIS toolbox and tried to run pitremove from there. I obtain the error R6034:
And the ERROR 000732 in the arcGIS pit remove dialog, who cannot calculate statistics in the file I put as output. I tried to run from the command line, both by using the command prompt and my GIT bash: mpiexec -n 8 pitremove -z "./FromENVI/S36W072_73_DEM_RBB_UTM18S.tif" -fel "./FromTauDEM/RBB.tif"
And I obtained the same error R6034.
I don't know what to do. I'll appreciate your help, Violeta
Try the below configuration:
PitRemove.exe "WATERSHED TESTING2.tif" D8FlowDir.exe -p "WATERSHED TESTING2p.tif" -sd8 "WATERSHED TESTING2sd8.tif" -fel "WATERSHED TESTING2fel.tif" aread8.exe -p "WATERSHED TESTING2p.tif" -ad8 "WATERSHED TESTING2ad8.tif" -wg "WATERSHED TESTING2ss.tif" gridnet.exe -p "WATERSHED TESTING2p.tif" -plen "WATERSHED TESTING2plen.tif" -tlen "WATERSHED TESTING2tlen.tif" -gord "WATERSHED TESTING2gord.tif" peukerdouglas.exe -fel "WATERSHED TESTING2fel.tif" -ss "WATERSHED TESTING2ss.tif" aread8.exe -p "WATERSHED TESTING2p.tif" -ad8 "WATERSHED TESTING2ssa.tif" -wg " "WATERSHED TESTING2ss.tif"" Threshold.exe -ssa "WATERSHED TESTING2ssa.tif" -src "WATERSHED TESTING2src.tif" -threshold 50 streamnet.exe -fel "WATERSHED TESTING2fel.tif" -p "WATERSHED TESTING2p.tif" -ad8 "WATERSHED TESTING2ad8.tif" -src "WATERSHED TESTING2src.tif" -ord "WATERSHED TESTING2ord.tif" -tree "WATERSHED TESTING2tree.dat" -coord "WATERSHED TESTING2coord.dat" -net "WATERSHED TESTING2net.shp" -w "WATERSHED TESTING2w.tif"
The output is very different from what we can see on manual inspection.
From 3D view, it seems that the streamlines mostly flow across from top left to bottom right or vice versa.
But the output generated by TauDEM seems to indicate that the flow goes in another direction, namely, from top right to bottom left.
With or without the -nc parameter, the flow directions are almost the same in TauDEM, but very different from what we can see by visual inspection.
Changing different threshold value still doesn't change the flow directions.
Why is it so? And how can I fix this?
Here's the tiff file WATERSHED TESTING2.zip
I'm trying to get TauDEM compiled on Ubuntu Xenial, and after the make, I get this error:
[ 0%] Building CXX object CMakeFiles/setregion.dir/SetRegionmn.cpp.o /home/vagrant/TauDEM/src/SetRegionmn.cpp: In function ‘int main(int, char**)’: /home/vagrant/TauDEM/src/SetRegionmn.cpp:108:1: error: jump to label ‘errexit’ [-fpermissive] errexit: ^ /home/vagrant/TauDEM/src/SetRegionmn.cpp:55:23: note: from here if(argc <= 2) goto errexit; ^ /home/vagrant/TauDEM/src/SetRegionmn.cpp:56:9: note: crosses initialization of ‘int i’ int i=1; ^ CMakeFiles/setregion.dir/build.make:62: recipe for target 'CMakeFiles/setregion.dir/SetRegionmn.cpp.o' failed make: *** [CMakeFiles/setregion.dir/SetRegionmn.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/setregion.dir/all' failed make: *** [CMakeFiles/setregion.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2
Edit: I'm using the Develop branch from git.
I just can't figure it out, I'm trying to use the toolbox in Arcmap, but when I put in my DEM file I get an error message saying
"updateParameters Execution Error: Runtime error Traceback (most recent call last): File "C:\Program Files\TauDEM\TauDEM5Arc\TauDEM Tools.tbx#PitRemove.UpdateParameters.py", line 4, in File "C:\Program Files\TauDEM\TauDEM5Arc\TauDEM Tools.tbx#PitRemove.UpdateParameters.py", line 28, in updateParameters UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 21: ordinal not in range(128) "
Thank you, Liza
When specific file names are provided on streamnet command line, do not write tree, coord, or net files unless all three are given.
These files cannot be written in parallel or directly to cloud storage, so it can be useful to omit them when writing rasters in VRT format.
Also fix simple usage (without specific file names) net file output.
Final rank could have up to numranks extra rows, resulting in load and memory imbalance for large parallel runs.
Also remove broken and unused getGridXY() function.
Based on dinf-dxdyc-fix branch due to conflicting redundant change to calling localToGlobal().
Greatly improve raster output performance for large runs on parallel filesystems by writing one TIF file per rank along with a VRT file. Writing to /path/to/foldername/filename.vrt creates the directory foldername if it does not exist and writes data to files /path/to/foldername/filename.%d.tif
No changes are needed to read VRT files.
The VRT TIF files are written in tiled format as there is no performance penalty when writing but a dramatic performance increase when reading small areas from very wide rasters.
Modify D8FlowDir algorithms to implicitly increment points in the interiors of flats that are all at the same level, and to only explicitly update points at the edges. Produces identical output but is much faster for large inputs with large flat areas.
v5.3.8(Dec 18, 2016)
This is a C++ executable only release to support rapid watershed delineation. No new windows installer at this time.
- Single processor CatchOutlets function to use in RWD preprocessing
- Edit raster utility function to use in RWD data preparation
- Readoutlets handling of id field type generalized
- Gagewatershed changed to use -1 to indicate no downstream watershed
- Gagewatershed changed to accommodate duplicate input points
- Possible infinite loop in move outlets fixed
v5.3.7(Oct 18, 2016)
12/18/16 Removed the Pre-release label as use over the last 2 months has not revealed critical problems.
- Python scripts updated for ArcGIS Pro.
- GageWatershed updated to identify attached upstream watershed for rapid watershed delineation
- FlowDirCond flow direction conditioning command line tool added
- Clarified streamnet field names
- GDAL and MPI library dependencies updated
- TauDEM537_setup.exe. 89 MB Complete Windows installer with all GDAL, MPI and run time library dependencies
- pyfiles537.zip. ArcGIS toolbox and Python Scripts
- TauDEM537exeWin32.zip. Windows 32 bit executables
- TauDEM537exeWin64.zip. Windows 64 bit executables
v5.3.5(May 3, 2016)
Fixed bug in handling of features that do not have an EPSG code and error and warning reporting related to spatial references.
- TauDEM535_prerelease.exe. 77 MB Complete Windows installer with all GDAL, MPI and run time library dependencies
- pyfilesv535.zip. ArcGIS toolbox and Python Scripts
- TauDEM535exeWin32.zip. Windows 32 bit executables
- TauDEM535exeWin64.zip. Windows 64 bit executables
v5.3.4(Mar 15, 2016)
Fixed bug in capability to handle BIGTIFF files with compression
- TauDEM534_prerelease.exe. 77 MB Complete Windows installer with all GDAL, MPI and run time library dependencies
- pyfilesv534.zip. ArcGIS toolbox and Python Scripts
- TauDEM534exeWin32.zip. Windows 32 bit executables
- TauDEM534exeWin64.zip. Windows 64 bit executables
v5.3.3(Mar 11, 2016)
Fixed line string bug Fixed Peuker Douglas Stream Definition tool bug
- TauDEM533_prerelease.exe. 77 MB Complete Windows installer with all GDAL, MPI and run time library dependencies
- pyfilesv533.zip. ArcGIS toolbox and Python Scripts
- TauDEM533exeWin32.zip. Windows 32 bit executables
- TauDEM533exeWin64.zip. Windows 64 bit executables
v5.3.2(Feb 20, 2016)
- Added support for multiple OGR feature types
- Added SINMAP function and ArcGIS tool to help create SINMAP region inputs
- Switched raster format default to tiff with LZW compression
- TauDEM532_prerelease.exe. 77 MB Complete Windows installer with all GDAL, MPI and run time library dependencies
- pyfilesv532.zip. ArcGIS toolbox and Python Scripts
- TauDEM532exeWin32.zip. Windows 32 bit executables
- TauDEM532exeWin64.zip. Windows 64 bit executables
v5.3.1(Nov 22, 2015)
- Switched to using OGR for vector input and output
- Added connect down function
- TauDEM531_prerelease.exe. 77 MB Complete Windows installer with all GDAL, MPI and run time library dependencies
- pyfilesv531.zip. ArcGIS toolbox and Python Scripts
- TauDEM531exeWin32.zip. Windows 32 bit executables
- TauDEM531exeWin64.zip. Windows 64 bit executables
v5.3(Oct 13, 2015)
- Switched to using GDAL Library for Rasters.
- Added functionality to perform calculations in geographic (latitude and longitude) coordinates.
- Combined separate code bases from versions 5.2 and 5.1.x
- TauDEM530.exe. 77 MB Complete Windows installer with all GDAL, MPI and run time library dependencies
- pyfilesv530.zip. ArcGIS toolbox and Python Scripts
- TauDEM530exeWin32.zip. Windows 32 bit executables
- TauDEM530exeWin64.zip. Windows 64 bit executables