frost_risk | R Documentation |
This function computes the numbers of hours below a given threshold. This function allows to attempt the
potential risk of spring frost events for deciduous trees. This function is compatible with some
chillR
functions (i.e tempResponse
)
to estimate metrics from hourly temperature records.
frost_risk(HourTemp, summ = TRUE, threshold = 0)
HourTemp |
Vector of hourly temperatures |
summ |
Boolean parameter indicating whether the computed metric should be provided as cumulative values over the period or as the actual accumulation for each hour |
threshold |
Numeric vector below which it is considered a potential frost event. Default to 0 celsius degree |
By using this function as model input for chillR::tempResponse
, the threshold parameter is set to
the default, 0.
library(chillR) data <- stack_hourly_temps(KA_weather, latitude = 50.62) frost_risk(data$hourtemps$Temp, summ = TRUE, threshold = -1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.