Learn R Programming

fruclimadapt (version 0.4.5)

hourly_RH: Estimation of the hourly relative humidity on a daily series

Description

This function estimates the hourly relative humidity (RH), using daily temperature and humidity data. Hourly humidity is estimated with the formula proposed by Waichler and Wigmosta (2003) which require maximum and minimum values of daily temperature and relative humidity.

Usage

hourly_RH(climdata, lat)

Value

dataframe with columns Date, Year, Month, Day, DOY, Hour, Temp and RH

Arguments

climdata

a dataframe with daily temperatures and RH for each day in a series. Must contain the columns Year, Month, Day, Tmax, Tmin, RHmax (daily maximum relative humidity) and RHmin (minimum daily relative humidity).

lat

the latitude of the site, in decimal degrees.

Author

Carlos Miranda, carlos.miranda@unavarra.es

References

Waichler SR and Wigmosta MS, 2003. Development of hourly meteorological values from daily data and significance to hydrological modeling at H.J. Andrews experimental forest. Journal of Hydrometeorology 4, 251-263.

Examples

Run this code

# Generate hourly relative humidity
library(magrittr)
library(dplyr)
library(lubridate)
Weather <- Tudela_DW %>%
   filter (Tudela_DW$Year==2003)
Tudela_HRH <- hourly_RH(Weather, 42.13132)

Run the code above in your browser using DataLab