temperature_from_potential_temperature¶
- 
metpy.calc.temperature_from_potential_temperature(pressure, theta)[source]¶
- Calculate the temperature from a given potential temperature. - Uses the inverse of the Poisson equation to calculate the temperature from a given potential temperature at a specific pressure level. - Parameters
- pressure (pint.Quantity) – The total atmospheric pressure 
- theta (pint.Quantity) – The potential temperature 
 
- Returns
- pint.Quantity – The temperature corresponding to the potential temperature and pressure. 
 - See also - Notes - Formula: \[T = \Theta (P / P_0)^\kappa\]- Examples - >>> from metpy.units import units >>> from metpy.calc import temperature_from_potential_temperature >>> # potential temperature >>> theta = np.array([ 286.12859679, 288.22362587]) * units.kelvin >>> p = 850 * units.mbar >>> T = temperature_from_potential_temperature(p,theta)