palettize list
The list command group explores presets and export formats. palettize formats is the fuller view of formats: it also prints each format’s options.
List Presets
Section titled “List Presets”palettize list presetspalettize list presets --search blue --category sequential --limit 20palettize list presets --namespace colorbrewer --swatchpalettize list categories| Option | Short | Default | Description |
|---|---|---|---|
--search | -q | Keep presets whose name contains this text. | |
--category | sequential, diverging, cyclic, qualitative, or miscellaneous. | ||
--namespace | Filter by publisher, e.g. colorbrewer. | ||
--swatch | Draw a gradient beside each row. | ||
--limit | 50 | Maximum rows. 0 shows every match. |
palettize list categories prints each category and how many presets it contains.
This displays a table of all preset names from the cmap library plus any custom presets.
Example output:
Available Preset Palettes┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓┃ Name ┃┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩│ custom/grayscale ││ custom/simple_rgb ││ inferno ││ magma ││ plasma ││ viridis ││ ... │└──────────────────────────────────────┘Preset detail
Section titled “Preset detail”palettize presets viridisPrints that preset’s category, source, and a short swatch. A missing name suggests palettize list presets --search.
Using Presets
Section titled “Using Presets”Once you find a preset name, use it with show or create:
palettize show viridispalettize create viridis -f gdal -o viridis.txtPreset Categories
Section titled “Preset Categories”Presets come from multiple sources:
- Built-in custom presets: Prefixed with
custom/(e.g.,custom/grayscale) - cmap library presets: Standard scientific colormaps like
viridis,magma,inferno,plasma, etc.
List Exporters
Section titled “List Exporters”palettize list exporterspalettize formats # same list, plus whether each format uses --domain and --scalepalettize formats gdal # options, types, and defaults for one formatBuilt-in identifiers: gdal, qgis, sld, titiler, mapgl, observable, gee, css, svg, gimp, json, hex, rgba, hsl.
Using Exporters
Section titled “Using Exporters”Use the identifier (first column) with the --format option:
# Single formatpalettize create viridis -f gdal -o output.txt
# Multiple formatspalettize create viridis -f gdal,qgis,mapgl -o "{name}_{format}.{ext}"Plugin Exporters
Section titled “Plugin Exporters”If you’ve installed additional exporter plugins, they will also appear in this list. See Custom Exporters for information on creating your own.