lair.meteorology.poisson#
- lair.meteorology.poisson(T, p, p0=100000.0)[source]#
Calculate the potential temperature (Poisson’s equation).
- Parameters:
- Returns:
float – Potential temperature in Kelvin.
- Return type:
See also
inv_poissonThe 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