powered by
sin_h Simulates daily variation in temperature and counts amount of time above a temperature threshold, as seen in Sinervo et al (2010).
sin_h
sin_h(tmax, tmin, thrs, res)
Raster* object. Maximum temperature raster.
Raster* object. Minimum temperature raster.
numeric. Temperature threshold in same unit as rasters.
numeric. time resolution in parts of hour.
numeric. Amount of time in hours above temperature threshold in simulated daily temperature variation.
Sinervo et al (2010) <doi:10.1126/science.1184695>.
# NOT RUN { sin_h(28, 10, 23, 3) # }
Run the code above in your browser using DataLab