altitude_to_pressure_icao#
- rojak.core.calculations.altitude_to_pressure_icao(altitude)[source]#
Convert altitude to pressure for ICAO standard atmosphere [NACA3182]
This is the inverse of
pressure_to_altitude_icao(). Altitudes below the tropopause height, \(H^*\), are converted usingaltitude_to_pressure_troposphere()and the remaining altitudes are converted usingaltitude_to_pressure_stratosphere().Unlike
pressure_to_altitude_icao(), the conversion is never in-place as the altitude is often an integer array which cannot store the pressure. It also supports multidimensional and dask-backed arrays, with the latter remaining lazy.- Parameters:
altitude (NumpyOrDataArray) – Altitude in m. Any
NaNvalues remainNaN.- Returns:
Pressure in hPa, of the same shape as
altitude. Ifaltitudeis axarray.DataArray, its coordinates, attributes and name are retained.- Return type:
NumpyOrDataArray
Examples
>>> altitude_to_pressure_icao(np.array([0, 5000, 11000, 15000])) array([1013.25 , 540.19717375, 226.31981252, 120.43472736])