get_chelsa: Get CHELSA climate data

Description Usage Arguments Value Examples

View source: R/get_chelsa.R

Description

Download data from CHELSA climatologies. This function retrieves files from the server via dowload request.

Usage

1
2
get_chelsa(type = "bioclim", layer = 1:19, period, model_string,
  scenario_string, future_years, output_dir)

Arguments

type

Character. Currently only "bioclim".

layer

Numeric. Select which bioclim layer(s) is/are downloaded. You can choose to download any of 19 bioclimatic layers. Default is all layers (1:19). To download bioclim layer 1, use layer = 1, or use layer = 1:19 to download all layers as a rasterstack. . See details ADD LATER!

period

Character. Which time period to download for climate layers. One in c("past", "current", "future").

model_string

Character. Which climatic model to download for past or future period. Only available if period is one of c("past", "future"). See climatedata::check_models() for available options.

scenario_string

Character. Which climate scenario to download. Available options are c("rcp26", "rcp45", "rcp60", "rcp85", "pmip3"). RCP scenarios are only available if period = "future", and PMIP3 is available if period = "past".

future_years

Character. Which time period to download for future scenario. Available options are c("2041-2060", "2061-2080") for years 2050 and 2070.

output_dir

Character. Path indicating the directory in which the downloaded files will be stored. Default is the current working directory.

Value

Raster* object or NULL. See return_raster argument.

Examples

1
2
output_dir <- milkunize("Projects/Crete/data-raw/Chelsa")
chelsa_bioclim <- get_chelsa(layer = 1:19, output_dir = output_dir)

MirzaCengic/climatedata documentation built on Aug. 30, 2020, 1:35 p.m.