Colours are the deeds of light; its deeds and sufferings: thus considered we may expect from them some explanation respecting light itself.
The cptclip utility extracts a sub-table from
a cpt format file. The arguments to the mandatory
are interpreted as the (z) limits of the output unless the
switch is specified, in which case they are the segment numbers.
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).
Specify a file to which to write a formatted backtrace. The file will only be created if there is a backtrace created, typically when an error occurs.
formatof the backtrace written to the files specified by
--backtrace-file, one of
Write the output to
file, rather than
The (z) range of the output, or the segments if the
-sswitch is also given.
maxarguments of the
-Rswitch are interpreted as the segment numbers (starting at one).
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