days_frost: Estimates the occurence of spring frosts

View source: R/days_frost.R

days_frostR Documentation

Estimates the occurence of spring frosts

Description

(This is an internal function for spring_frost) not intended to be stand alone used The function evaluates the early and spring frosts occurring during a season. It compares minimum daily temperature (Tmin) with the critical temperature (Tcrit). Daily critical temperatures are linearly interpolated from a user-provided dataframe with critical temperatures for key phenological stages and the day of occurrence of the stages. The function checks each day between the first date if Tmin is below Tcrit and, if so, that day is considered as a frost day (Fday). The last day evaluated is DOY 181.

Usage

days_frost(mintemps, fendates, lastday = 181)

Arguments

mintemps

a dataframe with minimum daily temperatures. Must contain the columns julian day of year (DOY )and the minimum daily temperature (Tmin).

fendates

a dataframe with the day of occurrence of the phenological stages. Must contain julian day of occurrence of the phenological stage (DOY) and the critical frost temperature for 10 (LT_90) for each stage.

lastday

the last day (day of the year) to evaluate. By default, lastday = 181 (June 30th).

Value

a dataframe with the columns number of days in which Tmin is equal or below Tcrit.

Author(s)

Carlos Miranda, carlos.miranda@unavarra.es


fruclimadapt documentation built on Feb. 16, 2023, 10:14 p.m.