mapshader.core.shade_agg#
- mapshader.core.shade_agg(source: MapSource, agg: DataArray, xmin, ymin, xmax, ymax)[source]#
Convert a DataArray to an image by choosing an RGBA pixel color for each value.
- Parameters:
source (mapshader.sources.MapSource) – The input datasource.
agg (xarray.DataArray) – The input datasource.
xmin (float) – X-axis minimum range.
ymin (float) – Y-axis minimum range.
xmax (float) – X-axis maximum range.
ymax (float) – Y-axis maximum range.
- Returns:
img – A DataArray representing an image.
- Return type:
xarray.DataArray