lair.meteorology.inv_poisson#

lair.meteorology.inv_poisson(p, theta, p0=100000.0)[source]#

Calculate the temperature from the potential temperature.

This is Poisson’s equation solved for the temperature.

Parameters:
  • p (float) – Pressure in Pascals.

  • theta (float) – Potential temperature in Kelvin.

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

Returns:

float – Temperature in Kelvin.

Return type:

Any

See also

poisson

The potential temperature from the temperature.

Examples

>>> from lair.meteorology import inv_poisson
>>> round(float(inv_poisson(p=85000.0, theta=286.67)), 2)
273.67