odc.geo.xr.ODCExtensionDs.to_rgba

ODCExtensionDs.to_rgba(bands=None, *, vmin=None, vmax=None)[source]

Convert dataset to RGBA image.

Given xarray.Dataset with bands red,green,blue construct xarray.Datarray containing uint8 rgba image.

Parameters:
  • dsxarray.Dataset

  • vmin (Optional[float]) – Defaults to 0 when vmax is supplied.

  • vmax (Optional[float]) – Configure range, must be supplied for Dask inputs. When not configured vmin=0, vmax=max(r,g,b)) is used.

  • bands (Optional[Tuple[str, str, str]]) – Which bands to use, order should be red,green,blue

Return type:

DataArray