View source: R/continentality.R
continentality | R Documentation |
Generate Continentality index.
continentality(tmax, tmin, tempScale = 1)
tmax |
rasterLayer of average temperature of the warmest month |
tmin |
rasterLayer of average temperature of the coldest month |
tempScale |
integer; scaling factor for the temperature data, see envirem for additional details. |
continentality index = tmax - tmin
rasterLayer in units of degrees C.
Pascal Title
Rivas-Martínez, S. & Rivas-Sáenz, S. “Synoptical Worldwide Bioclimatic Classification System”. Available online at http://www.globalbioclimatics.org/ [accessed 15 February 2016]
Sayre, R., Comer, P., Warner, H. & Cress, J. (2009) A new map of standardized terrestrial ecosystems of the conterminous United States: US Geological Survey Professional Paper 1768. Reston, VA.
thermicityIndex
# Find example rasters
rasterFiles <- list.files(system.file('extdata', package='envirem'), full.names=TRUE)
env <- rast(rasterFiles)
# identify appropriate layers
tmean <- grep('tmean', names(env))
tmin <- grep('tmin', names(env))
tmax <- grep('tmax', names(env))
tmean <- env[[tmean]]
tmin <- env[[tmin]]
tmax <- env[[tmax]]
# calculate temperature extremes
temp <- otherTempExtremes(tmean, tmin, tmax)
meantempWarmest <- temp[['meanTempWarmest']]
meantempColdest <- temp[['meanTempColdest']]
continentality(meantempWarmest, meantempColdest, tempScale = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.