aiRthermo (version 1.0)

q2w: Water vapour mixing Ratio to specific humidity

Description

This function calculates the water vapour mixing ratio (kg/kg) from specific humidity (kg/kg).

Usage

q2w(q)

Arguments

q

A vector with specific humidity values (kg/kg)

Value

This function returns a vector with mixing ratio values in kg/kg

Examples

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

Run the code above in your browser using DataLab