specific_humidity_from_dewpoint

metpy.calc.specific_humidity_from_dewpoint(dewpoint, pressure)[source]

Calculate the specific humidity from the dewpoint temperature and pressure.

Parameters
  • dewpoint (pint.Quantity) – dewpoint temperature

  • pressure (pint.Quantity) – pressure

Returns

pint.Quantity – Specific humidity