FederAstro

Scripts / Palette Lab

Palette Lab

Module · 0.8.0 · free for non-commercial use · CC BY-NC 4.0

20 built-in narrowband palettes side by side from your Hα, OIII and SII masters, plus palettes you design yourself. Finish the color and build the one you like at full resolution.

Add to PixInsight Docs on GitHub

Overview

Choosing a palette usually means building SHO, then HOO, then a few PixelMath experiments, one at a time. Palette Lab renders all 20 built-in palettes at once as a gallery, so you can compare them in seconds and click the one you want to build at full resolution.

From there you can tune channel weights, remove green, shift hues, add glow, recombine stars and blend in a colored narrowband layer, with every change previewed before you commit. Each image it builds records its recipe in the FITS header, so you can rebuild it later.

Features

Palette gallery

  • 20 palettes: all SHO permutations, bicolor mixes, Reef, Forge, Dune, Mesa, Foraxx, Dreamsplease and Magma
  • Your own custom palettes with {Ha}, {OIII}, {SII} tokens
  • Favorites, filters and a 3, 4 or 5 column grid
  • Region previews from a PixInsight preview at full detail

Explore

  • Surprise Me: six random, balanced looks
  • Evolve: breed six variations of a palette, pick the best, repeat
  • Variations grid, palette blending, A/B and 4-up compare
  • Loupe, histogram, clipping overlay and before/after

Color finishing

  • SCNR green removal using PixInsight's own SCNR process
  • Neutral background, selective hue, saturation and contrast
  • Orton-style glow, protect background and Hα as luminance
  • Star recombination from a stars-only image

Narrowband Blend

  • Color a narrowband channel and screen it into a palette image
  • Black point, highlights and midtones for the base and the overlay
  • Live preview up to full size, with zoom and pan

Output

  • Full resolution builds, one at a time or in batches
  • Save to disk as XISF, TIFF or PNG with a name pattern
  • Contact sheets, PixelMath export and .xpsm process icons
  • Build history with one-click rebuilds, kept between sessions

Workflow

  • Auto STF
  • Channel weights, auto-balance and LinearFit normalization
  • Presets, undo and redo, and session resume
  • Darkroom and Paper themes

Install

Add the FederAstro repository to PixInsight once. PixInsight then installs Palette Lab and offers every future update automatically. Everything in it is signed by a Certified PixInsight Developer.

  1. In PixInsight, open Resources ▸ Updates ▸ Manage Repositories.
  2. Click Add and paste https://federastro.com/pixinsight/
  3. Click OK, then open Resources ▸ Updates ▸ Check for Updates.
  4. Apply the update and restart PixInsight when it asks.
  5. Open it from Process ▸ FederAstro ▸ Palette Lab.

Requirements

PixInsight
1.9.5 or later
Platforms
Windows (64-bit) and macOS (Apple silicon)
Inputs
Hα, OIII and/or SII masters, or dual-band OSC images
License
CC BY-NC 4.0 (free for non-commercial use)

Changelog

Version 0.8.0
  • Palette Lab is now a PixInsight module for Windows and macOS (Apple silicon): open it from Process ▸ FederAstro ▸ Palette Lab. Updating removes the old script. Before updating, export your custom palettes and presets as a .plab file from the script's Custom Palettes window, then import them in the module
  • Every full-resolution build is a PaletteLab process execution: drag it to a process icon, apply it again or use it in a process container
  • The window opens wide, fitted to your screen; NB Blend is now called Narrowband Blend
  • Generate checks the sources first: different sizes, an un-debayered image or a colour image in a line picker stop with a message; images that don't look registered, or linear and stretched images mixed, give a warning
  • Line pickers list mono images only and the OSC pickers colour images only; auto-detect also finds dual-band OSC masters
  • Hα as luminance starts at 0.30 (was 1.0); Mesa's gold rims are adjusted
  • Linux is no longer supported: an installed 0.7.6 script keeps working but gets no updates
Version 0.7.6
  • New palette: Mesa. Amber-gold rims where SII is strong, a silvery OIII core and a dark red outer cloud; each line is measured against its own sky and bright end, so the look adapts to each target
Version 0.7.5
  • Faster previews with COLOR-tab finishing: each preview formula now runs as one pass over the pixels (finishing about 1.6x faster), with the same results as before
  • Three new palettes of our own: Reef (coral), Forge (orange and ice) and Dune (natural tan with a pale cyan core) replace Realistic1, Realistic2 and Dynamic Inverse; favorites and build history that name the old palettes use the new ones
  • Palette Lab is now entirely its own work, with a thank-you to Franklin Marek (SetiAstro), whose Perfect Palette Picker inspired it
Version 0.7.4
  • Auto-detect no longer picks star-only images (such as Ha_stars from StarXTerminator) for Hα, OIII or SII; starless images are still picked
Version 0.7.3
  • A rainbow FederAstro banner in the Process Console when it starts
Version 0.7.2
  • Faster previews: the gallery thumbnails and their COLOR-tab finishing are computed directly from the pixels, giving the same results as before; generating previews is about 2 to 2.5 times faster, more with finishing on
  • Magma (SHO) and Magma (HOO): each mask now comes from its own filter (green and blue from OIII), for slightly richer colours; Magma in a blend already worked this way
Version 0.7.1
  • Working and built images are always 32-bit float, and XISF saves really are 32-bit float
  • The median stretch no longer turns a mostly black channel white
  • A failed preview or build no longer leaves hidden images open, and a PixelMath step that doesn't run is reported instead of giving a black result
