1CPTCONT(1) User commands CPTCONT(1)
2
3
4
6 cptcont - create a continuous GMT colour palette table (cpt) file based
7 on the colours of a non-continuous cpt file.
8
10 cptcont [-h] [-m] [-o file] [-p percent] [-v] [-V] [file]
11
13 The cptcont program converts a (possibly) discontinuous colour palette
14 in the input to a continuous palette in the output. This is achieved by
15 replacing the endpoints of segments at which a discontinuity occurs by
16 their mean colour.
17
18 The program will read from stdin if a file is not specified as the
19 final argument, and write to stdout if the -o option is not specified.
20
22 --backtrace-file path
23 Specify a file to which to write a formatted backtrace. The file
24 will only be created if there is a backtrace created, typically
25 when an error occurs.
26
27 --backtrace-format format
28 Specify the format of the backtrace written to the files specified
29 by --backtrace-file, one of plain, xml or json.
30
31 -h, --help
32 Brief help.
33
34 -m, --midpoint
35 Split each input segment into two output segments with the colour
36 at the common point being the colour of the original segment. This
37 gives a more faithful conversion of gradients with "corners", such
38 as diverging gradients, albeit at the cost of larger files.
39
40 -o, --output file
41 Write the output to file, rather than stdout.
42
43 -p, --partial percentage
44 The endpoints are moved the specified pecentage towards the mean
45 colour, so that a value of 100 (the default) moves the endpoints to
46 the mean colour, 50 moves them half-way there, and so on.
47
48 Negative values and values greater than 100 are permitted.
49
50 -v, --verbose
51 Verbose operation.
52
53 -V, --version
54 Version information.
55
57 Create an almost-continuous table:
58
59 cptcont -v -p 66 -o new.cpt old.cpt
60
62 J. J. Green
63
65 GMT(1).
66
67
68
69CPTUTILS 7 August 2019 CPTCONT(1)