I tried solution from answers to this question Write classified raster with its symbology I used function writeGDAL(r, outRstName, type="Byte" etc.) but it only works with type "Byte", which include only integers from 0 to 256.
Is there solution for floats? I want to use it for data like air temperature maps. I save it with writeraster(format="GTiff") and it works well with floats. I want to add color palette to have it with color for use in Arcgis.
Many thanks in advance,
Anastasiia.
No, that is not possible. You can only store a color table with Byte or short integer values --- it is a restriction of the GeoTIFF file format. An ArcGIS color palette is a different thing altogether, I think.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.