radarx.retrieve.vertical_profiles.rd_qvp#

radarx.retrieve.vertical_profiles.rd_qvp(volumes, data_vars=None, *, rmax=50000.0, power=2.0, heights=None, dz=100.0, radius=None, min_elevation=None, max_elevation=None, min_rhohv=0.6, min_dbz=-10.0, rhohv='auto', dbz='auto', min_count=30, min_fraction=0.0, reduction='mean', linear=None, vertical_mean='linear', min_samples=1, counts=False, elevation_correction=False, n_threads=None, engine='auto')[source]#

Range-defined quasi-vertical profile from all sweeps of a volume.

A quasi-vertical profile (qvp()) needs a high elevation. The range-defined QVP (RD-QVP) of Tobin and Kumjian (2017) [1] builds a profile that reaches the ground from the low and intermediate sweeps as well: the azimuthal means of every sweep, taken over the gates within rmax of the radar, are combined with weights that decrease with the distance from the radar. It is used for the structure near the surface and close to the radar, and as every QVP it assumes that the precipitation is the same all around the radar (Murphy et al. 2020 [2], who describe it).

This function follows the description of Murphy et al. (2020); the paper of Tobin and Kumjian (2017) has not been compared: QVPs of several elevations, each from data within 50 km of the radar, combined by inverse distance weighting. What is radarx’s own, and not checked against the paper: the form of the weight, ground_range ** -power with power = 2; the vertical radius over which the samples of the sweeps are combined, with the weights of Cressman (1959) [3]; the height grid; and the use of the azimuthal reduction of qvp() (thresholds, minimum count, averaging of dB quantities in linear units).

Parameters:
  • volumes (xarray.DataTree, xarray.Dataset or sequence of them) – A radar volume with sweep_* groups (xradar layout) or a sweep, or a sequence of volumes in time order. Sweeps that lack the variables (for example Doppler-only cuts) are left out.

  • data_vars (str or list of str, optional) – Variables to profile, as in qvp().

  • rmax (float, optional) – Only gates within this ground distance (m) of the radar are used. Default 50000 (Murphy et al. 2020 [2]).

  • power (float, optional) – Exponent of the weight ground_range ** -power of a sample (the ground range is at least 1 m). 0 gives equal weights. Default 2 (radarx choice).

  • heights (array-like, optional) – Heights (m above sea level) of the profile. By default a regular grid of dz over the heights of the gates.

  • dz (float, optional) – Spacing (m) of the default height grid. Default 100.

  • radius (float, optional) – Samples within this vertical distance (m) of a grid height are combined, with the weights of Cressman (1959). Default dz.

  • min_elevation, max_elevation (float, optional) – Use only the sweeps within these elevations (degrees).

  • min_rhohv, min_dbz, rhohv, dbz, min_count, min_fraction, reduction, linear – As in qvp(), for the azimuthal reduction of every sweep.

  • vertical_mean ({"linear", "db"}, optional) – Whether dB quantities are averaged in height in linear units (default) or in dB.

  • min_samples (int, optional) – Minimum number of samples (gates of the sweeps) for a defined value. Default 1.

  • counts (bool, optional) – Also return <name>_count, the number of samples used.

  • elevation_correction (bool, optional) – Refer KDP and ZDR of every sweep to the horizontal as in qvp(). There is no warning for low sweeps here. Default False.

  • n_threads (int, optional) – Threads for the compiled kernels. Default: all cores.

  • engine ({"auto", "compiled", "numpy"}, optional) – Implementation to use.

Returns:

xarray.Dataset – Profiles on height (m above sea level) for a single volume, on (time, height) for a sequence, with the radar site.

See also

qvp, cvp, melting_layer

Notes

Not implemented: any weighting of the gates other than by the ground range of their sweep. The hard cut at rmax is the one described by Murphy et al. (2020); weights beyond rmax (as in the Py-ART implementation) are not offered.

Dask. This function computes the dask array: the result combines the gates of all sweeps of the volume. The input is loaded into memory and the result is held in memory.

References

Examples

>>> profile = radarx.retrieve.rd_qvp(dtree, ["DBZH", "ZDR", "RHOHV"])
>>> profile = dtree.radarx.rd_qvp(rmax=30e3)