earthkit.meteo.thermo.array.specific_gas_constant ================================================= .. py:function:: 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. :param q: Specific humidity (kg/kg) :type q: :class:`number` or :class:`array-like` :returns: Specific gas constant of moist air (J kg-1 K-1) :rtype: :class:`number` or :class:`array-like` The computation is based on the following formula: .. math:: R = R_{d} + (R_{v} - R_{d}) q where: * :math:`R_{d}` is the gas constant for dry air (see :data:`earthkit.meteo.constants.Rd`) * :math:`R_{v}` is the gas constant for water vapour (see :data:`earthkit.meteo.constants.Rv`)