[R-sig-hpc] Fwd: focal_hpc (spatial.tools) in R for parallel computing

Hariom Singh hariom.cs1 at gmail.com
Mon May 16 11:15:10 CEST 2016

Hello list,

I'm getting difficulty in parallel computing for moving window i.e I
applied focal_hpc or rasterEngine for the same. But unfortunately the
function is taking very long time for the computation. As focal of raster
package is taking very less time. but it is not parallel.

Kindly help me out.I would highly appreciate for your time and concern.

 sample source code:


xr <- raster("/home/hariom/uk/uk_veg.img")

xr dimension:: 12577, 13708

p <- projection(xr)
e <-  extent(xr)

*aggr <- focal(xr, matrix(1,5,5), fun=mean)*

focal -> focal_hpc replacement

*window_mean <- function(x){    mn <- sum(x)/25
return(mn)}sfQuickInit()aggr <-

Thanks & regards,

Hariom Singh

	[[alternative HTML version deleted]]

More information about the R-sig-hpc mailing list