gsw_seasonality | R Documentation |
GSW seasonality describes the intra-annual distribution of surface water for
each pixel. The raster files have integer cell values between [0, 12]
,
indicating how many months per year the pixel was classified as water.
calc_gsw_seasonality()
The pixel values are aggregated using method provided via the
stats
parameter.
The required resources for this indicator are:
global_surface_water_seasonality
A function that returns an indicator tibble with seasonality categories as variables and corresponding areas (in ha) as value.
## Not run:
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_global_surface_water_seasonality()) %>%
calc_indicators(calc_gsw_seasonality()) %>%
portfolio_long()
aoi
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.