
Last chance! 50% off unlimited learning
Sale ends in
Number of months with mean temperature greater than some base temp.
monthCountByTemp(tempStack, minTemp = 10, tempScale = 1)
rasterLayer with values representing counts of months.
rasterStack of monthly mean temperature in degrees C
reference temperature in degrees C
integer; scaling factor for the temperature data, see envirem for additional details.
Pascal Title
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.
# 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)
Run the code above in your browser using DataLab