Empirical_hourly_temperatures {chillR}R Documentation

Empirical daily temperature prediction

Description

This function generates hourly temperatures from daily minimum and maximum temperatures, based on an empirical relationship of these two daily temperature extremes with the hourly temperature. Usually, this relationship will have been determined with the
Empirical_daily_temperature_curve function.

Usage

Empirical_hourly_temperatures(Tdaily, empi_coeffs)

Arguments

Tdaily

data.frame containing daily minimum and maximum temperatures. Must contain columns Year (year of observation), Month (month of observation), Day (day of observation), Tmin (Minimum daily temperature) and Tmax (Maximum daily temperature).

empi_coeffs

data.frame containing coefficients for the hourly temperature prediction, e.g. generated with the function Empirical_daily_temperature_curve. Needs to contain the following columns: Month (month for which coefficient applies), Hour (hour for which coefficient applies) and Prediction_coefficient (the coefficient used for empirical temperature prediction). Coefficients indicate, by what fraction of the daily temperature range the temperature during the specified hour is above the daily minimum temperature.

Value

data.frame containing all columns of the Tdaily dataset, but also the columns Hour and Temp, for the hour of the day and the predicted temperature, respectively.

Author(s)

Eike Luedeling

Examples

 
coeffs<-Empirical_daily_temperature_curve(Winters_hours_gaps)
Winters_daily<-make_all_day_table(Winters_hours_gaps, input_timestep="hour")
Empirical_hourly_temperatures(Winters_daily,coeffs)


[Package chillR version 0.75 Index]