add_pressure_to_height#

metpy.calc.add_pressure_to_height(height, pressure)[source]#

Calculate the height at a certain pressure above another height.

This assumes a standard atmosphere [NOAA1976].

Parameters:
Returns:

pint.Quantity – The corresponding height value for the pressure above the height level

Examples

>>> from metpy.calc import add_pressure_to_height
>>> from metpy.units import units
>>> add_pressure_to_height(1000 * units.meters, 100 * units.hPa)
<Quantity(1.96117548, 'kilometer')>