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