radarx.retrieve.ensemble.measurement_error#
- radarx.retrieve.ensemble.measurement_error(obj, *, dbz=None, zdr=None, phidp=None, rhohv=None, field=None, n_samples=64, snr=None, spectrum_width=3.0, nyquist=None)[source]#
Standard deviation of the estimation error of the radar variables.
The error of an estimate from
n_samplespulse pairs with the receiver noise, for simultaneous transmission (SHV mode); the equations are inradarx.retrieve.ensemble.- Parameters:
obj (
xarray.DataArray,xarray.Datasetorxarray.DataTree) – A named field (DataArray), a sweep or grid, or a volume withsweep_*groups (sweeps without any of the fields are skipped).dbz, zdr, phidp, rhohv, field, n_samples, snr, spectrum_width, nyquist – As for
perturb_radar(). The correlation coefficient of the formulas is the fieldrhohvlimited to 0.5-1 (0.99 without the field), the differential reflectivity is the fieldzdr(0 dB without it).
- Returns:
xarray.Datasetorxarray.DataTree– For each field found<name>_error, the standard deviation of its error on the coordinates of the field, in dB (reflectivity and differential reflectivity), degrees (differential phase), 1 (correlation coefficient) and m s-1 (velocity), as float32. The input is not changed.- Raises:
KeyError – If no field is found.
ValueError – For unknown options or
n_samplesbelow 4.
Notes
The formulas are perturbation results to second order; Melnikov and Zrnic (2004) find them within 10 % of simulations for an SNR of the vertical channel of at least 5 to 9 dB, depending on the variable (the inverse SNR is limited to 10 here to keep the result finite), see
radarx.retrieve.ensemble.References
Melnikov, V. M., and D. S. Zrnic, 2004: Simultaneous transmission mode for the polarimetric WSR-88D: Statistical biases and standard deviations of polarimetric variables. NOAA/NSSL report, 84 pp., https://www.nssl.noaa.gov/publications/wsr88d_reports/SHV_statistics.pdf
Examples
>>> err = radarx.retrieve.measurement_error(sweep, snr=15) >>> err.ZDR_error