radarx.retrieve.disdrometer.process_disdrometer#

radarx.retrieve.disdrometer.process_disdrometer(obj, *, qc='relative', fits=('MM246', 'TMM246'), band='S', temperature=20.0, velocity='measured', n_threads=None, engine='auto', **qc_kwargs)[source]#

Quality control, N(D), moments, gamma fits and radar variables.

Parameters:
  • obj (xarray.Dataset) – Disdrometer data with counts (e.g. from radarx.io.read_parsivel()), or the output of disdrometer_qc() / raupach_berne_correction() (then qc=None).

  • qc ({"relative", "raupach2015", "raupach_berne", None}, optional) – disdrometer_qc() with that method (default "relative"), raupach_berne_correction() ("raupach_berne"), or none.

  • fits (sequence of str, optional) – Gamma fits among MM246, MM346, MM234 (method of moments) and TMM246, TMM346, TMM234 (truncated moments). Default ("MM246", "TMM246").

  • band ({"S", "C", "X"}, optional) – Radar band of the radar variables. Default "S".

  • temperature (float, optional) – Water temperature (degrees Celsius) of the scattering tables. Default 20.

  • velocity ({"measured", "terminal"}, optional) – See number_concentration().

  • engine, n_threads (optional) – Compiled kernel or NumPy implementation and threads.

  • **qc_kwargs – Options of the quality control (e.g. tolerance, max_wind).

Returns:

xarray.Dataset – On time: ND (on time and diameter), the quantities of dsd_moments(), the radar variables DBZH, ZDR, KDP, RHOHV, AH and ADP of radarx.retrieve.radar_from_dsd(), and per fit N0_<fit>, MU_<fit>, LAMBDA_<fit>, DM_<fit>, D0_<fit> and NW_<fit>; with the station coordinates of obj.

Notes

Chains disdrometer_qc() or raupach_berne_correction() (Raupach and Berne 2015), number_concentration(), dsd_moments() and fit_gamma() (Ulbrich and Atlas 1998; Cao and Zhang 2009) and radarx.retrieve.radar_from_dsd(); the equations, tables and radarx choices are described in the documentation of each.

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

Ulbrich, C. W., and D. Atlas, 1998: Rainfall microphysics and radar properties: Analysis methods for drop size spectra. J. Appl. Meteor., 37 (9), 912-923, https://doi.org/10.1175/1520-0450(1998)037<0912:RMARPA>2.0.CO;2

Cao, Q., and G. Zhang, 2009: Errors in estimating raindrop size distribution parameters employing disdrometer and simulated raindrop spectra. J. Appl. Meteor. Climatol., 48 (2), 406-425, https://doi.org/10.1175/2008JAMC2026.1

Examples

>>> from radarx.io import read_parsivel
>>> out = read_parsivel("PIPS1A_merged.txt").radarx.disdrometer()
...