cptclip (1) Linux Manual Page
cptclip – extract a sub-table from a GMT colour palette table (cpt).
Synopsis
- cptclip -R
min/max [-h] [-o file] [-s] [-v] [-V] [file]
Description
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.
Note that much of the functionality of this program is included in recent versions of the GMT program makecpt(1).
Options
-h, –help- Brief help.
-o, –output file
- Write the output to file, rather than stdout.
-R, –range min/max
- The (z) range of the output, or the segments if the -s switch is also given.
-s, –segments
- The min and max arguments of the -R switch are interpreted as the segment numbers (starting at one).
-v, –verbose
- Verbose operation.
-V, –version
- Version information.
Examples
Extract the table with z-range from 2.5 to 5:cptclip -v -o new.cpt -R 2.5/5 old.cpt
Extract the table with the first 5 segments:
cptclip -v -s -o new.cpt -R 1/5 old.cpt
