dewpoint_from_relative_humidity#
- metpy.calc.dewpoint_from_relative_humidity(temperature, relative_humidity)[source]#
Calculate the ambient dewpoint given air temperature and relative humidity.
- Parameters:
temperature (
pint.Quantity
) – Air temperaturerelative_humidity (
pint.Quantity
) – Relative humidity expressed as a ratio in the range 0 < relative_humidity <= 1
- Returns:
pint.Quantity
– Dewpoint temperature
Examples
>>> from metpy.calc import dewpoint_from_relative_humidity >>> from metpy.units import units >>> dewpoint_from_relative_humidity(10 * units.degC, 50 * units.percent) <Quantity(0.0536760815, 'degree_Celsius')>
Changed in version 1.0: Renamed
rh
parameter torelative_humidity
See also
Examples using metpy.calc.dewpoint_from_relative_humidity
#
Meteogram
Working With Units
xarray with MetPy Tutorial