Learn R Programming

insol (version 1.2.2)

z2p: Altitude to pressure

Description

Computes air pressure for a given altitude according to the standard atmosphere.

Usage

z2p(z, P0 = 101325, T0 = 288.15)

Arguments

z

altitude above sea level in metres [0:10000].

P0

Pressure at sea level.

T0

Temperature at sea level.

Value

Pressure in hPa.

References

U.S. NOAA: 1976, U.S. standard atmosphere, 1976, NOAA-S/T; 76-1562, U.S. National Oceanic and Atmospheric Administration, National Aeronautics and Space Administration, United States Air Force, Washington. 227 pp.

Examples

Run this code
# NOT RUN {
# Plot pressure form sea level to the top of Mt. Everest
plot(z<-0:8848,z2p(z),'l',xlab='Altitude [m]',ylab='Pressure [hPa]')

# }

Run the code above in your browser using DataLab