altitude_to_pressure_troposphere#
- rojak.core.calculations.altitude_to_pressure_troposphere(altitude: NumpyOrDataArray) NumpyOrDataArray [source]#
Convert altitude to pressure for the troposphere
An implementation of equation 18 from ICAO manual [NACA3182]
\[P = P_0 \left( \frac{T_0 - aH}{T_0} \right) ^ n\]where \(a\) is the lapse rate, \(H\) is the altitude, and \(n = \frac{G}{aR} = 5.2561\) is a dimensionless constant.
- Parameters:
altitude (NumpyOrDataArray) – Altitude in m
- Returns:
Pressure in hPa
- Return type:
NumpyOrDataArray