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)

Arguments

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 annualize_clim will be run on the result.

rasterize

If TRUE, the default, resamples species occurrences into same spatial scale as Worldclim data.

ala_args

Further arguments passed to occurrences from the ALA4R package (named list).

gbif_args

Further arguments passed to occ_search from the rgbif package (named list).

Details

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).