radarx.vis.interactive.hvplot_cappi#

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

Plot a CAPPI on the horizontal x/y plane.

Parameters:
  • da (xarray.DataArray) – CAPPI field on x/y (e.g. from create_cappi) or a 3D grid with a z dimension (e.g. from to_grid).

  • z (float, optional) – Height in metres to select from a 3D grid (nearest level). If omitted for a 3D grid, a height slider is shown.

  • 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 or holoviews.DynamicMap – Plan view, or a height slider over all levels of a 3D grid.

Examples

>>> grid = dtree.radarx.to_grid(data_vars=["DBZH"])
>>> hvplot_cappi(grid["DBZH"], z=2000)  # single level
>>> hvplot_cappi(grid["DBZH"])  # height slider