earthkit.meteo.thermo.fieldlist.specific_humidity_from_mixing_ratio

earthkit.meteo.thermo.fieldlist.specific_humidity_from_mixing_ratio(w)

Compute the specific humidity from mixing ratio.

Parameters:

w (FieldList|Field) – Mixing ratio (kg/kg).

Returns:

Specific humidity (kg/kg). The result has the same type as the input w (FieldList or Field).

Return type:

FieldList|Field

The result is the specific humidity in kg/kg units. The computation is based on the following definition [Wallace2006]:

\[q = \frac {w}{1+w}\]