standard_atmosphere

typhon.physics.standard_atmosphere(z, coordinates='height')[source]

International Standard Atmosphere (ISA).

The temperature profile is defined between 0-85 km (1089 h-0.004 hPa). Values exceeding this range are linearly interpolated.

Parameters
  • z (float or ndarray) – Geopotential height above MSL [m] or pressure [Pa] (see coordinates).

  • coordinates (str) – Either ‘height’ or ‘pressure’.

Returns

Atmospheric temperature [K].

Return type

ndarray

Examples:

import numpy as np
from typhon.plots import (profile_p_log, profile_z)
from typhon.physics import standard_atmosphere
from typhon.math import nlogspace


z = np.linspace(0, 84e3, 100)
fig, ax = plt.subplots()
profile_z(z, standard_atmosphere(z), ax=ax)

p = nlogspace(1000e2, 0.4, 100)
fig, ax = plt.subplots()
profile_p_log(p, standard_atmosphere(p, coordinates='pressure'))

plt.show()

(Source code)

../_images/typhon-physics-standard_atmosphere-1_00.png

Fig. 1 (png, hires.png, pdf)

../_images/typhon-physics-standard_atmosphere-1_01.png

Fig. 2 (png, hires.png, pdf)