monthCountByTemp: Month count by temperature

Description Usage Arguments Value Author(s) References Examples

View source: R/monthCountByTemp.R

Description

Number of months with mean temperature greater than some base temp.

Usage

1
monthCountByTemp(tempStack, minTemp = 10, tempScale = 1)

Arguments

tempStack

rasterStack of monthly mean temperature in degrees C

minTemp

reference temperature in degrees C

tempScale

integer; scaling factor for the temperature data, see envirem for additional details.

Value

rasterLayer with values representing counts of months.

Author(s)

Pascal Title

References

Metzger, M.J., Bunce, R.G.H., Jongman, R.H.G., Sayre, R., Trabucco, A. & Zomer, R. (2013). A high-resolution bioclimate map of the world: a unifying framework for global biodiversity research and monitoring. Global Ecology and Biogeography, 22, 630-638.

Examples

1
2
3
4
5
6
7
8
# Find example rasters
rasterFiles <- list.files(system.file('extdata', package='envirem'), full.names=TRUE)
env <- stack(rasterFiles)

# identify the appropriate layers
meantemp <- grep('mean', names(env), value=TRUE)
meantemp <- env[[meantemp]]
monthCountByTemp(meantemp, 10, tempScale = 10)

envirem documentation built on May 14, 2021, 9:06 a.m.