pyrt.scale_height#

pyrt.scale_height(temperature, mass, gravity)[source]#

Compute the scale height of each model layer.

Parameters:
  • temperature (ArrayLike) – The 1-dimensional temperature [K] of the grid.

  • mass (ArrayLike) – The 1-dimensional particle mass [kg] of the grid.

  • gravity (float) – The gravitational acceleration [\(\frac{m}{s^2}\)].

Return type:

The scale height [m] in each model layer.

Examples

Get the scale height of Mars’s atmosphere, where the temperature is 210 K. Note the atmosphere is primarily carbon dioxide and the gravitational acceleration is 3.71 \(\frac{m}{s^2}\).

>>> import numpy as np
>>> from scipy.constants import m_u
>>> import pyrt
>>> int(np.rint(pyrt.scale_height(210, 44*m_u, 3.71)))
10696