Extract The climate values associated to a set of coordinates.

climate_from_xy(
  long,
  lat,
  climate = accClimateVariables()[, 2],
  resol = 0.25,
  dbname = "gbif4crest_02"
)

Arguments

long

The longitude of the site.

lat

The latitude of the site.

climate

The climate variables to extract the values from. Returns all possible values by default.

resol

The resolution of the target climatology (default 0.25 degrees).

dbname

The name of the data source database.

Value

A data frame containing the climate values.

Examples

if (FALSE) {
  climate_from_xy(50, 10, c('bio1', 'ai'))
  climate_from_xy(50, 10)
}