Open cnavacch-spire opened 8 months ago
When writing GeoTIFF files from an xarray.DataArray, the possibility to write colourmaps is currently not provided (if I have not overseen sth.):
xarray.DataArray
https://rasterio.readthedocs.io/en/stable/topics/color.html#writing-colormaps
Adding an additional keyword to the profile_kwargs of the to_raster() method and calling the write_colormap() function from within the rasterio.open(...) context should do the job.
profile_kwargs
to_raster()
write_colormap()
rasterio.open(...)
Many thanks for the great work so far!
Related: #414
When writing GeoTIFF files from an
xarray.DataArray
, the possibility to write colourmaps is currently not provided (if I have not overseen sth.):https://rasterio.readthedocs.io/en/stable/topics/color.html#writing-colormaps
Adding an additional keyword to the
profile_kwargs
of theto_raster()
method and calling thewrite_colormap()
function from within therasterio.open(...)
context should do the job.Many thanks for the great work so far!