According to Maldonado (see [1]), the empirical equation used in Mendoza to estimate the minimum temperature in the night is:

Tmin = ((Tmax + dew)/2)) - K

, where K is a constant calculated for each place, Tmax: maximum temperature of previous day, dew: dew point in °C, Tmin: is the forecaste minimum temperature. Given an array of the information of dw, tempMax and tmin, this function calculates K constant using linear regression. [1] Ortiz Maldonado, Alberto. Adversidades agrometeorológicas de Mendoza. 1991.

buildMdz(dw, tempMax, tmin)

Arguments

dw

[°C] Dew Point in °C

tempMax

[°C] Maximum temperature of the previous day

tmin

[°C] Minimum temperature measure that day.

Value

an object of class MdzFrostModel

Examples

# just a random example dw <- c(-2,-5,2,6,8) tempMax <- c(10,20,30,25,29) tmin <- c(-1,-2,3,5,10) buildMdz(dw,tempMax,tmin)
#> An object of class "MdzFrostModel" #> Slot "k": #> [1] -9.3 #> #> Slot "kvector": #> [1] -5.0 -9.5 -13.0 -10.5 -8.5 #>