Learn R Programming

climetrics (version 1.0-5)

gVelocity: Gradient-based Velocity of Climate Change

Description

The method is developed based on Burrow et al. (2011) which is a gradient-based velocity of climate change. Climate velocity can inform conservation planning and action in a warming world.

Distance-based velocity is also implemented in the package and is available through the ccm function.

Burrows MT, Schoeman DS, Buckley LB, Moore P, Poloczanska ES, Brander KM, Brown C, Bruno JF, Duarte CM, Halpern BS, Holding J. The pace of shifting climate in marine and terrestrial ecosystems. Science. 2011 Nov 4;334(6056):652-5..

Usage

gVelocity(x,...)

Value

A single Raster layer (RasterLayer or SpatRaster depending on the input)

Arguments

x

a Raster object or a Raster Time Series of climate variable

...

additional arguments; not implemented

Author

Shirin Taheri; Babak Naimi

taheri.shi@gmail.com; naimi.b@gmail.com

Examples

Run this code
# \donttest{
filePath <- system.file("external/", package="climetrics") # path to the dataset folder

# read the climate variables using the terra package (you can use the raster package as well):

pr <- rast(paste0(filePath,'/precip.tif'))

gv <- gVelocity(pr)

plot(gv, main='Gradiant-based Velocity for Precipitation')

# }

Run the code above in your browser using DataLab