Skip to contents

Downloads global ~1 km (30 arc-second) fractions of built-up area, cropland or open water derived from ESA WorldCover, via geodata::landcover() (needs the geodata package and internet; files are cached in path). Use them in filter_layers() as built, cropland and water.

Usage

download_landcover(var = c("built", "cropland", "water"), path)

Arguments

var

One of "built", "cropland", "water" (or any other geodata::landcover() variable).

path

Folder where the file is stored (and re-used next time).

References

Zanaga, D., Van De Kerchove, R., Daems, D., et al. (2022) ESA WorldCover 10 m 2021 v200. Zenodo. doi:10.5281/zenodo.7254221

Examples

if (FALSE) { # \dontrun{
built <- download_landcover("built", "data")
water <- download_landcover("water", "data")
} # }