frost_risk: Compute the number of hours below a given threshold

View source: R/frost_risk.R

frost_riskR Documentation

Compute the number of hours below a given threshold

Description

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.

Usage

frost_risk(HourTemp, summ = TRUE, threshold = 0)

Arguments

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

Note

By using this function as model input for chillR::tempResponse, the threshold parameter is set to the default, 0.

Examples

library(chillR) 

data <- stack_hourly_temps(KA_weather, latitude = 50.62)
frost_risk(data$hourtemps$Temp, summ = TRUE, threshold = -1)


EduardoFernandezC/dormancyR documentation built on Aug. 24, 2022, 7:21 a.m.