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

predMdz(dw, tempMax, model)

Arguments

dw

Dew Point in °C

tempMax

Maximum temperature of the previous day

model

an object of class MdzFrostModel, returned by buildMdz

Value

predicted minimum temperature

Examples

# just an example dw <- c(-2,-5,2,6,8) tempMax <- c(10,20,30,25,29) tmin <- c(-1,-2,3,5,10) out <- buildMdz(dw,tempMax,tmin) predMdz(dw = -3, tempMax = 15, out)
#> [1] 15.3