otherTempExtremes {envirem} | R Documentation |
Temperature Extremes
Description
Generates max temp of the coldest month, min temp of the warmest month, mean temp of the coldest month, mean temp of the warmest month.
Usage
otherTempExtremes(meantempStack, mintempStack, maxtempStack)
Arguments
meantempStack |
SpatRaster of monthly mean temperature |
mintempStack |
SpatRaster of monthly min temperature |
maxtempStack |
SpatRaster of monthly max temperature |
Value
SpatRaster of maxTempColdest, minTempWarmest, meanTempColdest, meanTempWarmest, in same units as input rasters.
Author(s)
Pascal Title
Examples
# 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
otherTempExtremes(tmean, tmin, tmax)
[Package envirem version 3.0 Index]