xarray.DataArray.dggs.explore

xarray.DataArray.dggs.explore#

DataArray.dggs.explore(*, cmap='viridis', center=None, vmin=None, vmax=None, robust=False, alpha=None, coords=None, view=None, basemap=None)#

interactively explore the data using lonboard

Requires lonboard, matplotlib, and arro3.core to be installed.

Parameters:
  • cmap (str) – The name of the color map to use

  • center (int or float, optional) – If set, will use this as the center value of a diverging color map.

  • alpha (float, optional) – If set, controls the transparency of the polygons.

  • coords (list of str, optional) – Additional coordinates to contain in the table of contents. Defaults to ["latitude", "longitude"].

Returns:

map (lonboard.Map) – The rendered map.

Notes

Plotting currently is restricted to 1D DataArray objects.