I am estimating the euclidian distance in a huge raster with the package raster of R in Windows system. However, the processing takes a lot of time (in this case, more than 12 hours!). I am wondering if there is any more efficient way to calculate it, reducing the processing time (like multithread processing).

The raster info is the following:

class : RasterLayer

dimensions : 4320, 8640, 37324800 (nrow, ncol, ncell)

resolution : 0.04166667, 0.04166667 (x, y)

extent : -180, 180, -90, 90 (xmin, xmax, ymin, ymax)

coord. ref. : +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0

data source : D:\Dropbox\Layers\railways_2.5m.tif

names : railways_2.5m

values : 1, 1 (min, max)

My code is the following:

railways.raster.res

More Francisco Alejandro López Núñez's questions See All
Similar questions and discussions