Function to obtain covariate layers from WorldClim or ESA around a specified area.
obtainCovariate(covariates, type, res, projection, path)A spatialRaster object of the covariates across the specified area.
A vector of covariate names to obtain.
Type of covariate to include. Must be one of: 'worldclim' or 'landcover'.
Resolution of the worldclim variable. Valid options are: 10, 5, 2.5 or 0.5 (minutes of a degree).
Coordinate reference system to use in analysis.
The path where the covariate will be saved.