pyart.graph.GridMapDisplay

class pyart.graph.GridMapDisplay(grid, debug=False)[source]

A class for creating plots from a grid object using xarray with a cartopy projection.

Parameters
  • grid (Grid) – Grid with data which will be used to create plots.

  • debug (bool) – True to print debugging messages, False to supress them.

Variables
  • ~GridMapDisplay.grid (Grid) – Grid object.

  • ~GridMapDisplay.debug (bool) – True to print debugging messages, False to supress them.

initalize the object.

cartopy_coastlines()

Get coastlines using cartopy.

cartopy_political_boundaries()

Get political boundaries using cartopy.

cartopy_states()

Get state boundaries using cartopy.

generate_filename(field, level[, ext])

Generate a filename for a grid plot.

generate_grid_title(field, level)

Generate a title for a plot.

generate_latitudinal_level_title(field, level)

Generate a title for a plot.

generate_longitudinal_level_title(field, level)

Generate a title for a plot.

plot_colorbar([mappable, orientation, ...])

Plot a colorbar.

plot_crosshairs([lon, lat, linestyle, ...])

Plot crosshairs at a given longitude and latitude.

plot_grid(field[, level, vmin, vmax, norm, ...])

Plot the grid using xarray and cartopy.

plot_latitude_slice(field[, lon, lat])

Plot a slice along a given latitude.

plot_latitudinal_level(field, y_index[, ...])

Plot a slice along a given latitude.

plot_longitude_slice(field[, lon, lat])

Plot a slice along a given longitude.

plot_longitudinal_level(field, x_index[, ...])

Plot a slice along a given longitude.