Skip to contents

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

Usage

fd_landcover_esri(utm_code, year, quiet = FALSE)

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

Value

A SpatRaster

Examples

# \donttest{
# Download Land Cover for UTM tile 29N year 2023
lc <- fd_landcover_esri("29N", year = 2023)
#>  Downloading data...

# Download Land Cover for UTM time 29N for all years
lc <- fd_landcover_esri("29N", year = "all")
#>  Downloading data...
#> ⠙ 1/7 ETA: 23s | Dowloaded tiles 
#> ⠹ 2/7 ETA: 17s | Dowloaded tiles 
#> ⠸ 3/7 ETA: 14s | Dowloaded tiles 
#> ⠼ 4/7 ETA: 11s | Dowloaded tiles 
#> ⠴ 5/7 ETA:  7s | Dowloaded tiles 
#> ⠦ 6/7 ETA:  3s | Dowloaded tiles 
#>  Download completed [21s]
#> 
# }