Get a multi-year stack of MapBiomas Peru LULC rasters
Source:R/mapbiomas-lulc.R
get_mapbiomas_peru_lulc_series.RdDownloads and stacks multiple single-year LULC rasters from MapBiomas
Peru (see get_mapbiomas_peru_lulc), each cropped to the same
area of interest if provided. Progress uses cli.
Arguments
- years
Integer vector. Years to download (e.g.
2018:2024).- crop_to
Optional. An
sf/sfcobject,SpatVector, orSpatExtent. IfNULL, each raster is returned at full extent.- collection
Integer. MapBiomas Peru collection number (
1,2,3,4). Default4.- show_progress
Logical. Show a cli progress bar. Default
TRUE.
Examples
if (FALSE) { # \dontrun{
library(geoidep)
lima <- get_departaments("LIMA", show_progress = FALSE)
lulc_series <- get_mapbiomas_peru_lulc_series(years = 2020:2024, crop_to = lima)
lulc_series
} # }