A mean for a month of sentinel 2 data was created for 8 different bands.
I want to write and download this image into a geotiff. But this code doesn't seem to work.
# Compute a single mean from all data
ds_mean = ds.mean('time')
from datacube.utils.cog import write_cog
rgb_tiff = ds_mean.to_array()
write_cog(rgb_tiff,
fname='mean.tif',
overwrite=True)