Upslope area functions
A collection of functions for calculating the upslope area and related measurements for a digital elevation model (DEM).
Based on the method of Tarboton.
See also the upslope area postings on my image processing blog, March-August 2007, http://blogs.mathworks.com/steve.
Requires Image Processing Toolbox.
Functions include dem_flow, dependence_map, facet_flow, fill_sinks, flow_matrix, influence_map, pixel_flow, postprocess_plateaus, upslope_area, vis_dem_flow, and vis_map.
Includes a sample DEM data set.
Cite As
Steve Eddins (2026). Upslope area functions (https://se.mathworks.com/matlabcentral/fileexchange/15818-upslope-area-functions), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Mathematics and Optimization > Mapping Toolbox > Map Display >
- Radar > Mapping Toolbox > Map Display >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
upslope/
upslope/tests/
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.3.0.1 | Updated license |
||
| 1.3.0.0 | Use assertElementsAlmostEqual in unit tests. |
||
| 1.2.0.0 | Version 1.4.2 - Added sample DEM data source information to Contents.m. No functional changes in this version. |
||
| 1.1.0.0 | Version 1.4.1
* Fixed M-file help typo in dependence_map.m. * Allowed input matrix E to contain NaNs in postprocess_plateaus.m. * Added unit test directory. |
||
| 1.0.0.0 | Added flow direction keywords as suggested by reviewer Felix. Thanks! |
