radarx.retrieve.dual_frequency.dfr_rain#
- radarx.retrieve.dual_frequency.dfr_rain(dfr, dbz, *, frequencies=(35.0, 94.0), temperature=10.0, mu=3.0, tolerance=1.0, n_threads=None, engine='auto')[source]#
Drop size and water content of rain from the dual-frequency ratio.
Looks up the mass-weighted mean diameter \(D_m\) in the table of the ratio against \(D_m\) of normalized gamma distributions of shape
mu(seeradarx.retrieve.dual_frequency), and gets \(N_w\) and the liquid water content from the reflectivity of the lower frequency.- Parameters:
dfr (
xarray.DataArray) – Dual-frequency ratio in dB of the attenuation-corrected reflectivities (dual_frequency_ratio()).dbz (
xarray.DataArray) – Attenuation-corrected reflectivity (dBZ) at the lower frequency, on the same gates.frequencies (
tupleoffloat, optional) – The lower and the higher frequency in GHz of the ratio. Default(35.0, 94.0).temperature (
float, optional) – Temperature of the water in degrees Celsius, for its refractive index. Default 10.mu (
float, optional) – Shape parameter of the gamma distribution. Default 3, a radarx choice for the middle of the range of observed rain (0-6). The ratio of a given \(D_m\) changes by about 0.5-2 dB over this range at \(D_m\) above 1 mm.tolerance (
float, optional) – How far (dB) below the smallest tabulated ratio a ratio is still accepted and set to the smallest size (withoutNWandLWC). Default 1.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.Dataset–DM(mm),NW(m-3 mm-1) andLWC(g m-3) on the gates of the input, NaN where the ratio is outside the table (seeradarx.retrieve.dual_frequency).- Raises:
ValueError – For frequencies that are not two increasing values, a negative
toleranceor an unknownengine.TypeError – If an input is not a DataArray.
ImportError – If
engine="compiled"and the kernel is not available, or the T-matrix kernel is not.
Notes
Rain at W band attenuates by several dB per kilometre and the reflectivity of drops larger than 1.5 mm saturates, so the ratio needs an attenuation correction that is good to a fraction of a dB over the path. Without it the size is overestimated.
References
Tridon, F., and A. Battaglia, 2015: Dual-frequency radar Doppler spectral retrieval of rain drop size distributions and entangled dynamics variables. J. Geophys. Res. Atmos., 120, 5585-5601, https://doi.org/10.1002/2014JD023023
Brandes, E. A., G. Zhang, and J. Vivekanandan, 2002: Experiments in rainfall estimation with a polarimetric radar in a subtropical environment. J. Appl. Meteor., 41, 674-685, https://doi.org/10.1175/1520-0450(2002)041<0674:EIREWA>2.0.CO;2
Examples
>>> rain = dfr_rain(dfr, ka_corrected, frequencies=(35.5, 94.0)) >>> rain.DM