w2q: Specific Humidity from mixing ratio

Description Usage Arguments Value Examples

Description

This function calculates the specific humidity from a given Water mixing ratio.

Usage

1
w2q(w)

Arguments

w

A vector with mixing ratio values in kg/kg.

Value

The function returns a vector with the specific humidity.

Examples

1
2
3
data(RadiosondeD)
dws<-RadiosondeD[,6]/1000
w2q(dws)

Example output

 [1] 0.0165030783 0.0190211793 0.0157286561 0.0156995915 0.0138942303
 [6] 0.0127746954 0.0118869994 0.0103713087 0.0091848564 0.0084971792
[11] 0.0084578545 0.0078577665 0.0064284082 0.0053611037 0.0053017417
[16] 0.0043807248 0.0035672293 0.0010588776 0.0018266572 0.0045293913
[21] 0.0036168708 0.0035771580 0.0030307864 0.0020159278 0.0017668726
[26] 0.0016672157 0.0013980427 0.0005996402 0.0006495778 0.0003398844
[31] 0.0002499375 0.0001599744 0.0001299831 0.0001199856 0.0000399984
[36] 0.0000299991 0.0000299991 0.0000199996 0.0000199996 0.0000099999
[41] 0.0000099999 0.0000099999 0.0000099999 0.0000099999 0.0000099999
[46] 0.0000099999 0.0000099999 0.0000099999 0.0000099999 0.0000099999
[51] 0.0000099999 0.0000000000 0.0000000000 0.0000000000 0.0000000000
[56] 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000
[61] 0.0000099999 0.0000099999 0.0000099999 0.0000099999 0.0000099999
[66] 0.0000099999 0.0000099999 0.0000099999 0.0000099999 0.0000199996

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