aiRthermo (version 1.2.1)

saturation_mixing_ratio: Saturation Mixing Ratio

Description

This function calculates the saturation mixing ratio from a given temperature and pressure.

Usage

saturation_mixing_ratio(P, Temp, consts = export_constants())

Arguments

P

A vector with pressure values in Pa.

Temp

A vector with temperature values in Kelvin.

consts

The constants defined in aiRthermoConstants data are necessary.

Value

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

Examples

Run this code
# NOT RUN {
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
saturation_mixing_ratio(dPs,dTs)
# }

Run the code above in your browser using DataLab