mapshader.transforms.build_raster_overviews#

mapshader.transforms.build_raster_overviews(arr, levels, interpolate='linear')[source]#

Reduce the raster data resolution.

Parameters:
  • arr (xarray.DataArray) – The raster data.

  • levels (dict) – The factors and values to be used when reducing the data resolution.

  • interpolate (str, default=linear) – Resampling mode when upsampling raster. Options include: nearest, linear.

Returns:

overviews – The reduced resolution raster data.

Return type:

xarray.DataArray