View source: R/altitude2density.R
altitude2density | R Documentation |
This function computes the air density at a specified altitude in the Troposphere of the International Standard Atmosphere.
altitude2density(altitude = 0)
altitude |
(geopotential) altitude in meters above sealevel. |
\rho = \rho_0 (1 + a \frac{h}{T_0}) ^ {-\frac{g_0}{Ra}+1}
with \rho_0
= 1.225 kg/m3, a
= -0.0065 K/m, h
geopotential altitude in meters, g_0
= 9.80665 m/s2, and R
= 287.1 J/Kg/K.
Numerical value or array for the density in kg/m3
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.