fd_landcover_copernicus {forestdata}R Documentation

Global Land Cover

Description

Download a SpatRaster from the Global Land Cover from the Copernicus Global Land Service.

Usage

fd_landcover_copernicus(
  x,
  lon = NULL,
  lat = NULL,
  year = 2019,
  layer = "forest",
  crop = FALSE,
  ...,
  quiet = FALSE
)

Arguments

x

an sf or SpatVector object. It will retrieve the necessary tiles to cover the area (if lat and lon are specified, this argument is ignored)

lon

a number specifying the longitude of the area where we want the tile

lat

a number specifying the latitude of the area where we want the tile

year

year of the land cover data. One of 2015:2019 or 'all'

layer

a character vector of the layer(s) to use from the Global Land Cover. See details

crop

when x is specified, whether to crop the tile(s) to the object

...

additional arguments passed to the crop function

quiet

if TRUE, suppress any message or progress bar

Details

There are 14 different layers that can be downloaded:

Value

SpatRaster object

References

Buchhorn, M.; Smets, B.; Bertels, L.; De Roo, B.; Lesiv, M.; Tsendbazar, N. - E.; Herold, M.; Fritz, S. Copernicus Global Land Service: Land Cover 100m: collection 3: epoch 2019: Globe 2020. DOI 10.5281/zenodo.3939050

Examples


 # Get tile for Galicia (Spain) and year 2019
 galicia_forest_extent <- fd_landcover_copernicus(
  lat  = 42.7,
  lon  = -7.8,
  year = 2019
 )
 # Get forest and discrete classification tiles for all years
 galicia_forest_extent <- fd_landcover_copernicus(
  lat  = 42.7,
  lon  = -7.8,
  year = "all",
  layer = c("forest", "discrete")
 )
 

[Package forestdata version 0.3.1 Index]