earthkit.meteo.thermo.xarray.mixing_ratio_from_dewpoint

earthkit.meteo.thermo.xarray.mixing_ratio_from_dewpoint(td, p)

Compute the mixing ratio from dewpoint.

Parameters:
  • td (xarray.DataArray) – Dewpoint (K)

  • p (xarray.DataArray) – Pressure (Pa)

Returns:

Specific humidity (kg/kg)

Return type:

xarray.DataArray

The computation starts with determining the vapour pressure:

\[e(w, p) = e_{wsat}(td)\]

where:

Then w is computed from \(e\) using mixing_ratio_from_vapour_pressure().