radarx.vis.interactive.hvplot_max_cappi#

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

Plot a Max-CAPPI with side projections.

The plan view shows the column maximum, flanked by the maximum along y (top, x-z) and along x (right, z-y). With the bokeh backend the axes are linked, so zooming the plan view also zooms the projections.

Parameters:
  • da (xarray.DataArray) – 3D grid with z, y and x dimensions (e.g. from to_grid).

  • 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. frame_width sets the size of the plan view in pixels (bokeh).

Returns:

holoviews.Layout – Top projection, plan view and right projection sharing one colour range.

Raises:

ValueError – If da is not a 3D grid.

See also

radarx.vis.plot_maxcappi

Static matplotlib/cartopy Max-CAPPI.

Examples

>>> grid = dtree.radarx.to_grid(data_vars=["DBZH"])
>>> hvplot_max_cappi(grid["DBZH"], clim=(0, 60))