Color Palette Previewer
Validate a custom color table and see every scheme the way the tile server would render it.
LibreWXR colors every radar tile through a 256-row color table — the same color_table.csv format the public instance ships with. Load a table below and this page runs the server's exact validation contract in your browser, then renders every scheme as dBZ-calibrated rain and snow gradient strips, transparent cells included. A file that previews clean here will be accepted by a self-hosted instance through LIBREWXR_COLOR_SCHEMES_FILE. Nothing is uploaded — parsing, hashing, and rendering all happen on your machine.
color_table.csv here, or browse#RRGGBBAA cellscolor_table.csv from the LibreWXR repository — the shipped 15-scheme palette, handy as a template.
Preview
Both strips are dBZ-calibrated, one cell per whole dBZ value: rain runs 0–85 dBZ, snow runs −10–50 dBZ. Each cell shows the exact color the tile renderer would use — pixel value (dBZ + 32) × 2, mapped to table row pixel // 2 of the rain or snow block. The same mapping drives the project's own scheme preview images.
#00000000 — read exactly as they will composite over a map.
The format contract
These are the exact rules the server-side parser enforces — the same validation runs here, so the two can never disagree about a file:
- UTF-8 encoded, at most 2 MiB of raw bytes.
- Exactly 1 header row + 256 data rows (257 total). A single trailing newline is fine; CRLF and LF both work.
- Header cell 0 is decorative. The remaining cells are scheme display names — non-empty after trimming, unique, between 1 and 255 columns.
- Every data row carries exactly N+1 cells: a decorative first cell, then one
#RRGGBBAAcell per scheme — a#plus exactly 8 hex digits. - Data rows 0–127 form the rain block; rows 128–255 the snow block. Pixel value
v(0–255) reads block rowv // 2, so each row covers two pixel values. - Scheme IDs are assigned by column order, starting at 0. A fully custom file redefines what every ID means — the operator owns the ID space.
How the server uses your table
Point LIBREWXR_COLOR_SCHEMES_FILE at a local path or any http(s) URL and the data pipeline fetches and validates that source once per fetch cycle. Validation falls back fresh → last-good → packaged: a bad table never takes the renderer down, it just leaves the previous good palette applied. A valid table hot-reloads with no restart, and the content hash shown above (sha256 of the raw bytes, first 12 hex chars) is exactly the version the server reports. Full details live in the configuration reference.