relative_humidity_from_dewpoint

metpy.calc.relative_humidity_from_dewpoint(temperature, dewpt)[source]

Calculate the relative humidity.

Uses temperature and dewpoint in celsius to calculate relative humidity using the ratio of vapor pressure to saturation vapor pressures.

Parameters
  • temperature (pint.Quantity) – air temperature

  • dewpoint (pint.Quantity) – dewpoint temperature

Returns

pint.Quantity – relative humidity