uxarray.plot.dataarray_plot.rasterize#

uxarray.plot.dataarray_plot.rasterize(uxda, method='point', backend='bokeh', pixel_ratio=1.0, dynamic=False, precompute=True, projection=None, width=1000, height=500, colorbar=True, cmap='Blues', aggregator='mean', interpolation='linear', npartitions=1, cache=True, **kwargs)#

Performs an unstructured grid rasterization for visualuzation.

Parameters:
  • method (str) – Selects what type of element to rasterize (point, trimesh, polygon), with “point” being the only currently implemented method.

  • backend (str) – Selects whether to use Holoview’s “matplotlib” or “bokeh” backend for rendering plots

  • projection (ccrs) – Custom projection to transform (lon, lat) coordinates for rendering

  • pixel_ratio (float) – Determines the resolution of the outputted raster.

  • height (int) – Plot Height for Bokeh Backend

  • width (int) – Plot Width for Bokeh Backend

  • cache (bool) – Determines where computed elements (i.e. points, polygons) should be cached internally for subsequent plotting calls

Notes

For further information about supported keyword arguments, please refer to the [Holoviews Documentation](https://holoviews.org/_modules/holoviews/operation/datashader.html#rasterize) or run holoviews.help(holoviews.operation.datashader.rasterize).