earthkit.meteo.thermo.array.specific_gas_constant

earthkit.meteo.thermo.array.specific_gas_constant(q)

Compute the specific gas constant of moist air.

Specific content of cloud particles and hydrometeors are neglected.

Parameters:

q (number or array-like) – Specific humidity (kg/kg)

Returns:

Specific gas constant of moist air (J kg-1 K-1)

Return type:

number or array-like

The computation is based on the following formula:

\[R = R_{d} + (R_{v} - R_{d}) q\]

where: