Description Usage Arguments Details Value References
Loads required packages and formats input parameters.
1 |
var |
character: name of variable. Use one of 'prec', 'tmin', 'tmax', 'tmean', or 'bio' |
rcp |
numeric: representative concentrations pathway (RCP). Use one of 2.6, 4.5, 6.0, or 8.5. |
model |
numeric: a number from one to 35 indicating the model to be used. The full CMIP5 model list is in |
year |
numeric: the future year for which projections are to be downloaded. Available years are 2030, 2050, 2070, and 2080. |
res |
numeric: spatial resolution, in arc-min. Use one of 0.5, 2.5, 5, or 10. |
lon |
numeric: longitude (in decimal degrees) of a site so that a tile can be identified. Only needed when res=0.5 data. |
lat |
numeric: latitude (in decimal degrees) of a site so that a tile can be identified. Only needed when res=0.5 data. |
path |
character: path where the downloaded files will be stored. |
To download 30s precipitation data of a given model, for RCP4.5 in 2030:
getCMIP5(var="prec", rcp=4.5, model=10, year=2030, res=0.5, lon=-75, lat=3, path='')
To download 10min global precipitation data of the same model, for RCP4.5 in 2030:
getCMIP5(var="prec", rcp=4.5, model=10, year=2030, res=10, path='')
A spatial object of class RasterStack with all layers.
https://doi.org/10.1038/s41597-019-0343-8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.