aiRthermo (version 1.2.1)

q2e: Partial Vapour Pressure

Description

This function calculates the partial vapour pressure from specific humidity.

Usage

q2e(P, q, consts = export_constants())

Arguments

P

A vector with pressure values (Pa).

q

A vector with specific humidity values (kg/kg).

consts

The constants defined in aiRthermoConstants data are necessary.

Value

This function returns the value of the partial vapour pressure (Pa).

Examples

Run this code
# NOT RUN {
# Get partial pressure of water vapour
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dws<-RadiosondeD[,6]/1000
h2oe<-q2e(dPs,w2q(dws))
# }

Run the code above in your browser using DataLab