worldclim.RdDownload 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", ...)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
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
SpatRaster
These are the WorldClim monthly average climate data.
| Variable | Description | Unit | |
tmin | minimum temperature | °C | |
tmax | maximum temperature | °C | |
tavg | average temperature | °C | |
prec | total precipitation | mm | |
srad | incident solar radiation | kJ m-2 day-1 | |
wind | wind speed (2 m above the ground) | m s-1 | |
vapr | vapor pressure | kPa |
lux <- worldclim_country("Luxembourg", var="tmin", path=tempdir())
#> Cached as: /tmp/Rtmpj1ul8r/climate/wc2.1_country/LUX_wc2.1_30s_tmin.tif