odc.geo.xr.to_rgba
- odc.geo.xr.to_rgba(ds, 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 (
Any
) –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: