This function computes the air density at a specified altitude in the Troposphere of the International Standard Atmosphere.
altitude2density(altitude = 0)
Numerical value or array for the density in kg/m3
(geopotential) altitude in meters above sealevel.
M. Klein Heerenbrink
U.S. Standard Atmosphere, 1976, U.S. Government Printing Office, Washington, D.C.
altitude <- seq(0,3000,100) # meters above sealevel
density <- altitude2density(altitude)
Run the code above in your browser using DataLab