download_worldclim_future: Download the worldclim future time series.

View source: R/download_worldclim_future.R

download_worldclim_futureR Documentation

Download the worldclim future time series.

Description

This function downloads annual and monthly variables from the WorldClim v2.1 dataset for future projections.

Usage

download_worldclim_future(dataset, bio_var, filename = NULL)

Arguments

dataset

the name of the dataset

bio_var

the variable name

filename

()

Details

Note: the data come as tiffs each containing all bio (or prec/temp) variables for a given time step. From these, we generate a vrt per variable. So, since we download the full set for a give variable type, we create all the vrts for that variable type (e.g. all the bio). We use the filename to get the version name, and then at the end to check that we did generate it correctly given our programmatic way of creating the names of all vrt files.

Value

TRUE if the requested worldclim variable was downloaded successfully


EvolEcolGroup/pastclim documentation built on Nov. 8, 2024, 5:21 a.m.