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:2024)

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/8 ETA: 11s | Dowloaded tiles 
#> ⠹ 2/8 ETA:  9s | Dowloaded tiles 
#> ⠸ 4/8 ETA:  6s | Dowloaded tiles 
#> ⠼ 6/8 ETA:  3s | Dowloaded tiles 
#> ⠙ 1/8 ETA: 11s | Dowloaded tiles 
#> 
#>  `fd_landcover_esri()` failed to retrieve the data. Service might be currently unavailable
# }