Comprehensive geoprocessing workflows for Digital Elevation Model (DEM) analysis using WhiteboxTools. Includes automated workflows for hydrology, geomorphometry, stream network analysis, and morphometry using only free/open-source tools.
# 1. Install pixi (package manager)
curl -fsSL https://pixi.sh/install.sh | bash
# 2. Clone repository
git clone https://github.com/EOResearchCluster/whitebox-dem-workflows.git
cd whitebox-dem-workflows
# 3. Choose installation method:
# Option A: Global install (simplest)
pixi global install whitebox_tools
./run_all_workflows.sh your_dem.tif
# Option B: Project install (recommended, includes utilities)
pixi install
pixi shell
./run_all_workflows.sh your_dem.tif📖 See INSTALL.md for detailed installation instructions
| Method | Setup | Utilities (rp, etc.) |
When to Use |
|---|---|---|---|
| Global | pixi global install whitebox_tools |
❌ No | Quick tests |
| Project | pixi install && pixi shell |
✅ Yes | Daily use (recommended) |
See SETUP_GUIDE.md to choose the right option for you!
- 100% Free Tools: Uses only WhiteboxTools open-source functions (no license required)
- Comprehensive Coverage: 150+ derived products from a single DEM
- Production Ready: Shell scripts with CLI arguments + Python wrapper
- High Performance: WhiteboxTools automatically uses all CPU cores for optimal speed
- Well Documented: Complete usage examples and tool descriptions
- INSTALL.md - Complete installation guide
- QUICKSTART.md - Quick reference guide
- FIXES.md - Changelog and fixes documentation
- GITHUB_PUSH_INSTRUCTIONS.md - Instructions for GitHub setup
Complete hydrological analysis including flow routing, watershed delineation, and topographic indices.
Key outputs: Depression-breached DEMs, flow direction/accumulation, basins, wetness index, stream power
Comprehensive terrain attribute analysis including slope, curvatures, roughness, and landform classification.
Key outputs: Slope, aspect, hillshades, 10+ curvature types, roughness, geomorphons, contours
Detailed stream network extraction, ordering, and analysis.
Key outputs: Extracted streams, stream ordering (Strahler, Horton, etc.), profiles, distance metrics
Advanced morphometric analysis including terrain texture and multi-scale metrics.
Key outputs: Terrain texture, topographic position (multi-scale), downslope index, upslope metrics
- Pixi (package manager): See INSTALL.md
- WhiteboxTools: Auto-installed via pixi
- Bash: Standard on macOS/Linux
- Python 3.11+: Auto-installed with pixi project (for utilities)
# Install dependencies first
pixi install
# Run all workflows
pixi run run-all
# Run individual workflows
pixi run hydrology
pixi run geomorphometry
pixi run stream-network
pixi run morphometry# Run all workflows
./run_all_workflows.sh your_dem.tif
# Run individual workflows
./01_hydrology.sh your_dem.tif
./02_geomorphometry.sh your_dem.tif
./03_stream_network.sh your_dem.tif
./04_morphometry.sh your_dem.tifNote for WSL users: Use
pixi runcommands instead of direct script execution to ensure WhiteboxTools is in your PATH.
# Run all workflows
./run_workflows.py --all --dem your_dem.tif
# List available workflows
./run_workflows.py --list
# Run specific workflow
./run_workflows.py --workflow hydrology --dem your_dem.tifNote: WhiteboxTools automatically uses all available CPU cores for each tool, so workflows run sequentially for optimal performance. Running multiple workflows simultaneously would cause CPU contention and slow things down.
# Load utilities
source utils.sh
# Quick raster preview
rp slope # View any raster matching "slope"
rp hillshade --cmap gray # Custom colormap
rp dem --hillshade # Apply hillshade overlay
# Check workflow status
workflow_status # See what's completed
# List outputs
list_outputs # All workflows
list_outputs hydrology # Specific workflow
# Compare rasters
compare_rasters dem.tif dem_breached.tifoutputs/
├── 01_hydrology/ # ~30 files
├── 02_geomorphometry/ # ~50 files
├── 03_stream_network/ # ~25 files
└── 04_morphometry/ # ~30 files
If you use these workflows in your research, please cite:
WhiteboxTools:
Lindsay, J. B. (2016). Whitebox GAT: A case study in geomorphometric analysis.
Computers & Geosciences, 95, 75-84.
This Repository:
EOResearchCluster. (2025). WhiteboxTools DEM Analysis Workflows.
GitHub: https://github.com/EOResearchCluster/whitebox-dem-workflows
MIT License - see LICENSE file for details.
- Issues: Open an issue on GitHub
- Documentation: See QUICKSTART.md and FIXES.md
- WhiteboxTools: https://github.com/jblindsay/whitebox-tools
Made with ❤️ by EOResearchCluster