rh2w: Mixing Ratio from relative humidity

Description Usage Arguments Value See Also Examples

Description

This function gets the mixing ratio (kg/kg) from a given relative humidity (%), pressure (Pa) and temperature (K).

Usage

1
rh2w(P, Temp, rh, consts = export_constants())

Arguments

P

A vector with pressure values in Pa.

Temp

A vector with temperature values in Kelvin.

rh

A vector with relative humidity values in (%).

consts

The constants defined in aiRthermoConstants data are necessary.

Value

This function returns a vector with mixing ratio values (kg/kg).

See Also

saturation_mixing_ratio

Examples

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

aiRthermo documentation built on May 1, 2019, 9:24 p.m.