radarx.retrieve.disdrometer.number_concentration#

radarx.retrieve.disdrometer.number_concentration(obj, *, counts=None, velocity='measured', sample_interval=None, fall_speed='drag_balance', n_threads=None, engine='auto')[source]#

Drop number concentration N(D) from particle counts.

Parameters:
  • obj (xarray.Dataset) – Disdrometer data with counts on (time, velocity, diameter).

  • counts (str, optional) – Counts variable. Default "counts_qc" if present (output of disdrometer_qc() or raupach_berne_correction()), else "counts".

  • velocity ({"measured", "terminal"}, optional) – Fall speed of each particle: the centre of its velocity class (default) or the terminal fall speed of its size class (terminal_fall_speed of the dataset, or sea-level speeds).

  • sample_interval (float, optional) – Integration time in s. Default: the sample_interval variable, else the spacing of time.

  • fall_speed ({"drag_balance", "atlas1973"}, optional) – Sea-level law of terminal_fall_speed() for velocity="terminal" when the dataset has no terminal_fall_speed.

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

  • engine ({"auto", "compiled", "numpy"}, optional) – Compiled kernel or NumPy implementation.

Returns:

xarray.DataArray – ND (m-3 mm-1) on (time, diameter) with the bin_width coordinate, multiplied by concentration_factor when present. NaN for records discarded by the quality control.

Notes

\(N(D_i)\) is Eq. 6 of Raupach and Berne (2015) with the sampling area \(S_i = 10^{-6} L (B - D_i/2)\) of their Eq. 5 (\(L\) = 180 mm, \(B\) = 30 mm, Sect. 4; attributed there to Löffler-Mang and Joss 2000 and Battaglia et al. 2010). Raw counts are multiplied by concentration_factor only when it is present (their Sect. 5.2).

Dask. This function computes the dask array: it works on small in-memory data. The input is loaded into memory and the result is held in memory.

References

Raupach, T. H., and A. Berne, 2015: Correction of raindrop size distributions measured by Parsivel disdrometers, using a two-dimensional video disdrometer as a reference. Atmos. Meas. Tech., 8 (1), 343-365, https://doi.org/10.5194/amt-8-343-2015

Löffler-Mang, M., and J. Joss, 2000: An optical disdrometer for measuring size and velocity of hydrometeors. J. Atmos. Oceanic Technol., 17 (2), 130-139, https://doi.org/10.1175/1520-0426(2000)017<0130:AODFMS>2.0.CO;2

Battaglia, A., E. Rustemeier, A. Tokay, U. Blahak, and C. Simmer, 2010: PARSIVEL snow observations: A critical assessment. J. Atmos. Oceanic Technol., 27 (2), 333-344, https://doi.org/10.1175/2009JTECHA1332.1