View source: R/compute_copernicus_land_cover.R
compute_land_cover | R Documentation |
Compute copernicus global land cover statistics - 23 discrete classifications
compute_land_cover(rast = NULL, aoi = NULL, year = NULL)
rast |
land cover raster |
aoi |
area of interest - polygon object (sf) |
year |
year |
land cover classes
# load raster r <- terra::rast(system.file("extdata", "test_lc_rast.tif", package = "openRspat")) # load polygon fname <- system.file("shape/nc.shp", package="sf") sf <- sf::st_read(fname) # transform sf object to match projection with raster object sf <- sf::st_transform(sf, "+proj=longlat +datum=WGS84 +no_defs") # call function compute_land_cover(rast=r, aoi=sf[1,], year=2015)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.