gsw_transitions function

Calculate Global Surface Water (GSW) Transitions

Calculate Global Surface Water (GSW) Transitions

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:

calc_gsw_transitions()

Returns

A function that returns an indicator tibble with transition classes as variable and corresponding areas (in ha) as value.

Details

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

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

The required resources for this indicator are:

  • global_surface_water_transitions

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()) %>% portfolio_long() aoi ## End(Not run)