earthkit.meteo.thermo.xarray.saturation_mixing_ratio_slope

earthkit.meteo.thermo.xarray.saturation_mixing_ratio_slope(t, p, es=None, es_slope=None, phase='mixed', eps=0.0001)

Compute the slope of saturation mixing ratio with respect to temperature.

Parameters:
Returns:

Slope of saturation mixing ratio (\(kg kg^{-1} K^{-1}\))

Return type:

xarray.DataArray

The computation is based on the following formula:

\[\frac{\partial w_{s}}{\partial t} = \frac{\epsilon p}{(p-e_{s})^{2}} \frac{d e_{s}}{d t}\]

where