Skip to contents

WorldClim is a database of high spatial resolution global weather and climate data. These data can be used for mapping and spatial modeling.

Usage

getWorldClim(
  AOI = NULL,
  varname = NULL,
  model = "wc2.1_5m",
  month = 1:12,
  ID = NULL,
  verbose = TRUE
)

Arguments

AOI

an sf of SpatVect point or polygon to extract data for

varname

variable name to extract (e.g. tmin)

model

GCM model name generating

month

numeric. and month or vector of months to access. Default is 1:12

ID

a column of unique identifiers

verbose

Should messages be emited?

Value

if AOI is polygon a list of SpatRasters, if AOI is a point then a data.frame of modeled records.