TTdP2rh {aiRthermo}R Documentation

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

data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
dws<-RadiosondeD[,6]/1000
dTds<-w2Td(dPs,dws)
rhs<-TTdP2rh(dTs,dTds,dPs)


[Package aiRthermo version 1.2.1 Index]