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 bandsred,green,blue
constructxarray.Datarray
containinguint8
rgba image.- Parameters:
ds –
xarray.Dataset
vmin (
Optional
[float
]) – Defaults to0
whenvmax
is supplied.vmax (
Optional
[float
]) – Configure range, must be supplied for Dask inputs. When not configuredvmin=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: