Sample a random DEM with specified size from a larger DEM

sample_dem(data, L)

Arguments

data

Digital elevation model of class RasterLayer.

L

Size of square to cut out of DEM.

Value

Digital elevation model of class RasterLayer.

Examples

dem1 <- sample_dem(horseshoe, L = 4)
raster::plot(dem1)