Displaying 2 results from an estimated 2 matches for "overlaylist".
Did you mean:
overlaydisk
2013 Mar 19
1
How to get the rolling standard deviation in rasters?
...vi", 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
Error in .overlayList(x, fun = fun, filename = filename, ...) :
cannot use this formula, probably because it is not vectorized
> saf
class : RasterStack
dimensions : 720, 1440, 1036800, 12 (nrow, ncol, ncell, nlayers)
resolution : 0.25, 0.25 (x, y)
extent...
2013 Mar 18
4
Why stacking rasters return NAs?
...ations ,basically
calculating the moving average.
dir2 <- list.files("D:\\2010+2011", "*.bin", full.names = TRUE)
saf=stack(dir2)
movi <- overlay(stack(saf),fun=function(x) movingFun(x, fun=mean,
n=3, na.rm=TRUE))
Error in .overlayList(x, fun = fun, filename = filename, ...) :
cannot use this formula, probably because it is not vectorized
I then checked the data but found that all values were returnd as NA and
this may explain why i am getting the error.
saf
class : RasterStack
di...