Values of a GMT colormap

In Matlab, I understand their colormap is a n by 3 array, something like the below:
0.2, 0.3, 0.2
0.5, 0.5, 0.7

I wonder is there a way I can get the numerical values of the colormaps in GMT? Specifically, I need to do this for the colormap “geo”.

Many thanks!

A quick check of the makecpt documentation suggest perhaps

gmt makecpt -Cgeo -Fr

You will have to convert this to a single 3-column table though.

1 Like

Many thanks! :+1: