easyclimate.plot.mpas.voronoi_grid

Grid-line plots for MPAS Voronoi meshes.

Functions

plot_voronoi_grid(data[, verticesOnEdge, lonVertex, ...])

Plot MPAS Voronoi mesh edges.

Module Contents

easyclimate.plot.mpas.voronoi_grid.plot_voronoi_grid(data, verticesOnEdge='verticesOnEdge', lonVertex='lonVertex', latVertex='latVertex', lon_min=None, lon_max=None, lat_min=None, lat_max=None, ax=None, **linekwags)

Plot MPAS Voronoi mesh edges.

Parameters

dataxarray.Dataset

MPAS dataset containing verticesOnEdge, lonVertex, and latVertex. Used as the fallback source when these variables are not provided explicitly.

verticesOnEdgestr, optional

Name of the edge-to-vertex connectivity variable using MPAS 1-based vertex indices.

lonVertex, latVertexstr, optional

Names of the vertex longitude and latitude variables in radians.

lon_min, lon_max, lat_min, lat_maxfloat, optional

Optional subset window in degrees. Cross-dateline longitude windows are supported.

axmatplotlib.axes.Axes, optional

Axes on which to draw. By default, use the current axes.

**linekwags

Additional keyword arguments passed to matplotlib.collections.LineCollection.

Returns

matplotlib.collections.LineCollection

Line collection containing selected Voronoi mesh edges.

MPAS/Voronoi grid

MPAS/Voronoi grid