aiRthermo (version 1.1)

TTdP2rh: Relative Humidity from temperature, pressure and dew point temperature

Description

This function calculates the relative humidity from given temperature, dew point temperature and pressure.

Usage

TTdP2rh(Temp, Td, P, consts = export_constants())

Arguments

Temp

A vector with temperature values in Kelvin

Td

A vector with dew point temperature in Kelvin

P

A vector with pressure values in Pa

consts

The constants defined in aiRthermoConstants data are necessary.

Value

This function returns a vector with relative humidity values

See Also

saturation_mixing_ratio

Examples

Run this code
# NOT RUN {
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
dws<-RadiosondeD[,6]/1000
dTds<-w2Td(dPs,dws)
rhs<-TTdP2rh(dTs,dTds,dPs)

# }

Run the code above in your browser using DataCamp Workspace