[R-sig-Geo] calculate "regional" slope

Dominik Schneider Dominik.Schneider at colorado.edu
Fri Feb 19 01:59:00 CET 2016

I need to calculate slope at different scales. In the case below, r is a
0.5deg resolution raster and I want the slope for 1.5 deg centered on each
of those 0.5 deg pixels. I'm trying to estimate which side of mountain
range each pixel is on. So the resulting raster would have the same number
of pixels as r. The edges can be NA.
any suggestions would be appreciated. Thanks

r <- raster(nrows=22, ncols=20, xmn=-58, xmx=-48, ymn=-33, ymx=-22)

	[[alternative HTML version deleted]]

More information about the R-sig-Geo mailing list