metpy.calc.
potential_temperature
Calculate the potential temperature.
Uses the Poisson equation to calculation the potential temperature given pressure and temperature.
pressure (pint.Quantity) – Total atmospheric pressure
pint.Quantity
temperature (pint.Quantity) – Air temperature
pint.Quantity – Potential temperature corresponding to the temperature and pressure
See also
dry_lapse
Notes
Formula:
Examples
>>> from metpy.units import units >>> metpy.calc.potential_temperature(800. * units.mbar, 273. * units.kelvin) <Quantity(290.972015, 'kelvin')>
metpy.calc.potential_temperature
Cross Section Analysis¶