Is there a function that would write R color tables as gdal color tables such as the one described in http://www.gdal.org/rgb2pct.html ? Thanks Agus