dem_split {habtools} | R Documentation |
Split DEM into smaller tiles
Description
Split DEM into smaller tiles
Usage
dem_split(data, size, parallel = FALSE, ncores = (parallel::detectCores() - 1))
Arguments
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. |
Value
List of RasterLayers.
Examples
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)
[Package habtools version 1.0.5 Index]