radarx.vis.interactive.hvplot_range_azimuth#
- radarx.vis.interactive.hvplot_range_azimuth(da, backend=None, **kwargs)[source]#
Plot a sweep in its native polar layout (range vs. azimuth/time).
- Parameters:
da (
xarray.DataArray) – Sweep moment with arangedimension and one ray dimension (azimuth,elevationortime).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– Range (km) on the x-axis against the ray dimension on the y-axis.- Raises:
ValueError – If
dahas norangedimension or no ray dimension.
Examples
>>> import xradar as xd >>> from open_radar_data import DATASETS >>> from radarx.vis import hvplot_range_azimuth >>> file = DATASETS.fetch("swx_20120520_0641.nc") >>> dtree = xd.io.open_cfradial1_datatree(file) >>> da = dtree["sweep_0"]["corrected_reflectivity_horizontal"] >>> hvplot_range_azimuth(da) # or da.radarx.plot()