envs_worldclim: envs_worldclim Obtain WorldClim variables

View source: R/envs_worldclim.R

envs_worldclimR Documentation

envs_worldclim Obtain WorldClim variables

Description

download WorldClim variables. See www.worldclim.com.

Usage

envs_worldclim(bcRes, bcSel, mapCntr, doBrick = FALSE, logger = NULL)

Arguments

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.

Details

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.

Value

A rasterStack or a rasterBrick (if doBrick=TRUE) of downloaded worldclim rasters at the requested resolution.

Author(s)

Jamie Kass <jamie.m.kass@gmail.com>

Gonzalo E. Pinilla-Buitrago <gepinillab@gmail.com>

Bethany A. Johnson <bjohnso005@citymail.cuny.edu>

See Also

worldclim_global, worldclim_tile

Examples

## Not run: 
bcRes <- 10 # (10 arcmin)
envar <- c('bio05', 'bio06', 'bio13', 'bio14')
arcmin10 <- envs_worldclim(bcRes, bcSel = envar)

## End(Not run)


wallace documentation built on Sept. 11, 2024, 9:16 p.m.