Skip to contents

Keyless download of WorldClim 2.1 variables for a given country or bounding box via geodata::worldclim_country() (country-scope) or geodata::worldclim_global() (global scope, needs resolution). Cropped to aoi and returned as a multi-layer terra::SpatRaster.

Usage

foundation_tile_source_worldclim(
  variables = c("prec", "tavg"),
  country = NULL,
  res = 2.5,
  aoi,
  path = tempdir()
)

Arguments

variables

Character vector. Any of c("tavg","tmin","tmax","prec","wind","vapr","bio","elev","srad").

country

Optional ISO3 code (e.g. "BRA"). If NULL, res is used instead.

res

Spatial resolution in arc-minutes (2.5, 5, 10) for global downloads.

aoi

See foundation_tile_source_soilgrids().

path

Cache directory.