powered by
Download climate data from WorldClim version 2.1. See Details for variables and units.
worldclim_global(var, res, path, version="2.1", ...) worldclim_country(country, var, path, version="2.1", ...) worldclim_tile(var, lon, lat, path, version="2.1", ...)
SpatRaster
character. Valid variables names are "tmin", "tmax", "tavg", "prec", "wind", "vapr", and "bio"
numeric. Valid resolutions are 10, 5, 2.5, and 0.5 (minutes of a degree)
character. Path for storing the downloaded data. See geodata_path
geodata_path
character. Country name or code
numeric. Longitude
numeric. Latitude
character or numeric. WorldClim version number. Only "2.1" supported at the moment
additional arguments passed to download.file
download.file
These are the WorldClim monthly average climate data.
tmin
tmax
tavg
prec
srad
wind
vapr
https://www.worldclim.org/
lux <- worldclim_country("Luxembourg", var="tmin", path=tempdir())
Run the code above in your browser using DataLab