Learn R Programming

frost (version 0.0.4)

predMdz: empiric equation for minimum temperature used in Mendoza

Description

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

Usage

predMdz(dw, tempMax, model)

Arguments

dw

Dew Point in <U+00B0>C

tempMax

Maximum temperature of the previous day

model

an object of class MdzFrostModel, returned by buildMdz

Value

predicted minimum temperature

Examples

Run this code
# NOT RUN {
# 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)

# }

Run the code above in your browser using DataLab