p2rho: Air pressure to density

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/p2rho.R

Description

Calculates air density for a given pressure, temperature and relative humidity.

Usage

1
p2rho(Pz, TempK, RH)

Arguments

Pz

Air pressure in hPa

TempK

Air temperature in K

RH

Relative humidity (%)

Value

Air density (kgm^-3)

Author(s)

Javier G. Corripio

References

Brutsaert, W.: 1982, Evaporation into the atmosphere : theory, history, and applications, Reidel, Dordrecht. 1984 edition.

See Also

wvapsat

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
p2rho(1013, 288, 60)

# plot density vertical profile

z = seq(0, 10000,100)
press = z2p(z)
Tair = 288-0.0065*z
par(mar=c(5.1, 4.5, 4.1, 2.1)) # increase left margin for label
plot(z,p2rho(press,Tair,50),ty='l',xlab='Altitude',
	ylab=expression(paste('Air density [ kg ', m^-3,' ]')))

insol documentation built on Feb. 10, 2021, 5:08 p.m.