gsw_time_series_indicator {mapme.biodiversity}R Documentation

Calculate Global Surface Water Time Series

Description

This function calculates the total area of the global surface water time series data, separated by the following classes:

Usage

calc_gsw_time_series()

Format

A function returning a tibble with time series of global surface water data classes.

Details

The required resources for this indicator are:

Examples


## Not run: 
library(mapme.biodiversity)
library(sf)

outdir <- file.path(tempdir(), "mapme-data")
dir.create(outdir, showWarnings = FALSE)

mapme_options(
  outdir = outdir,
  verbose = FALSE
)

aoi <- read_sf(
  system.file("extdata", "shell_beach_protected_area_41057_B.gpkg",
              package = "mapme.biodiversity"
))
aoi <- get_resources(aoi, get_gsw_time_series (years = 2000:2001))
aoi <- calc_indicators(aoi, calc_gsw_time_series())
aoi <- portfolio_long(aoi)

aoi

## End(Not run)

[Package mapme.biodiversity version 0.9.4 Index]