View source: R/thermicityIndex.R
thermicityIndex | R Documentation |
Compensated Thermicity index
thermicityIndex(
annualTemp,
minTemp,
maxTemp,
continentality,
returnCompensated = TRUE,
tempScale = 1
)
annualTemp |
rasterLayer, mean annual temperature |
minTemp |
rasterLayer, min temp of the coldest month |
maxTemp |
rasterLayer, max temp of the coldest month |
continentality |
rasterLayer, continentality index |
returnCompensated |
logical: if |
tempScale |
integer; scaling factor for the temperature data, see envirem for additional details. |
thermicity index = tempRange + minTemp + maxTemp
The compensated thermicity index incorporates corrections designed to make this metric more appropriately comparable across the globe.
rasterLayer in 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.
continentality
# 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)
ci <- continentality(temp[['meanTempWarmest']], temp[['meanTempColdest']], tempScale = 10)
# compensated thermicity index
thermicityIndex(env[['bio_1']], env[['bio_6']], temp[['maxTempColdest']], ci, tempScale = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.