radarx.retrieve.vertical_profiles.qvp_timeseries#
- radarx.retrieve.vertical_profiles.qvp_timeseries(volumes, data_vars=None, *, heights=None, sweep=None, 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, counts=False, elevation_correction=False, n_threads=None, engine='auto')[source]#
Time-height quasi-vertical profiles from a sequence of volumes.
All sweeps are reduced in one call of the compiled kernel, then put on a common height axis.
- Parameters:
volumes (sequence of
xarray.DataTreeorxarray.Dataset) – Radar volumes (or sweeps) in time order.heights (array-like, optional) – Common heights above sea level (m). By default the gate heights of the first sweep. Profiles whose gate heights differ (other elevation or gate spacing) are interpolated linearly in height; values next to a missing gate stay missing.
sweep, elevation (optional) – Sweep selection in each volume, as in
qvp().
Notes
Dask. This function computes the dask array: it needs the fields of every time. The input is loaded into memory and the result is held in memory.
- data_varsstr or list of str, optional
Variables to profile. By default the reflectivity, differential reflectivity, correlation coefficient and KDP that the sweep has (if it has none of them, every numeric
(azimuth, range)variable). The mean of the radial velocity is not a wind and is left out; name a variable to profile it. The mean of a differential phase (namedPHIDP,UPHIDP, … in degrees) is the circular mean.- min_rhohvfloat or None, optional
Only gates with
rhohv > min_rhohvare used. Default 0.6 (Ryzhkov et al. 2016, p. 553).Nonedisables the test.- min_dbzfloat or None, optional
Only gates with reflectivity
> min_dbzare used. Default -10 dBZ (Ryzhkov et al. 2016, p. 553).Nonedisables the test.- rhohv, dbzstr or None, optional
Names of the fields used for the two tests.
"auto"(default) looks for common names (RHOHV,DBZH, …) and the CF standard name; a test is skipped if no field is found or the name isNone.- min_countint, optional
Minimum number of valid gates on the circle for a defined value: the value is defined where the number of valid gates is at least
min_count. Default 30. Ryzhkov et al. (2016, p. 553) require the number of valid gates to exceed 30, i.e. at least 31, so the default accepts one gate fewer than the paper; usemin_count=31for the paper’s rule.- min_fractionfloat, optional
Minimum fraction of the rays that must be valid. Default 0. The stricter of
min_countandmin_fractionapplies.- reduction{“mean”, “median”}, optional
Azimuthal mean (default) or median.
- linearstr or list of str, optional
Variables averaged in linear units (
10**(x/10)) and converted back to dB. By default the variables with unitsdB,dBZordBm(reflectivity, differential reflectivity). Ignored for the median.- countsbool, optional
Also return
<name>_count, the number of valid gates per height.- elevation_correctionbool, optional
Refer KDP and ZDR to the horizontal. KDP is divided by
cos(elevation)**2, the factor by which its azimuthal mean at the elevation of the sweep is lower than at the horizontal (approximate scaling for small oblate scatterers; not checked against a paper). ZDR (dB) is corrected with the inverse of the relation used byradarx.retrieve.zdr_offset(),ZDR0 = ZDR + 20 log10(cos(e)**2) - 20 log10(1 - 10**(ZDR/20) sin(e)**2)for the elevatione: Rayleigh scattering by spheroids with a vertical axis and no canting. That formula is derived in radarx, not checked against a paper, and applied to the azimuthal mean of ZDR. Canted or tumbling particles (and ice with a horizontal-axis preference) do not follow it. Default False. Sweeps below 10 degrees raise a warning either way.- n_threadsint, optional
Threads for the compiled kernel. Default: all cores.
- engine{“auto”, “compiled”, “numpy”}, optional
Implementation to use.
"auto"(default) prefers the compiled kernel and falls back to NumPy.
- Returns:
xarray.Dataset– Profiles on(time, height), with theelevationof each sweep ontime.rangeandground_rangeare those of the first sweep whenheightsis not given.
See also
References
Examples
>>> import xradar as xd >>> volumes = [xd.io.open_iris_datatree(f) for f in files] >>> tqvp = radarx.retrieve.qvp_timeseries(volumes, ["DBZH", "ZDR", "RHOHV"])