stilt.observations.pressure_altitudes#

stilt.observations.pressure_altitudes(pressures, *, surface_pressure, surface_altitude, temperature=None, top=None)[source]#

Return the altitudes above sea level of a retrieval’s pressure levels.

Use the result as the altitudes of slant_points(), so the slant follows the retrieval’s own layers. The pressure levels are, for example, OCO-2’s pressure_levels or TROPOMI’s surface_pressure minus multiples of pressure_interval. Altitudes come from the hypsometric equation, integrated up from the surface.

Parameters:
  • pressures (ArrayLike) – Pressure levels, in hPa, in any order.

  • surface_pressure (float) – The sounding’s surface pressure, in hPa. Levels at higher pressure are below the surface and are dropped.

  • surface_altitude (float) – The sounding’s surface altitude, in meters above sea level.

  • temperature (ArrayLike | None) – Temperature at each pressure level, in K. The altitudes are integrated layer by layer with each layer’s mean temperature, and the layer between the surface and the first level takes the first level’s temperature. Pass it when the retrieval or its prior gives a profile. None uses the standard atmosphere lapse rate of 6.5 K/km from a surface temperature of 288.15 K minus 6.5 K/km times the surface altitude; this matches the U.S. Standard Atmosphere below 11 km.

  • top (float | None) – Drop levels above this altitude, in meters above sea level, such as the top of the meteorology.

Returns:

Altitudes in meters above sea level, from the surface upward, so the first one anchors the slant at the sounding’s location.

Return type:

ndarray