search for: usersfinal

Displaying 1 result from an estimated 1 matches for "usersfinal".

2013 Mar 19
1
How to get the rolling standard deviation in rasters?
...hown below. I read this documentation of R movingFun and found that sd was mentioned at http://hosho.ees.hokudai.ac.jp/~kubo/Rdoc/library/raster/html/movingFun.html I wonder if needs any other things to conseder or sd is not at all supplied by this function. sami<- list.files("C:\\Usersfinal-2010", "*.envi", full.names = TRUE) saf=stack(sami) dm <- overlay(saf ,fun=function(x) movingFun(x, fun=mean, n=3, na.rm=TRUE,fill=NA)) ### worked very well ds <- overlay(saf ,fun=function(x) movingFun(x, fun= sd, n=3, na.rm=TRUE)) ### did not work...