gsw_seasonality {mapme.biodiversity} | R Documentation |
Calculate Global Surface Water (GSW) Seasonality
Description
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.
Usage
calc_gsw_seasonality()
Details
The pixel values are aggregated using method provided via the
stats
parameter.
The required resources for this indicator are:
Value
A function that returns an indicator tibble with seasonality categories as variables and corresponding areas (in ha) as value.
Examples
## 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)
[Package mapme.biodiversity version 0.8.0 Index]