load_paleoclim {rpaleoclim}R Documentation

Load data from PaleoClim

Description

Loads a PaleoClim data file (.zip format) into R as a SpatRaster.

Usage

load_paleoclim(file, as = c("terra", "raster"))

Arguments

file

Character. Path to a *.zip file downloaded from PaleoClim.

as

Character. as = "raster" returns a RasterStack object (see raster::stack()) instead of the default raster from the terra package. It is provided for backwards compatibility and will be removed in future versions. Requires the raster package.

Value

SpatRaster object (see terra::rast()) with each bioclimatic variable as a separate named layer.

Examples

file <- system.file("testdata", "LH_v1_10m_cropped.zip",
                    package = "rpaleoclim")
load_paleoclim(file)

[Package rpaleoclim version 1.0.1 Index]