- wradlib.vis.plot_rhi(data, r=None, th=None, th_res=None, az=0, site=None, proj=None, rf=1.0, fig=None, ax=111, **kwargs)¶
Plots a Range Height Indicator (RHI).
This is a small wrapper around xarray dataarray.
The radar data, coordinates and metadata is transformed into an xarray dataarray. Using the wradlib dataarray accessor the dataarray is enabled to plot polar data.
cg=Truethe plotting is done in a curvelinear grid axes. Additional data can be plotted in polar coordinates or cartesian coordinates depending which axes object is used.
numpy.ndarray) – The data to be plotted. It is assumed that the first dimension is over the elevation angles, while the second dimension is over the range bins
numpy.ndarray) – The ranges. Units may be chosen arbitrarily. If None, a default is calculated from the dimensions of
float) – If present, factor for scaling range axis, defaults to 1.
numpy.ndarray) – The elevation angles in degrees in increasing order. If None, a default is calculated from the dimensions of
numpy.ndarray) – float or array of same shape as
th. In RHI’s it happens that the elevation angles are spaced wider than the beam width. If this beam width (in degrees) is given in
th_res, plot_rhi will plot the beams accordingly. Otherwise the behavior of
matplotlib.pyplot.pcolormeshassumes all beams to be adjacent to each other, which might lead to unexpected results.
tuple) – Tuple of coordinates of the radar site. If
projis not used, this simply becomes the offset for the origin of the coordinate system. If
projis used, values must be given as (longitude, latitude, altitude) tuple of geographical coordinates.
osgeo.osr.SpatialReference) – GDAL OSR Spatial Reference Object describing projection If this parameter is not None,
sitemust be set. Then the function will attempt to georeference the radar bins in the coordinate system defined by the projection string.
matplotlib.figure.Figure) – If given, the RHI will be plotted into this figure object. Axes are created as needed. If None, a new figure object will be created or current figure will be used, depending on
matplotlib.gridspec.SubplotSpec) – If matplotlib Axes object is given, the RHI will be plotted into this axes object. If matplotlib grid definition is given (nrows/ncols/plotnumber), axis are created in the specified place. Defaults to ‘111’, only one subplot/axis.
str) – Name of plotting function to be used under the hood. Defaults to ‘pcolormesh’. ‘contour’ and ‘contourf’ can be selected too.
creation of curvelinear grid axes objects
If proj=``cg``, the
cgax- curvelinear Axes (r-theta-grid) is returned.
caax- Cartesian Axes (x-y-grid) and
paax- parasite axes object for plotting polar data can be derived like this:
caax = cgax.parasites paax = cgax.parasites
Here are some limitations to normal Matplotlib Axes (see AXES_GRID1).