← All Siril Scripts

Svenesis Satellite Trail Cleaner

Version 1.0.0 – GPL-3.0-or-later

🚧 First stable release (v1.0.0). Not yet submitted to the official Siril Script Repository. Download directly from GitHub.

The Satellite Trail Cleaner identifies and removes linear satellite or aircraft trails from individual astrophotography sub-exposures before stacking. Unlike Siril’s standard sigma-clipped rejection – which requires 8+ frames to work reliably – this tool cleans affected frames individually, making it invaluable for short sequences, single-night campaigns, or LRGB stacks with limited per-filter counts.

Svenesis Satellite Trail Cleaner Screenshot

When to Use This Tool

⚠️ This tool only helps with specific images – it is not a universal trail remover. The script even includes a color-coded workflow advisor banner that flags folders where the cleaner is the wrong choice.

✅ Best suited for

⛔ When NOT to use it

Detection – STScI Median Radon Transform

The script uses the same satellite-detection pipeline NASA’s Space Telescope Science Institute employs on HST/ACS imagery (Stark et al. 2022, ACS ISR 2022-08 – PDF). The Median Radon Transform is mathematically robust to bright stars, preventing the false-positive “fan” patterns that plague traditional Hough or Canny detectors.

Inpainting – Six Methods with Smart Recommendations

The tool offers six inpaint strategies, each suited to different trail characteristics:

  1. Perpendicular Strip Median (default) – preserves sky gradients; excellent for “flashing satellite” trails with bright pearls
  2. Harmonic / Laplace (∇²u = 0) – maximum-principle solver preventing ringing
  3. Nearest Neighbor + Smooth – fast, ~1 s per frame
  4. OpenCV Fast Marching (Telea) – sub-200 ms, good fallback
  5. OpenCV Navier-Stokes – fastest option
  6. Biharmonic (experimental) – mathematically smooth but may overshoot

Sky-noise matching: a post-processing step adds Gaussian noise matching the local sky σ, making filled regions statistically indistinguishable from real sky for stack-rejection algorithms.

Intelligent Workflow Features

File Format Support

Format-preserving round-trips for all common astrophotography formats:

Original files move to an originals/ subfolder – all changes are reversible.

Batch Processing & Performance

Output & Documentation

Non-destructive results:

The audit log captures detection status, line count, pixels replaced, inpaint method used, dilation settings, scan mode, RGB-reduce mode, version, and timestamp.

Dependencies

sirilpy (bundled); auto-installed: numpy, PyQt6, astropy, opencv-python-headless, photutils, scikit-image, acstools, xisf, tifffile

View on GitHub Full Instructions