Hi,

I have rasterstack consisting out of 252 rasters (hyperspectral image) for
which I want to calculate the mean distance to the centroid in a 3*3(*252)
moving window. As the focal function (from the raster package) only works
for rasters, I am currently using the getValuesBlock function (in a loop),
but this seems rather slow. Therefore, I was wondering, if there is a more
efficient way to tackle this problem.

Best,
Ruben

	[[alternative HTML version deleted]]

