XYCPT(1)
π XYCPT(1) β the girlies' guide to xycpt π
sooo this is the User commands page for xycpt, bestie. It lives in the cptutils fam (v1.82, if you're keeping score π). Let's get into it.
β¨ NAME β¨
xycpt β generate GMT colour palette table (cpt) files from column data. yes literally that's the whole job and she does it flawlessly π¦
πΈ SYNOPSIS πΈ
xycpt [-b rgb] [-d] [-f rgb] [-h] [-n rgb] [-o path] [-r registration]
[-u] [-v] [-V] [-4] [-5] [-6] [path]
π DESCRIPTION π
okay so xycpt makes discrete or continuous cpt files out of the simplest possible input β like, just some sample values describing your colour (or greyscale) range, and she takes it from there. main character energy tbh π
Your input is 1β4 columns, and the way she reads them is very specific, so listen up:
- With 2 or 4 columns, that first column gets interpreted as a (
double) z value. π - With 1 or 3 columns, the z value is taken implicitly β she just knows.
- With 1 or 2 columns, the final column is taken as a greyscale value.
- With 3 or 4 columns, the last 3 columns are taken as RGB values. π
And the I/O vibe? She reads from stdin if you don't hand her a file as the final argument, and she writes to stdout if you don't specify the --output option. no cap π
β¨ OPTIONS β¨
quick heads up before we dive in: in all of the rgb specs below, the format is always red/green/blue, where each colour component is an integer in the range 0 to 255. got it? good. slay. π
-b,--backgroundrgb β sets the background colour of the output.--backtrace-filepath β pick a file for her to write a formatted backtrace into. π«Ά heads up tho: the file only gets created if a backtrace actually happens, which is typically when an error occurs.--backtrace-formatformat β sets the format of the backtrace written to whatever file you gave to--backtrace-file. Your choices areplain,xmlorjson.--comments-generateβ makes a comment in the output file with summary data (the date of creation, plus the name and version of thecptutilspackage). cute, informative, iconic β¨--comments-readpath β reads the comments from path and adds them to the output gradient. the format is just a plain text multi-line document with no comment delimiters β she'll add those herself, don't worry π-d,--discreteβ output a discrete cpt file. (the default is continuous, fyi.)-f,--foregroundrgb β sets the foreground colour of the output.-h,--helpβ brief help. short king behavior π-n,--nanrgb β sets the NaN (no data) colour of the output.-o,--outputpath β write the output to path instead ofstdout.-r,--registrationstring β for discrete conversion (so, when you're using--discrete), this specifiesupper,middleorlowerregistration of the data value. For theupperandlowertypes, the final (respectively the first) colour is omitted from the output β only the z value gets used. Formiddleregistration, all the colours appear in the output. πΈ-u,--unitβ colour values get specified as floating point numbers in the range 0β1 instead of as integers in the range 0β255.-v,--verboseβ verbose operation. she'll tell you everything π£οΈ-V,--versionβ version information.-4,--gmt4β use GMT 4 conventions when writing the cpt output: the colour-model code is uppercase, and the colours are separated by spaces.
β οΈ This is incompatible with the-5and-6options of course.
At present this option is the default, but that will change at some point. So if your use of the output depends on the GMT 4 layout (like, it's being consumed by a custom parser, for example), specify this option explicitly. fr fr, don't get caught out. π
-5,--gmt5β use GMT 5 conventions when writing the cpt output: the colour-model code is lowercase, and the colours are separated by a solidus for RGB and CMYK, and by a dash for HSV.
β οΈ This is incompatible with the-4and-6options of course.
-6,--gmt6β as the-5option, but this one allows theHARD_HINGEandSOFT_HINGEdirectives in place of the explicitHINGE =directive. π₯
β οΈ This is incompatible with the-4and-5options of course.
π AUTHOR π
J.J. Green β we stan π
and that's the whole page bestie!! this gorgeous thing comes from cptutils version 1.82, dated 9 July 2024 β so yeah, she's giving current, she's giving maintained, she's giving everything. now go make some cpt files, you absolute icon πβ¨π¦πΈπ
π«Άππβ
π¦ where this page comes from
- fedora 43: cptutils 1.82-4.fc43 Β· GPL-2.0-or-later
- fedora 44: cptutils 1.82-6.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms