lair.geo.plot_grid#

lair.geo.plot_grid(grid, lw=1, ax=None, extent=None, crs=None, **kwargs)[source]#

Plot a grid.

Parameters:
  • grid (xr.DataArray | xr.Dataset) – The grid to plot.

  • ax (plt.Axes, optional) – Axes object to plot to, by default None.

  • extent (list[minx, maxx, miny, maxy], optional) – Extent of the plot, by default None.

  • crs (ccrs.CRS, optional) – CRS of the plot, by default None.

  • kwargs (Any) – Additional keyword arguments to pass to the pcol or pcolormesh method.

  • lw (float)

Returns:

plt.Axes – Axes object

Return type:

plt.Axes