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 a tibble with one column months and one column area, representing the area covered by each class in ha.

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()) %>%
  tidyr::unnest(gsw_seasonality)

aoi

## End(Not run)

[Package mapme.biodiversity version 0.6.0 Index]