aiRthermo (version 1.0)

w2q: Specific Humidity from mixing ratio

Description

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

Usage

w2q(w)

Arguments

w

A vector with mixing ratio values in kg/kg

Value

The function returns a vector with the specific humidity

Examples

Run this code
# NOT RUN {
data(RadiosondeD)
dws<-RadiosondeD[,6]/1000
w2q(dws)
# }

Run the code above in your browser using DataCamp Workspace