pyart.graph.plot_maxcappi#

pyart.graph.plot_maxcappi(grid, field, cmap=None, vmin=None, vmax=None, title=None, lat_lines=None, lon_lines=None, add_map=True, projection=None, colorbar=True, range_rings=False, dpi=100, savedir=None, show_figure=True, add_slogan=False, **kwargs)[source]#

Plots a Constant Altitude Plan Position Indicator (CAPPI) using an xarray Dataset.

Parameters:
  • grid (pyart.core.Grid) – The grid object containing the radar data to be plotted.

  • field (str) – The radar field to be plotted (e.g., “REF”, “VEL”, “WIDTH”).

  • cmap (str or matplotlib colormap, optional) – Colormap to use for the plot. Default is “SyedSpectral” if available, otherwise “HomeyerRainbow”.

  • vmin (float, optional) – Minimum value for the color scaling. Default is None, which sets it to the minimum value of the data.

  • vmax (float, optional) – Maximum value for the color scaling. Default is None, which sets it to the maximum value of the data.

  • title (str, optional) – Title of the plot. If None, the title is set to “Max-{field}”.

  • lat_lines (array-like, optional) – Latitude lines to be included in the plot. Default is calculated based on dataset coordinates.

  • lon_lines (array-like, optional) – Longitude lines to be included in the plot. Default is calculated based on dataset coordinates.

  • add_map (bool, optional) – Whether to include a map background in the plot. Default is True.

  • projection (cartopy.crs.Projection, optional) – The map projection for the plot. Default is cartopy.crs.LambertAzimuthalEqualArea().

  • colorbar (bool, optional) – Whether to include a colorbar in the plot. Default is True.

  • range_rings (bool, optional) – Whether to include range rings at 50 km intervals. Default is True.

  • dpi (int, optional) – DPI (dots per inch) for the plot. Default is 100.

  • savedir (str, optional) – Directory where the plot will be saved. If None, the plot is not saved.

  • show_figure (bool, optional) – Whether to display the plot. Default is True.

  • **kwargs (dict, optional) – Additional keyword arguments to pass to matplotlib’s pcolormesh function.

Returns:

None – This function does not return any value. It generates and optionally displays/saves a plot.

Notes

Author : Hamid Ali Syed (@syedhamidali)