earthkit.meteo.thermo.fieldlist.mixing_ratio_from_specific_humidity

earthkit.meteo.thermo.fieldlist.mixing_ratio_from_specific_humidity(q)

Compute the mixing ratio from specific humidity.

Parameters:

q (FieldList|Field) – Specific humidity (kg/kg).

Returns:

Mixing ratio (kg/kg). The result has the same type as the input q (FieldList or Field).

Return type:

FieldList|Field

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

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