Creating color relief from GeoTIFF using gdaldem returns font name

by alexandersupertramp   Last Updated June 13, 2019 00:22 AM

I'm trying to generate a color relief map from a SNODAS greyscale geotiff file scaled from 16-bit to 8-bit. Given the type of data and the scaling, it seems the pixel values are set at 1-5, with 5 being nearest white and 1 being nearest black. I'm trying to create a color relief from this using gdaldem using this:

gdaldem color-relief [inputfile.tif] [color.txt] [outputfile.tif]

However, I am returned this:

ERROR 1: Unknown color : ArialMT;}

This appears to be the font used in the text file, rather than the values I've put there, which is this:

0 nodata
1 blue
2 yellow
3 orange
4 red
5 white

Any ideas here?

Related Questions

Updated December 10, 2018 02:22 AM

Updated March 15, 2019 15:22 PM

Updated September 22, 2017 23:22 PM

Updated September 30, 2017 12:22 PM

Updated April 04, 2018 14:22 PM