gsw_transitions {mapme.biodiversity}R Documentation

Calculate Global Surface Water (GSW) Transitions

Description

GSW transition data contains information about the type of surface water change for each pixel. The raster files have integer cell values between [0, 10] that code for different transition classes:

Usage

calc_gsw_transitions()

Details

Value Transition Class
1 Permanent
2 New Permanent
3 Lost Permanent
4 Seasonal
5 New Seasonal
6 Lost Seasonal
7 Seasonal to Permanent
8 Permanent to Seasonal
9 Ephemeral Permanent
10 Ephemeral Seasonal

To aggregate, we sum up the area of each transition class for a given region.

The required resources for this indicator are:

Value

A function that returns a tibble with a column for name of the transition classes and corresponding area (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_transitions()) %>%
  calc_indicators(calc_gsw_transitions()) %>%
  tidyr::unnest(gsw_transitions)

aoi

## End(Not run)

[Package mapme.biodiversity version 0.6.0 Index]