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 polarazimuth/rangedimensions, or a field already onx/ydimensions. Existingx/y/zcoordinates (e.g. fromxradar.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 withxandyin km.- Raises:
ValueError – If
dacannot 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; passrasterize=Falsefor full vector output.Examples
>>> hvplot_ppi(da, clim=(-10, 60), frame_width=400) >>> da.radarx.plot.ppi(backend="matplotlib") # static figure