How could I know the range of values of Master CPT?

In the following example I truncate the topo master CPT. But in order to truncate a (master) CPT I would need to know it range of values. How could I know it? Hope to be clear.

gmt psscale -O -K -Ctopo -G-7000/0 >> %OUT%

The ones that have a specified range is listed in the gmt makecpt help output:

   topo        : Sandwell/Anderson colors for topography [R=-7000/+7000, H, C=HSV]

Those that do no, such as polar or hot, are dynamic and are all -1/1 (if hinge) or 0/1 (no hinge).

Thanks!

Maybe the values could be add in https://docs.generic-mapping-tools.org/6.1/cookbook/cpts.html#built-in-color-palette-tables-cpt.

Yes, good idea. Already done and merged: https://github.com/GenericMappingTools/gmt/pull/4531

1 Like