radarx.retrieve.multidoppler.velocity_error#
- radarx.retrieve.multidoppler.velocity_error(snr, spectrum_width, *, wavelength, nyquist=None, prt=None, n_pairs=64, pairs='contiguous')[source]#
Standard deviation of the pulse-pair radial velocity estimate.
The variance of the mean velocity from the autocovariance (pulse pair) estimator of
n_pairssample pairs, for a signal with a Gaussian spectrum of width \(\sigma_v\) in white noise, Eqs. 6.22a and 6.22b of Doviak and Zrnic (1993) [1] (from Zrnic 1977 [2]):\[\mathrm{var}(\hat v) = \frac{\lambda^2}{32 \pi^2 M \rho^2(T_s) T_s^2} \left\{ \frac{1 - \rho^2(T_s)}{2 \sigma_{vn} \sqrt{\pi}} + \frac{N^2}{S^2} + \frac{2N}{S}\,[1 - \rho(2T_s)] \right\}\]for contiguous pairs (pulses that share a sample), and
\[\mathrm{var}(\hat v) = \frac{\lambda^2}{32 \pi^2 M \rho^2(T_s) T_s^2} \left[ (1 + N/S)^2 - \rho^2(T_s) \right]\]for independent pairs, with the correlation coefficient \(\rho(T_s) = \exp(-8 \pi^2 \sigma_v^2 T_s^2 / \lambda^2)\) of the Gaussian spectrum (Eq. 6.5), the normalized width \(\sigma_{vn} = \sigma_v / 2 v_a\), the Nyquist velocity \(v_a = \lambda / 4 T_s\) and the signal to noise ratio \(S/N\). The result goes into the
obs_errorofmulti_doppler()anddual_doppler_analytic().- Parameters:
snr (
xarray.DataArray, array-like orfloat) – Signal to noise ratio (dB), for example fromradarx.retrieve.snr().spectrum_width (
xarray.DataArray, array-like orfloat) – Doppler spectrum width \(\sigma_v\) (m s-1), for exampleWRADH. The error is NaN where either input is NaN (which removes the observation inmulti_doppler()).wavelength (
float) – Radar wavelength \(\lambda\) (m).nyquist, prt (
float, optional) – Give one of them: the Nyquist velocity \(v_a\) (m s-1) or the pulse repetition time \(T_s\) (s); \(v_a = \lambda / 4 T_s\).n_pairs (
int, optional) – Number of sample pairs \(M\) averaged in the estimate. Default 64.pairs (
{"contiguous", "independent"}, optional) – Whether the pairs share samples (uniformly spaced pulses, as on NEXRAD; default) or are independent (Eq. 6.22b).
- Returns:
xarray.DataArrayornumpy.ndarray– Standard deviation of the velocity estimate (m s-1): a DataArray whensnrorspectrum_widthis one, otherwise an array.
Notes
The expressions come from a perturbation analysis that the book states is valid for a large number of independent samples and a spectrum that is narrow against the Nyquist interval (conditions 6.20a, b), roughly \(2 \pi M \sigma_{vn} \gg 1\). At low signal to noise ratios and narrow widths it matches simulations only with many samples (Doviak and Zrnic 1993, Section 6.4.1). The formulas give the noise of the estimate of one gate and not the other errors of a gridded radial velocity: the interpolation, the spread of the beam over the grid cell, aliasing and clutter. Averaging gates in range or azimuth lowers the error, so take
n_pairsof the averaged data if you averaged. Only the weights of the radars relative to each other matter when the errors are in the same units, seeobs_errorofmulti_doppler().References
Examples
>>> sigma = radarx.retrieve.velocity_error( ... snr_db, wrad, wavelength=0.1071, nyquist=26.5, n_pairs=64 ... ) >>> wind = radarx.retrieve.multi_doppler(grids, obs_error=sigma)