CPTPG(1)
π CPTPG π
okay bestie, welcome to cptpg, part of the User commands squad, and it's giving glow-up for your colour palettes β¨
πΈ NAME πΈ
cptpg β convert GMT colour palette tables (cpt) to PostGIS colour-maps. that's it, that's the girl π
β¨ SYNOPSIS β¨
cptpg [-h] [-o path] [-p] [-v] [-V] [path]
π¦ DESCRIPTION π¦
so the cptpg utility takes the colour palette table (cpt) files that GMT uses and converts them into the colour-maps that PostGIS uses β specifically the ones for the ST_ColorMap function. π
and lowkey it's not just a PostGIS thing either: it should also be possible to use these maps in the GDAL program gdaldem, the GRASS r.colors utility, and in ESRI products which call for a HDR color table. versatility, she ate π
if you don't hand it a file as that final argument, the program reads from stdin. and if you don't pass the --output option, it writes to stdout. classic, no cap π«Ά
π OPTIONS π
--backtrace-filepath β pick a file to write a formatted backtrace into. ngl this file only gets created if there's actually a backtrace to write, which usually means something went wrong π so like, an error happened bestie.--backtrace-formatformat β set the format of the backtrace written to whatever file you gave--backtrace-file. you get exactly one of three choices, no mixing:plain,xmlorjson. β¨--comments-writepath β write the comments from the input out to the specified path. keeping the receipts π-h,--helpβ brief help. the little "hey what is this" moment π--hinge-activeβ if your input cpt has aSOFT_HINGEdirective, this activates that hinge, which means the two halves of the gradient either side of the hinge get scaled independently. π₯ and if your input doesn't have such a directive? then this option has no effect. literally nothing happens, she's just vibing π-o,--outputpath β write the output to path instead ofstdout. π-p,--percentageβ convert (z) values to percentages. math but make it fashion π-v,--verboseβ verbose operation. she will talk π£οΈ-V,--versionβ version information. π
π§ AUTHOR π§
J.J. Green
and that's the whole page, bestie π go convert something iconic
this was cptutils 1.82, dated 9 July 2024 β mwah, periodt πβ¨π¦
π¦ 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