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

View source: R/hourly_RH.R

hourly_RHR Documentation

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)

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.

Value

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

Author(s)

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


# 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)


Carm1r/fruclimadapt documentation built on May 8, 2023, 12:37 p.m.