radarx.retrieve.vertical_profiles.cvp#
- radarx.retrieve.vertical_profiles.cvp(volumes, data_vars=None, *, azimuth, ground_range, half_range=10000.0, half_azimuth=10.0, heights=None, dz=50.0, radius=100.0, min_rhohv=0.6, min_dbz=-10.0, rhohv='auto', dbz='auto', min_count=1, min_fraction=0.0, reduction='mean', linear=None, vertical_mean='db', min_samples=1, counts=False, elevation_correction=False, n_threads=None, engine='auto')[source]#
Columnar vertical profile above a point of a volume.
The columnar vertical profile (CVP) of Murphy et al. (2020) [1] is a vertical profile of a sector of the radar volume. A centre is chosen in azimuth and ground range, and a sector around it (
half_rangeup- and down-radial,half_azimuthclockwise and counter-clockwise). For every sweep, the data of the sector are averaged over the azimuths for each range gate, and the mean of each gate is projected horizontally to the centre, which gives samples irregularly spaced in height. A sample of a sweep is only used between the heights, at the centre, of the two “intermediate elevation angles” half-way to the sweeps above and below. The samples of all sweeps are then averaged on a regular height grid with the weights of Cressman (1959) [2].The sector size (20 km in range and 20 degrees in azimuth), the Cressman radius of 100 m and the 50 m spacing are those of Murphy et al. (2020), who use them for stratiform precipitation. Defaults here that are not stated in the paper are radarx’s: the thresholds of
qvp(), the minimum of 1 gate per azimuthal mean (min_count; the 30 gates ofqvp()cannot be reached in a sector), and the averaging of dB quantities in the azimuthal mean in linear units. The paper states that the Cressman averaging is done on Z and ZDR in logarithmic units (vertical_mean="db", the default here); how the azimuthal averaging treats them is not stated.- Parameters:
volumes (
xarray.DataTree,xarray.Datasetor sequence ofthem) – A radar volume withsweep_*groups (xradar layout), or a sequence of volumes in time order. Sweeps that lack the variables are left out. Use a different centre for each volume withradarx.retrieve.cvp()called per volume.data_vars (
strorlistofstr, optional) – Variables to profile, as inqvp().azimuth (
float) – Azimuth (degrees clockwise from north) of the centre of the sector.ground_range (
float) – Ground distance (m) of the centre from the radar. Murphy et al. (2020) use centres within 100 km of the radar: beyond that, the beams are wider than the spacing of the elevations and the profile has gaps.half_range (
float, optional) – Half the radial extent (m) of the sector. Default 10000.half_azimuth (
float, optional) – Half the azimuthal extent (degrees) of the sector. Default 10.heights (array-like, optional) – Heights (m above sea level) of the profile. By default a regular grid of
dzover the heights of the samples.dz (
float, optional) – Spacing (m) of the default height grid. Default 50.radius (
float, optional) – Cressman radius (m): samples within this vertical distance of a grid height are averaged. Default 100.min_rhohv, min_dbz, rhohv, dbz, min_fraction, reduction, linear – As in
qvp(), for the azimuthal reduction.min_count (
int, optional) – Minimum number of gates of the sector in the azimuthal mean of a range gate. Default 1.vertical_mean (
{"db", "linear"}, optional) – Whether dB quantities are averaged in height in dB (default, as Murphy et al. 2020) or in linear units.min_samples (
int, optional) – Minimum number of samples 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 inqvp(). 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 onheight(m above sea level) for a single volume, on(time, height)for a sequence, with the centre as the scalar coordinatesazimuthandground_rangeand the radar site.
See also
Notes
Not implemented: the moving CVP that follows an aircraft or a storm (give a different centre per volume by calling the function for each volume and concatenating the results), and the KDP processing of Griffin et al. (2018) that the paper applies (use
radarx.retrieve.estimate_kdp()). The 1.3 % displacement of the mean location of the projected points reported in the paper was not checked.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.cvp(dtree, azimuth=225.0, ground_range=30e3) >>> profile = dtree.radarx.cvp(azimuth=225.0, ground_range=30e3)