Learn R Programming

forestdata (version 0.3.0)

fd_landcover_esri: Download data from the ESRI Land Cover Explorer

Description

Download an UTM tile of the ESRI Land Cover Explorer for a specified year

Usage

fd_landcover_esri(utm_code, year, quiet = FALSE)

Value

A SpatRaster

Arguments

utm_code

a character string of length 1 with an UTM code (e.g. "29N")

year

an integer or vector of integers corresponding to the base year of the land cover tile. The option year = 'all' downloads all the available images (2017:2023)

quiet

if TRUE, suppress any message or progress bar

References

https://livingatlas.arcgis.com/en/home/

Examples

Run this code
# \donttest{
# Download Land Cover for UTM tile 29N year 2023
lc <- fd_landcover_esri("29N", year = 2023)

# Download Land Cover for UTM time 29N for all years
lc <- fd_landcover_esri("29N", year = "all")
# }

Run the code above in your browser using DataLab