You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TuiView currently only recognises colour tables written into the Raster Attribute Table. This is partly because tuiview was conceived as a tool for working with RATs, but also because the (older) colour table API is very slow to use from Python (have to read each row individually, not all at once like RATs).
So see if you can write the colour table to the RAT. You will also have to ensure the file is set to thematic (LAYER_TYPE=thematic in the band metadata or controls.setThematic(True) in RIOS).
If you feel strongly about this, I'm open to a PR to read the ColorTable if the RAT is missing - would be good if it didn't change the code around too much though.
I have a TIFF image with a palette but when I load it into tuiview it displays as greyscale, and says "no color table present"
The text was updated successfully, but these errors were encountered: