lair.meteorology.poisson#

lair.meteorology.poisson(T, p, p0=100000.0)[source]#

Calculate the potential temperature (Poisson’s equation).

Parameters:
  • T (float) – Temperature in Kelvin.

  • p (float) – Pressure in Pascals.

  • p0 (float, optional) – Reference pressure in Pascals. Default is 1000 hPa.

Returns:

float – Potential temperature in Kelvin.

Return type:

Any

See also

inv_poisson

The temperature from the potential temperature.

Examples

Air at 0 degrees Celsius and 850 hPa, in SI or as pint quantities (the result is in kelvin either way):

>>> from lair import units
>>> from lair.meteorology import poisson
>>> round(float(poisson(T=273.15, p=85000.0)), 2)
286.13
>>> round(float(poisson(T=0 * units.degC, p=850 * units.hPa)), 2)
286.13