dewpoint_from_specific_humidity#
- metpy.calc.dewpoint_from_specific_humidity(pressure, temperature, specific_humidity)#
Calculate the dewpoint from specific humidity, temperature, and pressure.
- Parameters
pressure (
pint.Quantity
) – Total atmospheric pressuretemperature (
pint.Quantity
) – Air temperaturespecific_humidity (
pint.Quantity
) – Specific humidity of air
- Returns
pint.Quantity
– Dew point temperature
Examples
>>> from metpy.calc import dewpoint_from_specific_humidity >>> from metpy.units import units >>> dewpoint_from_specific_humidity(1000 * units.hPa, 10 * units.degC, 5 * units('g/kg')) <Quantity(3.73203192, 'degree_Celsius')>
Changed in version 1.0: Changed signature from
(specific_humidity, temperature, pressure)