View source: R/envs_worldclim.R
envs_worldclim | R Documentation |
download WorldClim variables. See www.worldclim.com.
envs_worldclim(bcRes, bcSel, mapCntr, doBrick = FALSE, logger = NULL)
bcRes |
numeric. Resolution of the climatic layers. Currently available resolutions are 0.5, 2.5 and 10. |
bcSel |
character. Vector with bionames to be selected. |
mapCntr |
numeric. Vector with longitude and latitude for a tile. Required for bcRes 0.5, for other resolutions world data will be downloaded. |
doBrick |
logical. Converts downloaded rasters to brick for faster processing. |
logger |
Stores all notification messages to be displayed in the Log Window of Wallace GUI. Insert the logger reactive list here for running in shiny, otherwise leave the default NULL. |
This function is called by the module envs to download WorldClim variables from www.worldclim.com. The variables to be downloaded are selected by the user with bcSel and the resolution with bcRes. It returns either a rasterStack or rasterBrick of selected variables with appropriate names for further analyses.
A rasterStack or a rasterBrick (if doBrick=TRUE) of downloaded worldclim rasters at the requested resolution.
Jamie Kass <jamie.m.kass@gmail.com>
Gonzalo E. Pinilla-Buitrago <gepinillab@gmail.com>
Bethany A. Johnson <bjohnso005@citymail.cuny.edu>
worldclim_global
, worldclim_tile
## Not run:
bcRes <- 10 # (10 arcmin)
envar <- c('bio05', 'bio06', 'bio13', 'bio14')
arcmin10 <- envs_worldclim(bcRes, bcSel = envar)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.