makecpt - get numbers instead of names for colors

Added by Alan over 1 year ago

Sorry for this newbie question, although I have been using GMT since GMT1.0! I am trying to write CPT files with RGB color model but I want numbers only in the output, not color names. I am using the following command and getting the following output:

$ makecpt -Crainbow -T1./3./.1 -V -Z -I -Fr
makecpt: Prepare CPT via the master file rainbow
makecpt: CPT is continuous
1 red 1.1 255/63.75/0
1.1 255/63.75/0 1.2 darkorange1
1.2 darkorange1 1.3 255/191.25/0
1.3 255/191.25/0 1.4 yellow
1.4 yellow 1.5 191.25/255/0
1.5 191.25/255/0 1.6 chartreuse
1.6 chartreuse 1.7 63.75/255/0
1.7 63.75/255/0 1.8 green
1.8 green 1.9 0/255/63.75
1.9 0/255/63.75 2 0/255/127.5
2 0/255/127.5 2.1 0/255/191.25
2.1 0/255/191.25 2.2 cyan
2.2 cyan 2.3 deepskyblue
2.3 deepskyblue 2.4 0/127.5/255
2.4 0/127.5/255 2.5 0/63.75/255
2.5 0/63.75/255 2.6 blue
2.6 blue 2.7 63.75/0/255
2.7 63.75/0/255 2.8 127.5/0/255
2.8 127.5/0/255 2.9 191.25/0/255
2.9 191.25/0/255 3 magenta
B white
F black
N 127.5

Any ideas? This wasn't an issue in prior GMT releases (pre-GMT5).

Also, I would like the "old" format of numbers separated by spaces rather than the GMT5 slash. Is this possible? Or do I have to re-write my codes...

Many thanks.