Learn R Programming

insol (version 1.2.2)

wvapsat: Saturation pressure of water vapor

Description

Computes the saturation pressure of water vapour in air over water or ice.

Usage

wvapsat(tempk, ice)

Arguments

tempk

Air temperature [K].

ice

Over water or ice [0,1].

Value

Partial pressure of water vapour [hPa].

References

Lowe, P. R.: 1977, An approximating polynomial for the computation of saturation vapor pressure, Journal of Applied Meteorology 16, 100-103.

Examples

Run this code
# NOT RUN {
## Plot the differences saturation pressure over water and over ice
plot(wvapsat(250:300), xlab='Temperature', ylab='saturation vapour pressure [hPa]')

Tair = 223:273
plot(Tair,wvapsat(Tair),ty='l',lwd=2,col=4,xlab='Temperature', 
	ylab='saturation vapour pressure [hPa]')
lines(Tair,wvapsat(Tair,ice=1),col=8)
legend('topleft',c('saturation pressure over water','saturation pressure over ice'),
col=c(4,8),lwd=2)

# }

Run the code above in your browser using DataLab