3
I need to do a multiple montage rasters
for a single raster
. Both the function raster::merge
how much raster::mosaic
work well in this situation, but I need to make a do.call
to call the function to mount multiples rasters
who are on a list.
How to do this parallelized? How to do do do do.call faster?
require(raster)
r <- raster(ncol=100, nrow=100)
r1 <- crop(r, extent(-10, 11, -10, 11))
r1[] <- 1:ncell(r1)
r2 <- crop(r, extent(0, 20, 0, 20))
r2[] <- 1:ncell(r2)
r3 <- crop(r, extent(9, 30, 9, 30))
r3[] <- 1:ncell(r3)
rast.list <- list(r1, r2, r3)
rast.list$fun <- mean
rast.mosaic <- do.call(mosaic,rast.list)
try to put a minimum reproducible example of what you are doing. The way your question is, it will be difficult to get a good answer
– Daniel Falbel
-1 until a reproducible example is provided.
– Flavio Barros
@Flaviobarros , the example seems reproducible
– Tomás Barcellos