
Annual Proportion of Water Coverage from MapBiomas Perú
Source:R/l4h_water_proportion.R
l4h_water_proportion.Rd
The function returns the proportion of each region's area that is covered by surface water for each year. The values are expressed as a decimal ratio between 0 and 1 (e.g., 0.25 means 25% of the area was covered by water).
Usage
l4h_water_proportion(
from,
to,
region,
fun = "mean",
sf = TRUE,
quiet = FALSE,
force = FALSE,
...
)
Arguments
- from
Integer. Start year (e.g., 1985).
- to
Integer. End year (e.g., 2022). Must be equal to or greater than
from
.- region
A spatial object defining the region of interest. Can be an
sf
,sfc
object, or aSpatVector
(from the terra package).- fun
Character. Summary function to apply. Values include
"mean"
,"sum"
,"median"
, etc. Default is"mean"
.- sf
Logical. Return result as an
sf
object? Default isTRUE
.- quiet
Logical. If TRUE, suppress the progress bar (default FALSE). If
FALSE
, returns the Earth EngineImageCollection
.- force
Logical. If
TRUE
, skips internal representativity checks on the input geometry. Defaults toFALSE
.- ...
arguments of
ee_extract
ofrgee
packages.
Value
An object containing annual water coverage. Depending on sf
, it may be an sf
object,
a list, or an Earth Engine ImageCollection
with yearly layers.
References
MapBiomas Perú (2021). Colección 1 – Annual water coverage. Mapbiomas project, available on: https://peru.mapbiomas.org/colecciones-de-mapbiomas-peru/