cptcont (1) - Linux Man Pages
cptcont: create a continuous GMT colour palette table (cpt) file based on the colours of a non-continuous cpt file.
cptcont - create a continuous GMT colour palette table (cpt) file based on the colours of a non-continuous cpt file.
cptcont [-h] [-m] [-o
file] [-p percent] [-v] [-V] [file]
The program will read from stdin if a file is not specified as the final argument, and write to stdout if the -o option is not specified.
- Brief help.
- Split each input segment into two output segments with the colour at the common point being the colour of the original segment. This gives a more faithful conversion of gradients with "corners", such as diverging gradients, albeit at the cost of larger files.
-o, --output file
- Write the output to file, rather than stdout.
-p, --partial percentage
The endpoints are moved the specified
towards the mean colour, so that a value of 100 (the default) moves the endpoints to the mean colour, 50 moves them half-way there, and so on.
Negative values and values greater than 100 are permitted.
- Verbose operation.
- Version information.
Create an almost-continuous table:
cptcont -v -p 66 -o new.cpt old.cpt