radarx.vis.interactive.hvplot_ppi#

radarx.vis.interactive.hvplot_ppi(da, backend=None, **kwargs)[source]#

Plot a sweep as a georeferenced plan-position indicator (PPI).

Parameters:
  • da (xarray.DataArray) – Sweep moment on polar azimuth/range dimensions, or a field already on x/y dimensions. Existing x/y/z coordinates (e.g. from xradar.georeference) are reused; otherwise they are computed from range, azimuth and elevation.

  • backend ({"bokeh", "matplotlib"}, optional) – HoloViews plotting backend. None (default) keeps the active one.

  • **kwargs (dict, optional) – Additional keyword arguments passed to hvplot (e.g. clim, cmap, frame_width, rasterize). By default the colour range uses the 2nd-98th percentiles (robust=True) and is not forced symmetric.

Returns:

holoviews.QuadMesh – Plan view with x and y in km.

Raises:

ValueError – If da cannot be georeferenced.

Notes

Fields with more than RASTERIZE_THRESHOLD (50 000) gates are rasterized with datashader by default when it is installed, which keeps plots and saved HTML small; pass rasterize=False for full vector output.

Examples

>>> hvplot_ppi(da, clim=(-10, 60), frame_width=400)
>>> da.radarx.plot.ppi(backend="matplotlib")  # static figure