radarx.retrieve.cloud_attenuation.cloud_liquid_attenuation#

radarx.retrieve.cloud_attenuation.cloud_liquid_attenuation(frequency, temperature, lwc=1.0, *, n_threads=None, engine='auto')[source]#

Specific attenuation of cloud liquid water at a radar frequency.

K_l * lwc with the coefficient K_l of Rec. ITU-R P.840-9, Annex 1, Eqs. (2) to (10): the Rayleigh absorption of liquid water with the double-Debye permittivity of Liebe et al. (1991), one way, for droplets of less than about 0.1 mm at up to 200 GHz. With the default lwc of 1 g m-3 the result is the coefficient K_l in dB km-1 per g m-3.

Parameters:
  • frequency (float or xarray.DataArray) – Frequency in GHz.

  • temperature (float or xarray.DataArray) – Temperature of the liquid water in K (supercooled water is valid).

  • lwc (float or xarray.DataArray, optional) – Liquid water content in g m-3. Default 1, which gives K_l.

  • n_threads (int, optional) – Threads of the compiled kernel. Default: all cores.

  • engine ({"auto", "compiled", "numpy"}, optional) – Implementation. "auto" (default) prefers the compiled kernel.

Returns:

xarray.DataArray – A_CLOUD_LIQUID (dB km-1, one way) on the broadcast dimensions of the inputs; NaN where an input is missing.

Raises:
  • ValueError – For an unknown engine.

  • ImportError – If engine="compiled" and the kernel is not available.

References

Rec. ITU-R P.840-9, 2023: Attenuation due to clouds and fog. International Telecommunication Union, Geneva, https://www.itu.int/rec/R-REC-P.840 (recommendation, no DOI).

Liebe, H. J., G. A. Hufford, and T. Manabe, 1991: A model for the complex permittivity of water at frequencies below 1 THz. Int. J. Infrared Millimeter Waves, 12, 659-675, https://doi.org/10.1007/BF01008897

Examples

>>> k94 = cloud_liquid_attenuation(94.0, 273.15)