Version 0.7
  • Now installed and updated from the FederAstro repository, signed by a Certified PixInsight Developer (afederastro), with its own icon and a page in PixInsight's Documentation Browser
  • Evolve: breed six variations of any palette, pick the best and evolve again. Choose what can change (weights, color mix, color, tone) and how far (gentle, medium, bold), step back through the lineage, then build, save or apply the result
  • NB Blend, the Adam Block method: color a narrowband channel (for example SII at 48° gold), neutralize its background and screen it into a palette image
  • NB Blend controls: hue and saturation with a live color bar, black point, highlights and midtones for both the base and the overlay, five blend modes and opacity
  • NB Blend preview: result, overlay-only and base views, preview sizes up to full resolution, and mouse-wheel zoom with drag to pan
  • Darkroom (dark) and Paper (light) themes, switched live from the sidebar and remembered between sessions
  • Clip black point option, on by default: sets the black point before the median stretch for darker backgrounds and more contrast
  • Neutral background now measures only the sky, fixing a blue cast in frames filled with nebulosity
  • SCNR now runs PixInsight's own SCNR process, with all five protection methods and the amount slider working on each
  • Cancel stops a render right away, including while sources are being prepared, and the Process Console's Abort button works too
  • Build history window: show or rebuild any earlier build, kept between sessions and stored as a recipe inside each image
  • 4-up compare in the preview window
  • Export and import your custom palettes and presets as a .plab library file
  • Source channels filter to view the prepared Hα, OIII and SII inputs
  • Auto-detect reads each image's FITS FILTER keyword, with name matching as a fallback
  • Gallery columns: 3, 4 or 5
  • Double-click any value box to reset it to its default
  • Reset to defaults button with a confirmation
  • Surprise Me looks can be sent straight to Evolve
  • Palette Lab banner in the Process Console at launch
Version 0.6
  • Before/after toggle in the preview window (button or hold B)
  • Loupe for close inspection while you move over the preview
  • Save builds to disk as XISF, TIFF or PNG with a file name pattern
  • Resume your last session on launch
  • Undo and redo for settings (Ctrl+Z and Ctrl+Y)
  • Save any palette's PixelMath as an .xpsm process icon
  • Help window (? button or F1)
  • Surprise Me: six random, balanced looks combining weights, channel mix, hue, saturation, finishing and glow
  • Variations open inside the preview window, with Build Selected next to Save
Version 0.5
  • Sidebar organized into Source, Adjust, Color and Output tabs
  • Star recombination: screen a stars-only image back over the palette
  • Neutral background, protect background, contrast curve and selective hue shift
  • Orton-style glow in three modes: screen, soft light and classic
  • Variations grid of hue and saturation steps, saved as custom palettes
  • Quick mapping builder in the custom palette editor
  • Histogram, pixel readout and clipping overlay in the preview window
  • Generate scope (all, favorites or selected) and a thumbnail cache for faster re-renders
  • Delete custom palettes from the gallery, with a confirmation
  • Sliders apply when you let go, so nothing re-renders mid-drag
Version 0.4
  • Green removal (SCNR), saturation, hue shift and Hα as luminance
  • Blend two palettes from the A/B compare view and save the result
  • Auto channel weights and per-channel stats (median and noise)
  • Presets for stretch, weights, finishing and thumbnail scale
  • Settings recorded as FITS HISTORY in every full-resolution image
  • Option to replace a rebuilt palette instead of opening a duplicate
  • Thumbnail scale choice (1/2, 1/4 or 1/8)
  • Keyboard navigation in the gallery
Version 0.3
  • Channel weight sliders for Hα, OIII and SII
  • Optional channel normalization (LinearFit of OIII and SII to Hα)
  • Stretch options: median 0.25, custom median target or Auto STF
  • Optional full-resolution output built from linear data
  • Region previews from a PixInsight preview at full detail
  • Favorites and gallery filters, with paging
  • Batch build of selected palettes
  • Contact sheet export (PNG or JPEG)
  • Open any palette in PixelMath with its expressions loaded
  • Custom palettes using {Ha}, {OIII} and {SII} tokens, saved between sessions
  • A/B side-by-side compare in the preview window
Version 0.2
  • Modern dark interface with cards, hover states and a status bar
  • Progress bar, live status messages and render timing
  • Cancel a preview run while it's going
  • Indicators showing which of Hα, OIII and SII are available
  • Refresh re-scans open images without losing your selections
  • Gallery zoom readout with Fit and 100% controls
  • Tiles show rendering, unavailable and full-resolution states
  • One failed palette no longer stops the whole run
  • Enlarged preview with zoom toward the cursor, 1:1 view, previous and next, and a build button
  • Warning when sources change after previews were made
  • Leftover working windows from an interrupted run are cleaned up
  • Linear data setting is remembered between runs

Credits and license

Palette Lab is free, under the Creative Commons Attribution-NonCommercial 4.0 license. Thanks to Franklin Marek (SetiAstro, setiastro.com), whose Perfect Palette Picker inspired Palette Lab. Foraxx is the dynamic narrowband combination published by Ludo (known as ForaxX) of The Coldest Nights (thecoldestnights.com), after whose handle the palette is named. Dreamsplease is the palette shared by Reddit user u/dreamsplease. The Magma SHO and Magma HOO formulas are by Mr.Sketchpad (on Discord). Narrowband Blend follows Adam Block's technique. This product is based on software from the PixInsight project, developed by Pleiades Astrophoto and its contributors (https://pixinsight.com/).