Simple interface to download species occurrences, and extract climate observations from Worldclim for where the species is present.
climate_presence(species, database = c("ALA", "GBIF", "both"), vars = NULL, output = c("monthly", "annual"), rasterize = TRUE, ala_args = NULL, gbif_args = NULL)
species | Latin binomial for species, can be a vector. |
---|---|
database | Either 'ALA' or 'GBIF' |
vars | Vector of climate variables to be extracted; see Details. |
output | Either 'monthly' (default), returning monthly climate data, or 'annual', in which case |
rasterize | If TRUE, the default, resamples species occurrences into same spatial scale as Worldclim data. |
ala_args | Further arguments passed to |
gbif_args | Further arguments passed to |
The climate variables are any of the Worldclim 2.0 variables, including "tmin","tmax","tavg","prec","srad","wind","vapr". Also allowed is 'pet', which will be extracted from the Zomer PET database (see get_zomer_pet
).