This indicator calculates the areal distribution of different biome classes within an asset based on the IBPES biomes dataset.
Value
A function that returns an indicator tibble with the biome class as variable and the respective area (in ha) as value.
Examples
# \dontrun{
library(sf)
library(mapme.biodiversity)
outdir <- file.path(tempdir(), "mapme-data")
dir.create(outdir, showWarnings = FALSE)
mapme_options(
outdir = outdir,
verbose = FALSE
)
aoi <- system.file("extdata", "shell_beach_protected_area_41057_B.gpkg",
package = "mapme.biodiversity"
) %>%
read_sf() %>%
get_resources(get_ipbes_biomes()) %>%
calc_indicators(calc_ipbes_biomes()) %>%
portfolio_long()
#> Warning: GDAL Message 1: HTTP error code: 503 - https://zenodo.org/records/3975694/files/IPBES_UoA_biomes_JK.tif. Retrying again in 10.0 secs
#> Warning: GDAL Message 1: HTTP error code: 503 - https://zenodo.org/records/3975694/files/IPBES_UoA_biomes_JK.tif. Retrying again in 23.5 secs
#> Warning: GDAL Message 1: HTTP error code: 503 - https://zenodo.org/records/3975694/files/IPBES_UoA_biomes_JK.tif. Retrying again in 47.8 secs
#> Warning: GDAL Message 1: HTTP response code on https://zenodo.org/records/3975694/files/IPBES_UoA_biomes_JK.tif: 503
#> Error in st_sf(x, ..., agr = agr, sf_column_name = sf_column_name) :
#> no simple features geometry column present
#> Error in .check_footprints(resource, resource_name): Download for resource ipbes_biomes failed.
#> Returning unmodified portfolio.
aoi
#> Error: object 'aoi' not found
# }
