buildMdz: Empiric equation for minimum temperature used in Mendoza

Description Usage Arguments Value Examples

View source: R/models.R

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 °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.

Usage

1
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

1
2
3
4
5
# 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)

anadiedrichs/frost documentation built on March 22, 2021, 12:19 a.m.