sin_h: Sinervo (2010) hours of activity model
Description
sin_h
Simulates daily variation in temperature and counts amount of time above a temperature threshold, as seen in Sinervo et al. 2010.
Usage
sin_h(tmax, tmin, thrs, res)
Value
numeric. Amount of time in hours above temperature threshold in simulated daily temperature variation.
Arguments
- tmax
Raster* object. Maximum temperature raster.
- tmin
Raster* object. Minimum temperature raster.
- thrs
numeric. Temperature threshold in same unit as rasters.
- res
numeric. time resolution in parts of hour.