Learn R Programming

frost (version 0.0.4)

buildMdz: 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

, where K is a constant calculated for each place, Tmax: maximum temperature of previous day, dew: dew point in <U+00B0>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<U+00F3>gicas de Mendoza. 1991.

Usage

buildMdz(dw, tempMax, tmin)

Arguments

dw

[<U+00B0>C] Dew Point in <U+00B0>C

tempMax

[<U+00B0>C] Maximum temperature of the previous day

tmin

[<U+00B0>C] Minimum temperature measure that day.

Value

an object of class MdzFrostModel

Examples

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

Run the code above in your browser using DataLab