[R-sig-Geo] Proper algorithms for computing slopes for global/polar DEMs?

Tim Keitt tkeitt at utexas.edu
Fri Feb 20 23:53:42 CET 2015


On Fri, Feb 20, 2015 at 2:05 PM, Jonathan Greenberg <jgrn at illinois.edu>
wrote:

> r-sig-geo'ers:
>
> We're trying to figure out a good algorithm for computing topographic slope
> for Alaska, which is both huge and near the pole.  Our DEM is currently in
> geographic coordinates, but we need slope over a fixed distance (change in
> elevation vs. horizontal meters).  The issue is, there is no projection to
> switch this to to get an accurate set of slope calculations.  Of course
> with degrees, the X and Y distances change over the globe -- so the
> horizontal distances will be variables from one window to the next.  I have
> seen various solutions published, but I wanted to see if someone knows of a
> decent coded-up algorithm for this.  Thoughts?
>
> Some background:
>
> http://gis.stackexchange.com/questions/14750/how-to-use-srtm-global-dem-for-slope-calculation/40464#40464
>
> --j
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

But slope is linear, so just take the ratio dz/dx (in one dimension --
slightly more involved in 2d as I assume you want the slope along the
steepest gradient). You just need the distance between grid cells and the
elevation change.

THK

-- 
http://www.keittlab.org/

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list