radarx.retrieve.disdrometer.raupach_berne_correction#

radarx.retrieve.disdrometer.raupach_berne_correction(obj, *, instrument='parsivel2', counts='counts', max_wind=None, density_correction=True, fall_speed='drag_balance', n_threads=None, engine='auto')[source]#

Correct Parsivel spectra with the method of Raupach and Berne (2015).

The velocities of each size class are shifted so that their mean matches the terminal fall speed, implausible particles are removed (their Eqs. 9-11), and per-class concentration correction factors are attached for number_concentration() (see radarx.retrieve.disdrometer).

Parameters:
  • obj (xarray.Dataset) – Disdrometer data with counts on (time, velocity, diameter) and the instrument rain intensity rain_rate_instrument (mm h-1), which selects the correction factors.

  • instrument ({"parsivel2", "parsivel"}, optional) – Factors for the Parsivel2 (Table 10 of Raupach and Berne 2015, default) or the first-generation Parsivel (Table 3).

  • counts (str, optional) – Counts to correct. Default "counts" (raw, as in Raupach and Berne 2015); "counts_qc" corrects the output of disdrometer_qc(), so that particles far from the fall speed (e.g. splashing drops) do not shift the mean velocity of their size class.

  • max_wind, density_correction, fall_speed (optional) – See disdrometer_qc().

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

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

Returns:

xarray.Dataset – obj with counts_qc (shifted and filtered counts), qc_mask, valid, terminal_fall_speed and concentration_factor (on time and diameter; NaN where the intensity is missing).

Notes

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