| paleoclim {rpaleoclim} | R Documentation |
Retrieve data from PaleoClim
Description
Downloads data from PaleoClim (http://www.paleoclim.org) and loads it into R
as a SpatRaster object.
Usage
paleoclim(
period = c("lh", "mh", "eh", "yds", "ba", "hs1", "lig", "mis19", "mpwp", "m2", "cur",
"lgm"),
resolution = c("10m", "5m", "2_5m", "30s"),
region = NULL,
as = c("terra", "raster"),
skip_cache = FALSE,
cache_path = fs::path_temp(),
quiet = FALSE
)
Arguments
period |
Character. Time period to retrieve. |
resolution |
Character. Resolution to retrieve. |
region |
|
as |
Character. |
skip_cache |
Logical. If |
cache_path |
Logical. Path to directory where downloaded files should be saved. Defaults to R's temporary directory. |
quiet |
Logical. If |
Details
See http://www.paleoclim.org for details of the datasets and codings. Data at 30s resolution is only available for 'cur' and 'lgm'.
By default, paleoclim() will read previously downloaded files in R's
temporary directory if available. Use skip_cache = TRUE to override this.
cache_path can also be set to another directory. This can be useful if you
want to reuse downloaded data between sessions.
Value
SpatRaster object (see terra::rast()) with each bioclimatic variable
as a separate named layer.
Examples
paleoclim("lh", "10m")