I dont understand what is wrong if I want to use the option -Ccolor.cpt with
gmt gmt2kml myfile.dat -Fs -Ccolor.cpt > myfile.kml
gmt2kml [ERROR]: Cannot use continuous color palette. Here the idea is to associate different colours to each point depending on the amplitude value we can find on the 3rd column.
gmt2kml is a filter so input may come from files or stdin. We need to build the KML styles up front for the various colors. If you use a continuous CPT then there is an infinite number of colors (since we have not read any data yet). Just decimate your CPT by using a small increment and you get a finite number of colors.