Merging multiple rasters in R
I've been trying to find a time-efficient way to merge multiple raster images in R. These are adjacent ASTER scenes from the southern Kilimanjaro region, and my target is to put them together to obtain one large image. This is what I got so far (object 'ast14dmo' representing a list of RasterLayer objects): # Loop through single ASTER scenes for (i in seq(ast14dmo.sd)) { if (i == 1) { # Merge current with subsequent scene ast14dmo.sd.mrg <- merge(ast14dmo.sd[[i]], ast14dmo.sd[[i+1]], tolerance = 1) } else if (i > 1 && i < length(ast14dmo.sd)) { tmp.mrg <- merge(ast14dmo.sd[[i]], ast14dmo.sd[[i