I want to render an IMG file according to a specific renderer, and export to a jpeg File. I have asked a question about this, and got a satisfactory answer.
The issue now is that I need to write a color configuration file which matches the symbology that is required. My Symbology is supposed to be like this:
Based on this answer, I have found that you can write the colors config file somewhat like this:
40 140 0 3
35 204 9 9
30 255 67 11
25 255 165 0
20 255 246 0
15 54 254 0
10 0 255 209
5 1 127 255
0 4 0 213
-4 133 1 243
My problem is that I don't understand if the given values for the pixels are the lower bound, or the upper bound. I don't know how to specify the ranges according to the symbology that I need.
Where can I Find documentation for Gdaldem's color configuration file? Or alternatively, how can I specify the ranges in the configuration file?