I have a slope layer and I want to calculate the average slope along a line. This line isn't necessarily straight (e.g its a route, I would like to be able to input geographic coordinates along that line and have a script that outputs the average slope). Is this possible?
[GIS] Calculating average slope along line using ArcGIS Desktop
arcgis-desktoparcmaparcpyslope
Related Question
- [GIS] How to i calculate average slope and length of slope of a multiple field farm in Arcmap 10
- [GIS] How to compute average slope and area-weighted average slope
- ArcGIS Desktop – Calculating Average Stream Slope at Each Location along Stream
- [GIS] Calculating slope between two points on DEM using ArcMap
Best Answer
A simple approach that you could automate in ArcMap using Python would be to break your line into points at a chosen interval
or even just at the vertices. Then extract values to points from the raster to get the longitudinal profile (make sure to select the interpolation option). Then simply calculate the average value of those points.As @whuber mentioned there is an accuracy trade-off with simplicity, but if you're looking for a simple solution that you could script quickly the above should help.