pyart.graph.GridMapDisplay.plot_grid_contour#

GridMapDisplay.plot_grid_contour(field, level=0, vmin=None, vmax=None, mask_outside=False, title=None, title_flag=True, ax=None, fig=None, lat_lines=None, lon_lines=None, projection=None, contour_values=None, linewidths=1.5, colors='k', embellish=True, maps_list=('countries', 'coastlines'), resolution='110m', background_zoom=8, **kwargs)[source]#

Plot the grid contour using xarray and cartopy.

Additional arguments are passed to Xarray’s pcolormesh function.

Parameters:
  • field (str) – Field to be plotted.

  • level (int) – Index corresponding to the height level to be plotted.

Other Parameters:
  • vmin, vmax (float) – Lower and upper range for the colormesh. If either parameter is None, a value will be determined from the field attributes (if available) or the default values of -8, 64 will be used. Parameters are used for luminance scaling.

  • mask_outside (bool) – True to mask data outside of vmin, vmax. False performs no masking.

  • title (str) – Title to label plot with, None will use the default generated from the field and level parameters. Parameter is ignored if the title_flag is False.

  • title_flag (bool) – True to add title to plot, False does not add a title.

  • ax (Axis) – Axis to plot on. None will use the current axis.

  • fig (Figure) – Figure to add the colorbar to. None will use the current figure.

  • lat_lines, lon_lines (array or None) – Location at which to draw latitude and longitude lines. None will use default values which are resonable for maps of North America.

  • projection (cartopy.crs class) – Map projection supported by cartopy. Used for all subsequent calls to the GeoAxes object generated. Defaults to PlateCarree.

  • contour_values (float array) – list of contours to plot

  • linewidths (float) – width of the contour lines

  • colors (color string or sequence of colors) – The contour colours

  • embelish (bool) – True by default. Set to False to supress drawinf of coastlines etc… Use for speedup when specifying shapefiles. Note that lat lon labels only work with certain projections.

  • maps_list (list of strings) – if embelish is true the list of maps to use. default countries, coastlines

  • resolution (‘10m’, ‘50m’, ‘110m’.) – Resolution of NaturalEarthFeatures to use. See Cartopy documentation for details.

  • background_zoom (int) – Zoom of the background image. A highest number provides more detail at the cost of processing speed