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 withcounts(e.g. fromradarx.io.read_parsivel()), or the output ofdisdrometer_qc()/raupach_berne_correction()(thenqc=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 amongMM246,MM346,MM234(method of moments) andTMM246,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) – Seenumber_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– Ontime:ND(ontimeanddiameter), the quantities ofdsd_moments(), the radar variablesDBZH,ZDR,KDP,RHOHV,AHandADPofradarx.retrieve.radar_from_dsd(), and per fitN0_<fit>,MU_<fit>,LAMBDA_<fit>,DM_<fit>,D0_<fit>andNW_<fit>; with the station coordinates ofobj.
Notes
Chains
disdrometer_qc()orraupach_berne_correction()(Raupach and Berne 2015),number_concentration(),dsd_moments()andfit_gamma()(Ulbrich and Atlas 1998; Cao and Zhang 2009) andradarx.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() ...