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 pressuretemperature (
pint.Quantity
) – Air temperature
- Returns
pint.Quantity
– Potential temperature corresponding to the temperature and pressure
See also
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.972015, 'kelvin')>