potential_temperature

metpy.calc.potential_temperature(pressure, temperature)[source]

Calculate the potential temperature.

Uses the Poisson equation to calculation the potential temperature given pressure and temperature.

Parameters
  • pressure (pint.Quantity) – total atmospheric pressure

  • temperature (pint.Quantity) – air temperature

Returns

pint.Quantity – The potential temperature corresponding to the temperature and pressure.

See also

dry_lapse()

Notes

Formula:

\[\Theta = T (P_0 / P)^\kappa\]

Examples

>>> from metpy.units import units
>>> metpy.calc.potential_temperature(800. * units.mbar, 273. * units.kelvin)
<Quantity(290.966533, 'kelvin')>

Examples using metpy.calc.potential_temperature