rioxarray icon indicating copy to clipboard operation
rioxarray copied to clipboard

Adding rasterio's colourmap functionality

Open cnavacch-spire opened this issue 2 years ago • 1 comments

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 the to_raster() method and calling the write_colormap() function from within the rasterio.open(...) context should do the job.

Many thanks for the great work so far!

cnavacch-spire avatar Oct 30 '23 11:10 cnavacch-spire

Related: #414

snowman2 avatar Oct 31 '23 04:10 snowman2