dem_split {habtools} | R Documentation |
Split DEM into smaller tiles
dem_split(data, size, parallel = FALSE, ncores = (parallel::detectCores() - 1))
data |
Digital elevation model of class RasterLayer. |
size |
Size of tiles, in the same unit as the RasterLayer. |
parallel |
Logical. Use parallel processing? Note: parallel must be installed. |
ncores |
Number of cores to use when parallel = TRUE. |
List of RasterLayers.
L <- habtools::extent(horseshoe) # size of horseshoe = 8m
size <- 2 # size of target tiles
(L / size)^2 # number of target tiles = 16
dem_list <- dem_split(horseshoe, 2)
length(dem_list)