metpy.calc.
specific_humidity_from_dewpoint
Calculate the specific humidity from the dewpoint temperature and pressure.
dewpoint (pint.Quantity) – dewpoint temperature
pint.Quantity
pressure (pint.Quantity) – pressure
pint.Quantity – Specific humidity
See also
mixing_ratio(), saturation_mixing_ratio()
mixing_ratio()
saturation_mixing_ratio()