Svenesis Siril Scripts
A collection of Python scripts for Siril (astronomical image processing).
Author and links
License
GPL-3.0-or-later
Official Siril Script Repository
✨ The following scripts are available in the official Siril Script Repository and can be installed directly from within Siril via Scripts → Get Scripts:
- Svenesis Annotate Image
- Svenesis Blink Comparator
- Svenesis CosmicDepth 3D
- Svenesis Gradient Analyzer
- Svenesis Multiple Histogram Viewer
Scripts
| Script |
Description |
Instructions |
Siril Repo |
| Svenesis Annotate Image |
Annotate plate-solved images with catalog objects, coordinate grids, and export as PNG/TIFF/JPEG. |
Guide · DE |
✨ |
| Svenesis Blink Comparator |
Animate a folder of FITS frames for rapid visual inspection and data-driven frame selection — statistics table, scatter plot, batch reject, file-based rejection workflow. |
Guide · DE |
✨ |
| Svenesis CosmicDepth 3D |
Render catalogued objects from a plate-solved image as a rotatable 3D scene — image plane with push-pin depth sticks, SIMBAD distances, stretched-log/linear/hybrid scaling, HTML/PNG/CSV export. |
Guide · DE |
✨ |
| Svenesis CosmicView 3D |
See where your astrophoto points in the universe — interactive 3D scene with the photo along its true line of sight, an auto-generated story card, a cinematic Journey flight from Earth to the target, and Story / Explorer view styles. Automatic Galactic / Cosmic mode, Planck18 cosmology. |
Guide · DE |
— |
| Svenesis LightCurve |
Exoplanet transit photometry inside Siril, in the spirit of EXOTIC and HOPS: point it at a folder of sub-exposures and it measures the flux itself — follow-star re-centroiding, subpixel apertures, comparison stars kept by measured scatter — while Siril calibrates, registers (no resampling) and plate-solves. Limb-darkened transit fit with a calibrated significance floor, O−C against the published ephemeris, CSV/PNG/report and an AAVSO Exoplanet Watch file. Tested on EXOTIC’s own sample data with matching results: Rp/R★ 0.1554 ± 0.0059 vs EXOTIC’s published 0.1541 ± 0.0033 (0.2 σ). |
Guide · DE |
— |
| Svenesis Gradient Analyzer |
Analyze background gradients with heatmaps, diagnostics, and tool recommendations. |
Guide · DE |
✨ |
| Svenesis ImageMono Train |
Point it at one N.I.N.A. target folder and get finished colour: discovers the light frames per optical filter, calibrates them with whatever darks, flats and bias it finds, stacks a master for each (optionally only the ones the palette reads), aligns those channels onto a common grid, and combines them (LRGB · RGB · HaRGB · nine narrowband assignments · two weighted mixes) with background extraction and sensor-aware colour calibration (SPCC, including narrowband, with the sensor and filter names checked against Siril’s own database). Writes a processing report and a step-by-step post-processing guide. |
Guide · DE |
— |
| Svenesis Multiple Histogram Viewer |
View linear and stretched images with RGB histograms, 3D surface plots, and detailed statistics. |
Guide · DE |
✨ |
| Svenesis Satellite Trail Cleaner |
Per-frame satellite & aircraft trail detection and inpainting on FITS / XISF / TIFF / RAW subs — STScI’s Median Radon Transform (findsat_mrt) detection, six inpaint methods with automatic per-frame recommendation, sky-noise matching, format-preserving round-trip, interactive line picker, parallel batch pipeline. |
Guide · DE |
— |
Svenesis Annotate Image
File: Svenesis-AnnotateImage.py (v1.1.0) — Detailed Instructions · Deutsche Anleitung
✨ Available in the official Siril Script Repository.
Renders catalog annotations (deep-sky objects, named stars, coordinate grid, compass, info box) onto a plate-solved image and exports it as a shareable PNG, TIFF, or JPEG. All object data comes from live online VizieR and SIMBAD queries — no hardcoded or embedded catalogs. Parallel queries via ThreadPoolExecutor keep annotation fast even with multiple catalog sources. Inspired by PixInsight’s AnnotateImage script. Unlike Siril’s built-in overlay annotations, this script burns the annotations into an exportable image — ready to post on social media, forums, or include in observation reports.
Screenshots

Main window: catalog annotations with object type filtering, coordinate grid, compass rose, info box, and color-coded legend. Preview tab shows the annotated result.
Features
Object selection by type
Instead of choosing catalogs, you select which types of objects to annotate. All online catalog sources are queried in parallel — objects are filtered by your type selection:
| Color |
Type |
Examples |
| Gold |
Galaxies |
M31, M51, M81, NGC 4565, Centaurus A |
| Red |
Emission Nebulae |
Orion, Lagoon, Eagle, Rosette, Carina |
| Light red |
Reflection Nebulae |
M78, Witch Head, Iris, Rho Ophiuchi |
| Green |
Planetary Nebulae |
Ring (M57), Dumbbell (M27), Helix, Owl |
| Light blue |
Open Clusters |
Pleiades (M45), Double Cluster, Wild Duck |
| Orange |
Globular Clusters |
M13, Omega Centauri, 47 Tucanae |
| Magenta |
Supernova Remnants |
Crab (M1), Veil Nebula, Simeis 147 |
| Grey |
Dark Nebulae |
Horsehead (B33), Pipe, Snake, Coalsack |
| Red-pink |
HII Regions |
Heart, Soul, Barnard’s Loop, Cave Nebula |
| White |
Named Stars |
~275 IAU-named stars to mag ~5.5 |
| Pale blue |
Asterisms |
Coathanger, Kemble’s Cascade |
| Violet |
Quasars |
QSOs and AGN from SIMBAD |
Select All / Deselect All buttons for quick toggling.
Online catalog sources
- VizieR VII/118 (NGC 2000.0) — NGC, IC, and Messier objects
- VizieR VII/20 (Sharpless 1959) — HII regions
- VizieR VII/220A (Barnard 1927) — Dark nebulae
- VizieR V/50 (Yale BSC) — Named bright stars
- SIMBAD — Supplementary objects (UGC, Abell, Arp, Hickson, Markarian, vdB, PGC, MCG, etc.) plus common name resolution
All data from live online queries — no hardcoded object data. Survey catalog junk (SDSS, 2MASS, GPM, Gaia, etc.) is automatically filtered out. Requires astroquery package and internet connection.
Annotation overlays
- Leader lines: Thin connecting lines from each label to its object marker — essential in crowded fields to see which label belongs to which object.
- Color legend: Auto-generated legend box (bottom-left) showing only the object types present in the current annotation.
- Coordinate grid: RA/DEC grid with auto-spaced lines and labeled coordinates.
- Info box: Semi-transparent box (top-left) with center RA/DEC, field of view, pixel scale, rotation, and object count.
- Compass rose: North/East direction arrows derived from WCS.
Display options
- Configurable font size, marker size, and magnitude limit
- Object size rendered as scaled ellipses (from catalog angular size)
- Common names display (e.g. “M31 (Andromeda Galaxy)”)
- Optional magnitude and type labels
- Color coding by object type (configurable)
- Label collision avoidance (32-candidate greedy algorithm with spatial grid scoring)
Output
- Formats: PNG (recommended), TIFF, JPEG
- DPI: 72–300 (150 default for screens, 300 for print)
- Auto-timestamped filenames prevent overwriting
- Preview tab shows the result immediately after annotation
- Open output folder / Open image buttons for quick access
WCS detection
Robust plate-solve detection with 6 fallback strategies:
- FITS header as dict (primary — same approach as Galaxy_Annotations.py)
- FITS header as string (astropy parsing)
- Keywords
pltsolvd / wcsdata flag check
pix2radec sampling to build WCS from Siril’s coordinate transform
pix2radec probe without plate-solve flag
- FITS file on disk
Coordinate transforms use siril.radec2pix() for maximum compatibility.
Other features
- Persistent settings: All checkboxes, sliders, and options saved between sessions via QSettings
- Keyboard shortcut: F5 = Annotate
- Progress bar with status feedback during annotation
- Log tab with detailed diagnostic output
- Dark-themed PyQt6 GUI matching Gradient Analyzer style
- Buy me a Coffee support dialog
- Parallel catalog queries via ThreadPoolExecutor
- Thread-safe siril coordinate access
- Large mosaic support (display downscaling, DPI capping, memory management)
- Common names from SIMBAD with catalog-name filtering
- Two-column checkbox layout for all option groups
Requirements
- Siril 1.4+ with Python script support
- sirilpy (bundled with Siril)
- numpy, PyQt6, matplotlib, astropy, astroquery (installed automatically via
s.ensure_installed)
Usage
- Load an image in Siril and plate-solve it (Tools → Astrometry → Image Plate Solver).
- Run Svenesis Annotate Image from Siril: Processing → Scripts (or your Scripts menu).
- Select which object types to annotate using the color-coded checkboxes.
- Adjust font size, marker size, magnitude limit, and extras (grid, info box, compass, legend, leader lines).
- Click Annotate Image (or press F5).
- Review the result in the Preview tab. Use Open Annotated Image to view it full-size.
Svenesis Blink Comparator
File: Svenesis-BlinkComparator.py (v1.2.8) — Detailed Instructions · Deutsche Anleitung
✨ Available in the official Siril Script Repository.
Picks a folder of FITS frames, builds a temporary svenesis_blink sequence in Siril, and animates it as a blink animation for rapid visual inspection and data-driven frame selection. Comparable to PixInsight’s Blink + SubframeSelector — identify satellite trails, clouds, tracking errors, focus drift, and bad frames, then reject them with a single click. Rejections are collected locally and, on close, written as rejected_frames.txt next to your files (with the physical FITS moved into a rejected/ subfolder). Your original frames are never modified.
Screenshots

Main window: viewer with frame info overlay, sortable statistics table, statistics graph with running average, scatter plot, thumbnail filmstrip, batch selection, and approval expressions.
Features
Folder-based workflow
- At startup the script always prompts for a folder of FITS files (recurses one level) and builds a temporary
svenesis_blink FITSEQ sequence via convert -fitseq (and optional register -2pass for star stats).
- The temp sequence is automatically cleaned up when you close the window.
- Rejections write a plain-text
rejected_frames.txt audit file and move rejected FITS into a rejected/ subfolder — reversible by simply dragging the files back.
- Completely non-destructive: original frames are never overwritten.
Animated playback
- Configurable speed (1–30 FPS) with loop option and Play/Pause (Space key)
- Frame navigation: First, Previous, Next, Last buttons + draggable color-coded slider
- Only included filter (checkbox) to skip rejected frames during playback
- Color-coded slider: Red tick marks at excluded frame positions for instant overview
Two display modes
- Normal: Single-frame autostretched view. Default. Used for visual inspection, satellite/cloud hunting (play at 3–5 FPS — changing pixels jump out to the eye), and focus/tracking review.
- Side by Side (vs. reference): Current frame on left, reference (first frame) on right, synchronized zoom/pan. For direct A/B comparison.
Autostretch presets
- Conservative — darker background, preserves dim detail.
- Default — PixInsight-style STF (shadows_clip = -2.8, target median = 0.25).
- Aggressive — brighter, higher contrast.
- Linear — no stretch, raw data clipped to 0–255.
- Switching presets invalidates caches and re-renders; the choice is persisted across sessions via QSettings. Autostretch is always globally linked — every frame uses the same median/MAD so brightness differences (clouds, haze) stay visible.
Statistics table (sortable)
- All frames listed with Weight, FWHM, Roundness, Background, Stars, Date, Status
- Click any column header to sort — sort by FWHM to instantly find the worst frames
- Click a row to jump to that frame in the viewer
- Multi-select (Ctrl+click, Shift+click) → right-click → “Reject selected”
Composite quality weight
- Each frame gets a normalized quality score (0–1) based on FWHM (lower=better), roundness (higher=better), background (lower=better), and star count (more=better)
- Sort by Weight to see best and worst frames at a glance
Statistics graph
- FWHM, Background, Roundness plotted as line charts across all frames
- Running average (7-frame moving average) for trend detection
- Excluded frames shown as red dots, current frame as white dashed line
- Instantly reveals focus drift, clouds rolling in, or tracking degradation over time
Scatter plot
- 2D scatter of any two metrics (FWHM vs Roundness, FWHM vs Background, etc.)
- Outlier frames immediately visible as dots far from the cluster
- Click a dot to jump to that frame
- Axis-normalized click detection (both axes contribute equally to nearest-point selection)
Frame selection
- Manual marking: G = include, B = exclude (with auto-advance to next frame)
- Batch reject by threshold: Reject all frames where FWHM > 4.5 (or any metric/operator/value combination) with live preview count
- Reject worst N%: Reject the worst 10% by FWHM, Background, Roundness, or Weight
- Approval expressions: Multi-criteria AND filter (e.g., FWHM < 4.5 AND Roundness > 0.7 AND Stars > 50) — rejects frames that fail any condition
- Multi-select in table: Ctrl+click or Shift+click rows, right-click → “Reject selected”
- Reset All Rejections: One-click button to mark every frame as Included again (baseline + pending) — useful when you want to start the selection over
- Undo (Ctrl+Z): Single undo for individual marks, grouped undo for batch operations (one Ctrl+Z undoes the entire batch)
- Pending changes shown in the left panel — only committed on close via “Apply Rejections && Close”
Thumbnail filmstrip
- Horizontal scrollable strip with color-coded borders: green = included, red = excluded, blue = current
- Click any thumbnail to jump to that frame
- Lazy loading: Thumbnails loaded on demand as you scroll
- Adjustable size: Slider in the viewer toolbar (40–160 px)
- Thumbnail cache reuses the main frame cache’s already-stretched display data to avoid redundant disk I/O
Zoom & pan
- Scroll wheel zoom (0.1x–20x), right-click drag pan
- Fit-in-Window button (or
Z) to return to full-frame view
- Live zoom-percentage readout that updates during scroll-wheel zoom
Frame info overlay
- Frame number, FWHM, roundness, and quality weight burned into the image corner during playback
- Toggleable via the Overlay checkbox in the viewer toolbar
Export
- Statistics CSV (full table with all metrics + inclusion status)
- Animated GIF of the blink animation (included frames, scaled to 480 px)
- Copy to clipboard (Ctrl+C) — captures the composite canvas (side-by-side layout + overlay, not just the raw pixmap)
Other features
- A/B frame toggle (T key): Pin the current frame, press T to toggle between the pinned frame and the current one
- Session summary on close: Frames viewed, excluded count, mean/best/worst FWHM
- Persistent settings: FPS, loop, auto-advance, overlay, autostretch preset, thumbnail size, display mode, table sort column, graph metric visibility
- Post-mark refresh debouncing: Rapid G/B marking collapses slider-exclusions repaint, scatter-plot rebuild, and statistics-graph rebuild into a single coalesced 150 ms refresh — hotkeys stay snappy even on 2000-frame sequences
- Dark-themed PyQt6 GUI matching Gradient Analyzer style
- Buy me a Coffee support dialog
Keyboard shortcuts
| Key |
Action |
Space |
Play / Pause |
← / → |
Previous / Next frame |
Home / End |
First / Last frame |
G |
Mark frame as good (include) |
B |
Mark frame as bad (exclude) |
Z |
Fit-in-window (reset zoom) |
T |
Pin / toggle A/B frame comparison |
Ctrl+Z |
Undo last marking (single or batch) |
Ctrl+C |
Copy current frame to clipboard |
1–9 |
Set playback speed (FPS) |
+ / - |
Speed up / slow down |
Esc |
Close (with “apply / discard / cancel” prompt if changes are pending) |
1–9 are handled through keyPressEvent instead of QShortcut, so digits typed into focused spinboxes/line-edits still reach the widget for multi-digit entry.
Requirements
- Siril 1.4+ with Python script support
- sirilpy (bundled with Siril)
- numpy, PyQt6, matplotlib (installed automatically via
s.ensure_installed)
- Optional: Pillow (for GIF export)
Usage
- Run Svenesis Blink Comparator from Siril: Processing → Scripts (or your Scripts menu).
- A folder picker opens — select a folder containing your FITS frames (registered or unregistered). The script builds a temporary
svenesis_blink sequence and loads all frame statistics.
- If the FWHM / Roundness / Stars columns are empty, click the yellow “Run Star Detection” banner (runs
register -2pass — non-destructive).
- Use the Statistics Table tab to sort by FWHM and identify bad frames, or play the sequence at 3–5 FPS in Normal mode and mark frames with B (auto-advances).
- Use Batch Selection (threshold / worst N%) or Approval Expression for bulk rejection.
- Review in the Statistics Graph and Scatter Plot tabs to verify your selection.
- Click Apply Rejections && Close — the script writes
rejected_frames.txt next to your FITS files and moves rejected frames into a rejected/ subfolder, then closes. Drag files out of rejected/ to undo a decision after the fact.
Changes Since v1.2.3
The last officially published release was v1.2.3. Summary of what has changed since then (see the script’s CHANGELOG block for one-line bullets per release):
- v1.2.4 — Folder-only workflow. The script now always prompts for a folder of FITS files and builds its own temp sequence. Rejected frames move to a
rejected/ subfolder alongside a rejected_frames.txt audit file. Added an autostretch preset dropdown (Conservative / Default / Aggressive / Linear). Removed the ROI feature, the per-frame histogram widget, and the “use currently loaded sequence” path.
- v1.2.5 — Simplified display modes. Removed the Difference display mode and the
D shortcut (playing at 3–5 FPS in Normal mode catches the same artifacts). Removed the Linked-stretch toggle — globally-linked autostretch is now the only mode.
- v1.2.6 — Performance pass. Thumbnails reuse the main frame cache’s already-stretched image,
mtf() runs in-place, RGB autostretch is a single pass, and preload pacing follows FPS.
- v1.2.7 — Marking responsiveness. Rapid G/B marking coalesces slider / scatter / graph refreshes through a single 150 ms timer; filmstrip and table skip no-op styling work.
- v1.2.8 — Cross-platform polish & stability. UTF-8 for
rejected_frames.txt and CSV export (fixes Windows non-ASCII paths). 1–9 FPS presets moved to keyPressEvent so focused spinboxes accept digits natively. Folder paths with spaces are now quoted in Siril commands. Apply moves files first, then writes an audit list of only what actually moved. Star detection rebinds caches/stats and advances the progress bar through post-register phases. View-state (filter, display mode, graph metrics, scatter axes) now persists across sessions.
Svenesis CosmicDepth 3D
File: Svenesis-CosmicDepth3D.py (v1.0.1) — Detailed Instructions · Deutsche Anleitung
✨ Available in the official Siril Script Repository.
Takes every catalogued object in your plate-solved image, resolves their distances from SIMBAD (mesDistance, redshift/Hubble law, type-median fallback) and renders them as a rotatable 3D scene. Your image sits as a flat “window” at the front; each object hovers at its actual distance behind the window on a push-pin depth stick that lands on the exact pixel of the feature in the sky plane. A foreground nebula at 1,344 ly and a background galaxy at 30 million ly finally look like what they are.
Screenshots

Features
3D scene layout
- Image plane rendered as a flat, non-transparent rectangle at the front of the scene, with the same orientation as the Siril image (FITS row 0 at the bottom, pixel-X mirrored so the default camera angle reads left/right like Siril).
- Depth sticks from each object marker straight back to its exact image pixel — the “push-pin through a window” view.
- Embedded rotatable view via
QWebEngineView + Plotly: drag to rotate, scroll to zoom, hover any marker for distance, uncertainty and source. Falls back to a static PNG plus opening the interactive HTML in the browser if WebEngine is unavailable.
- Viewer-from-Earth perspective — X = depth (scaled ly), Y = pixel-X (mirrored), Z = pixel-Y (direct). Axis proportions follow the image aspect so the scene box matches the frame.
Scaling & view ranges
- Stretched-log (default) — piecewise-log distance axis: each decade below 100 M ly takes 1 unit, each decade beyond takes 3 units, so the far-galaxy tail gets ~3× more room on screen than a plain log would give it. Tick labels read in real light-years (1, 10, 100, 1k, …, 100M, 1B, 10B). Recommended for most fields.
- Linear — true proportional distances. Useful for star-only fields inside the Milky Way (galaxies disappear to the horizon).
- Hybrid — linear up to 10,000 ly, log beyond. Realistic solar-neighbourhood spacing with extragalactic context preserved.
- View ranges: Cosmic (everything) or Galactic (< 100,000 ly, i.e. inside the Milky Way only).
Distance resolution
- Priority chain: local JSON cache (90-day TTL) → SIMBAD
mesDistance table → redshift × Hubble law (z < 0.5) → type-based median fallback (clearly labelled as Type median).
- Distance cache in
~/.config/svenesis/cosmic_depth_cache.json — a second render of the same field is near-instant.
- Clear Distance Cache button to force a full re-query (useful after SIMBAD updates).
Object selection by type
Same colour-coded type system as Annotate Image:
| Color |
Type |
Typical distance range |
| Gold |
Galaxies |
2 Mly – billions of ly |
| Red |
Emission Nebulae |
500 – 10,000 ly |
| Light red |
Reflection Nebulae |
400 – 1,500 ly |
| Green |
Planetary Nebulae |
1,000 – 10,000 ly |
| Light blue |
Open Clusters |
400 – 15,000 ly |
| Orange |
Globular Clusters |
10,000 – 100,000 ly |
| Magenta |
Supernova Remnants |
500 – 30,000 ly |
| Grey |
Dark Nebulae |
400 – 2,000 ly |
| White |
Named Stars |
10 – 5,000 ly |
| Red-pink |
HII Regions |
1,000 – 30,000 ly |
| Pale blue |
Asterisms |
various |
| Violet |
Quasars |
billions of ly |
- Parallel SIMBAD tiling — wide fields are split into ≤ 0.75° tiles and queried with up to 8 concurrent TAP requests, with live per-tile progress feedback in the status bar.
- Cached
plotly.min.js — written once to your temp directory and referenced from each render, so refreshes reload only the (small) scene data rather than the ~3.5 MB Plotly bundle.
- Opt-in WebEngine repair — if the installed
PyQt6-WebEngine wheel doesn’t match Siril’s bundled PyQt6 Qt version (symptom: Symbol not found: _qt_version_tag_6_XX), the embedded view shows a red banner with a “Repair WebEngine…” button. Clicking it opens a dialog with the exact pip command, live stdout/stderr, and a Retry button. The repair is skipped automatically on PEP 668 / externally-managed Python interpreters; no silent force-reinstalls.
UI
- 3D Map tab — embedded rotatable Plotly scene (or static PNG fallback with a banner if WebEngine is unavailable).
- Objects tab — sortable
QTableWidget with Name, Type, Mag, Distance (ly), ± uncertainty, Source. Click any column header to sort numerically; column widths and sort order persist between sessions.
- Log tab — detailed diagnostic output (SIMBAD tile counts, cache hit rate, fallback reasons).
- Help dialog — 4 tabs (Getting Started, Object Types, Scaling & Display, Exports & Performance) matching the Annotate Image help style.
- Dark-themed PyQt6 GUI consistent with the rest of the suite.
Export
- HTML — standalone, fully interactive Plotly scene (shareable, opens in any browser).
- PNG — high-resolution static export via Plotly + kaleido, captured from your current 3D camera angle and zoom so the saved image matches what you see on screen (including the stretched-log axis with ly labels). Falls back to a matplotlib snapshot if kaleido isn’t installed.
- CSV — full object table: name, type, RA/Dec, magnitude, size, distance, uncertainty, source, confidence, image pixel (x, y).
All exports are written to Siril’s working directory with a timestamp appended to the base filename.
Requirements
- Siril 1.4+ with Python script support
- sirilpy (bundled with Siril)
- numpy, PyQt6, matplotlib, astropy, astroquery, plotly, kaleido (installed automatically via
s.ensure_installed)
- PyQt6-WebEngine — probed at startup; if missing or ABI-mismatched the script offers an explicit in-app repair dialog and falls back to a static view + browser HTML in the meantime
- Internet connection for the initial SIMBAD queries (subsequent renders use the local distance cache)
Usage
- Load an image in Siril and plate-solve it (Tools → Astrometry → Image Plate Solver).
- Run Svenesis CosmicDepth 3D from Siril: Processing → Scripts (or your Scripts menu).
- Select which object types to include (left-panel checkboxes), set the magnitude limit, and pick a scaling mode and view range.
- Click Render 3D Map (or press F5).
- Drag in the scene to rotate, scroll to zoom, hover markers for details. Toggle Show image as sky plane to switch between the pixel-mapped “window” layout and a pure abstract 3D map.
- Review the Objects tab for the full distance table; use Export HTML / PNG / CSV for sharing or archiving. The PNG export captures your current camera angle, so rotate first to the view you want.
Svenesis CosmicView 3D
File: Svenesis-CosmicView3D.py (v1.0.0) — Detailed Instructions · Deutsche Anleitung
⚠️ Public preview — not yet submitted to the official Siril Script Repository.
Reads the current plate-solved image from Siril, identifies the main astronomical object via SIMBAD, and renders where your photo points in the universe as an interactive 3D model — Earth in the Orion Arm, the astrophoto as a textured rectangle along the exact line of sight, and the target’s distance made tangible through a story card, scale rings, and a cinematic Journey flight from Earth to the target. CosmicView 3D answers a question that no other tool answers: “My photo is not just anywhere — it is a window into one specific direction of the universe. Where exactly?”
CosmicView vs. CosmicDepth: the sibling script CosmicDepth 3D shows the depth of everything inside one photo (each catalogued object on its own push-pin at its true distance). CosmicView 3D zooms out to show where that whole photo sits in the galaxy and the universe, seen from Earth.
Screenshots

Main view: 5-arm Milky Way with galactic disk stars, Earth in the Orion Arm, and the plate-solved astrophoto rendered as a textured rectangle pointing in its actual viewing direction. Drag to rotate, scroll to zoom.
Features
The human experience
- Opening pull-back — the first render of a target starts at Earth’s point of view (the sky as you saw it), holds a beat, then pulls back to reveal the whole map. Plays once per target; can be disabled in Scene Elements.
- 🚀 Journey mode — a ~11-second cinematic camera flight from Earth along your photo’s line of sight out to the target, with a live HUD counter (“38.7 Mly from Earth — the light in your photo passed this point 38.7 million years ago”) and waypoint callouts (leaving the Local Bubble, leaving the Milky Way, passing Andromeda, …). Also available via the J key — including in exported HTML.
- Story card — an auto-generated narrative shown over the 3D view and in the Info tab: where you pointed, how old the light is (anchored to Earth history: “…just after the dinosaurs died out”), which spiral arm the target sits in, and a dinner-plate scale analogy. Included in CSV exports and baked into PNG exports as a caption.
- Story / Explorer view styles — Story (default) keeps only the narrative thread: Earth, viewing ray, photo, target, galaxy structure, distance rings. Explorer adds every reference overlay: landmark catalogs, galaxy-cluster halos, the CMB observable-universe boundary, Local Bubble / Local Group context spheres.
Two automatic view modes
- Galactic mode (object distance < 150,000 ly): 1 unit = 1,000 ly, linear. Spiral arms (with camera-distance fade), disk stars, bulge, Sgr A*, Earth reticle with orbital-motion arrow, GC-centred and Earth-centred distance rings, constellation stick figure at the target’s depth, Local Bubble for nearby targets, and a curated in-galaxy landmark catalog (Pleiades, M42, M13, Veil, Carina, …).
- Cosmic mode (≥ 150,000 ly): 1 unit = 100,000 ly, log-compressed beyond 1 Mly (boundary marked). Neighbour galaxies with hover-rich descriptions, galaxy-cluster halos (Virgo, Coma, Perseus, Shapley, …), a cosmic landmark catalog, and the CMB last-scattering surface at 13.8 Gly as a wireframe globe.
- Mode is selected automatically from the resolved distance and SIMBAD type; override any time.
Distance & cosmology
- Priority chain: local JSON cache (90-day TTL) → SIMBAD
mesDistance table → redshift → Planck18 light-travel distance (astropy.cosmology; H₀ ≈ 67.4) → parallax where reliable → type-median fallback (clearly labelled).
- Parallax sanity check — SIMBAD’s noise parallaxes on extragalactic objects are rejected when a significant redshift disagrees by >100×.
- Distance-metric toggle — view the cosmic scene in light-travel, comoving, or angular-diameter distance; the 3D positions physically reorganise and the HUD always states the active metric.
- Distance rings drawn flat (radar-style) with depth fading; the one ring nearest your target’s distance becomes a spherical shell — “your photo sits at this depth.”
- Offline-friendly — cone-search results are cached 7 days; re-renders of known targets need no network. A SIMBAD health probe shortens timeouts during outages, and all network calls run off the UI thread.
Photo placement in 3D space
- Plate-solved WCS ingestion with the same 6-strategy WCS detection used by CosmicDepth 3D.
- Photo as a textured rectangle: four image corners converted RA/Dec → galactic, FITS auto-stretched and applied as the surface texture (resolution configurable; auto-capped in cosmic mode for performance).
- Viewing ray from Earth to the photo centre — the line literally shows where your telescope pointed.
- Background depth sticks — SIMBAD objects behind your target are drawn at their true distance and connected radially to their exact pixel position on the photo.
Interactive 3D rendering
- Plotly-in-QWebEngineView: drag-to-rotate, scroll-to-zoom, hover-for-details, camera presets (Earth POV / Top / Side / Iso), trackball + zoom pad, auto-rotate, rescue keys (R / Home / Esc), double-click a spiral-arm legend entry to fly to that arm.
- Live scale ruler and context-aware zoom hints that track the camera in real time.
- Matplotlib 3D fallback if
PyQt6-WebEngine is unavailable.
- Dark-themed PyQt6 GUI; view style, distance metric, and all scene toggles persist via
QSettings.
Target picker
- A target picker dialog lists all SIMBAD cone-search candidates with type, magnitude, distance (with source hint: z / π / type), size in photo, and offset — so you choose the actual photographic subject. Candidates can be exported as JSON.
Export
- HTML — standalone, fully interactive Plotly scene including the Journey (J key) and story toast.
- PNG — high-resolution snapshot of the current camera angle, with the story text appended as a caption band.
- CSV — scene metadata including redshift, lookback time, distance metric, cosmology, arm membership, the story text, and photo-corner coordinates.
Requirements
- Siril 1.4+ with Python script support
- sirilpy (bundled with Siril)
- numpy, PyQt6, matplotlib, astropy, astroquery, plotly, Pillow, kaleido, requests (installed automatically via
s.ensure_installed)
- PyQt6-WebEngine — probed at startup; if missing or ABI-mismatched the script falls back to a static matplotlib view
- Internet connection for the initial SIMBAD queries (subsequent renders use the local caches)
Usage
- Load an image in Siril and plate-solve it (Tools → Astrometry → Image Plate Solver).
- Run Svenesis CosmicView 3D from Siril: Processing → Scripts (or your Scripts menu).
- Confirm (or change) the identified target in the picker dialog.
- Watch the opening pull-back reveal where your photo sits; read the story card.
- Press 🚀 Journey (or J) to fly the light path from Earth to your target.
- Switch Story ↔ Explorer in Scene Elements for the clean narrative view or the full reference map.
- Use Export HTML / PNG / CSV to share or archive the view.
Development
tests/test_cosmicview.py (pure-function tests) and tests/js_harness.mjs (embedded-JS camera/overlay tests) run with plain python3 / node — no Siril required.
Svenesis LightCurve
File: Svenesis-LightCurve.py (v1.0.23) — Detailed Instructions · Deutsche Anleitung
Exoplanet transit photometry inside Siril, in the spirit of EXOTIC (NASA’s Exoplanet Watch pipeline) and HOPS — and tested against EXOTIC on its own sample data, with matching results. Point it at the folder holding one night’s sub-exposures of an exoplanet host star. It measures how that star’s brightness changed relative to other stars in the same field, removes the systematic trends it can account for, fits a transit — and tells you whether the dip is real.
Screenshots

A non-detection told honestly (TOI-3540.01, 160 subs): the wall-clock axis across the top (local time from the headers), the cyan expected transit from the archive ephemeris with its contact times stamped below — “(no transit claimed by the fit)” — the meridian flip marked at 00:57, and the unclaimed 0.0σ best fit that latched onto the flip step, wearing no detection markers.
Who does what
Siril does what it is demonstrably good at: staging, calibration, two-pass registration, star detection, the plate solve and per-frame quality.
The script measures the flux itself, the way EXOTIC and HOPS do: every star re-centroided per frame from its registration-predicted position (the “follow star” Siril’s light_curve lacks), subpixel circular apertures against a sigma-clipped sky annulus, the aperture chosen by point-to-point noise, comparison stars kept or dropped by their measured scatter, errors from the CCD equation with every term measured. Measured on the same drifting 142-frame run: this engine keeps 140 points at 6.3 mmag where Siril’s light_curve kept 67 — and light_curve remains intact as the loud fallback. The script also does the parts nobody’s pixels decide: which star is the target, how to remove the airmass ramp without eating the transit depth — and whether to claim anything at all. Frames are sequenced by DATE-OBS, not by file name (N.I.N.A. puts the sensor temperature in the name, and -10.10C sorts after -10.00C — five mid-run frames once landed at the end and read as a second flip), and the time-stamp convention is checked against DATE-AVG or DATE-END rather than assumed: a program that stamps mid-exposure gets no half-exposure added.
Validated against EXOTIC on its own sample data (HAT-P-32 b, 142 frames): Rp/R★ = 0.1554 ± 0.0059 against EXOTIC’s published 0.1541 ± 0.0033 — 0.2 σ apart (as of v1.0.6). Both depth conventions are reported and labelled: the limb-darkened central depth the fit measures, and the (Rp/R★)² that EXOTIC, HOPS and AstroImageJ quote (~20 % shallower on a solar-type star — compare that one with theirs and with the archive).
Why not just Siril’s own light-curve tool? That workflow produces a light curve; this script produces a measurement — follow-star re-centroiding, drift handling and comp screening that light_curve lacks (140 of 142 points where it kept 67 on the same run), plus the analysis the native tool ends before: BJD_TDB, a simultaneous limb-darkened fit, calibrated significance, O−C and the AAVSO file. The full comparison is in the manual’s FAQ.
Calibration finds its own frames. Point at the subs — or at any folder above them, the scan is recursive and sorts lights from calibration frames by header — and, once, at the folder where your reusable darks live; the flats are found beside the lights in the N.I.N.A. LIGHT/FLAT layout, grouped by exposure/gain/temperature/binning/size/camera, stacked into masters and cached for the next run. The pixel work is Siril’s calibrate — there is no bias/dark/flat arithmetic in the script, for the same reason there is no photometry in it. What gets refused is said out loud, because a master that was found and rejected leaves a run that looks exactly like one where no master existed: a dark at the wrong exposure is named with what the mismatch would have done, darks are split by temperature and bias is not, and bias is never applied together with a dark — the dark already carries the offset, so it corrects the flats instead. Temperature is demanded only where the thermal signal is what the master removes (dark against light, flat-dark against flat): a flat is a ratio and a bias is read noise, so a flat shot on a warmer night still calibrates.
Taken from EXOTIC, measured before and after. The aperture is now chosen — six radii from 0.75 to 2.5 FWHM, each photometered, least scatter wins — instead of whatever -autoring derived. Comparison stars are photometered against each other and dropped on their own variability. And there is spike rejection, which mattered more than it looks: one 100 mmag outlier on a real 12 mmag transit took the significance from 12.1σ to 3.2σ, under the detection floor, so a measured transit read as not claimed. A robust post-fit scatter recovers 6.9σ of that and removing the point recovers the rest. The run also writes an AAVSO Exoplanet Watch file — refused unless the times are BJD_TDB.
Three decisions worth knowing about
Registration without resampling. register -2pass computes registration data and stops. seqapplyreg would interpolate every pixel, and interpolation correlates neighbouring noise and moves flux inside the aperture. Siril’s photometry follows the stars through the registration data instead, so the aperture lands on the star while the pixels stay exactly as the sensor recorded them.
The airmass detrend does not eat the depth. A plain fit through every point absorbs part of the transit whenever the dip correlates with the ramp — the standard evening-target case. The baseline is fitted with a one-sided least-trimmed pass, then re-fitted directly on the points outside the transit window. Measured on synthetic runs with a known 30 mmag/airmass ramp: a plain fit recovers the slope 6–11 % low; this lands within 1 % up to 50 % duty cycle, and within 3 % at 75 % where the blind pass alone is no better than the plain fit.
The significance test is two-sided. A real transit returns to the baseline it left; a trend does not. Pooling both sides into one out-of-transit mean loses that: on a monotonic ramp with no transit in it — uncorrected extinction, a drifting cloud, focus creep — the pooled contrast reaches +25σ. Comparing each side separately and taking the weaker returns −10σ on the same data. The floor below which nothing is claimed is calibrated, not chosen: the significance is the best of ~40 000 grid nodes, so it is not a Gaussian σ. Measured over 1200 transit-free noise runs through that same search, a 3σ floor lets one run in ten through — where the label is read as one in 750 — while 4.5σ gives 0.25 % and still detects 89 % at 6 mmag and 100 % at 8. The table has been re-measured three times — a finer search, a robust scatter, and a limb-darkened model fitted simultaneously with the systematics: a calibration is only valid for the search, the statistic and the model it was measured on. The measured rate is printed next to every result. A transit clipped by the start or end of the run returns zero, because without baseline on both sides the question cannot be answered.
Clipping is not variability. A comparison star whose core intermittently hits the sensor’s (or, on calibrated floats, Siril’s [0, 1]) ceiling scatters exactly like a variable star, and on the run that exposed this, 73 of 223 points vanished from the curve without a word. Three guards stand there now: a comp whose reference peak already sits at 70 % of the clip level is dropped up front and the next ranked star with headroom is promoted from the selection’s reserve; every comp that still clips is listed with its clip count; and the “N points measured” line names every missing frame with its reason. On the same dataset the guards turned a silent 150-point non-detection into a 223-point detection whose depth matches TESS — and revealed that saturated comps, not the missing flats, had been bending both the depth and the transit time.
Two questions, two modes. The blind fit asks is there a transit? — mid-time, duration and shape free, a calibrated significance deciding. HOPS (ExoWorldsSpies, the pipeline behind ExoClock) asks given the catalogue’s planet, how deep and when? Since v1.0.7 a dropdown in the Analysis group offers both. HOPS-compatible mode takes the orbit from the archive (a/R★, inclination, eccentricity, periastron), so duration and ingress are physics rather than parameters; fits only Rp/R★, the mid-time within ±0.2 d of the predicted epoch, a normalisation and HOPS’s detrending (airmass, time or time², multiplied into the flux, plus the meridian-flip step when one was detected); measures what HOPS measures (the target over the raw sum of the comparison stars, errors propagated as HOPS does), averages the model over each exposure in 10 s sub-steps as HOPS does, uses four Claret limb-darkening coefficients (computed here with ExoTETHyS’s method on Phoenix 2018 model atmospheres, reproducing ExoTETHyS’s own output to 1e-7, or yours, or the quadratic defaults rewritten exactly; an unfiltered run uses HOPS’s own clear/luminance passband from pylightcurve’s photometry database, MIT licence, fetched at run time); removes outliers and rescales the error bars the way HOPS does; and samples the posterior with the same affine-invariant ensemble algorithm emcee implements, reporting the 16/50/84 percentiles. The occultation integral is analytic — pylightcurve’s formulation, sector plus lunes with closed-form radial integrals and one 30-node quadrature for the arc term — reproducing pylightcurve’s own function to 1e-15 and the ring integration kept as reference to 3e-6, at a quarter of the cost; the orbit matches pylightcurve’s to 1e-14; the transit duration finds the contacts on the actual orbit, and the whole mode head to head against pylightcurve’s own fitting class with emcee on the same data: outlier count and scale factor identical, every parameter within 0.1 σ. The sampler is seeded, so a rerun repeats. What does not change: the blind test still runs first and alone decides whether a transit is claimed — HOPS mode measures the catalogue’s planet, it does not test for one. When a fitted contact lies outside the run, the log, results.txt and the report say so: there a transit and a baseline offset are the same curve, and the numbers do not measure the planet.
The chart tells the whole story
The legend quotes T0 and Rp/R★ with errors and names the detrending bases; spike-rejected points appear as red crosses instead of vanishing; per-point error bars have an on/off switch; the residual panel reports its STD and lag-1 autocorrelation with a verdict. Beside the fitted model, the expected transit from the archive ephemeris is drawn whether or not the fit claimed anything — on a detection the shift between the curves is the O−C, quoted in minutes with its error; on a non-detection the legend says whether a transit was even due in your window, or names the nearest mid-transit in hours from the run. Its depth is the archive’s Rp/R★, or for a TESS candidate the SPOC depth inverted through the same limb-darkened model that draws the curve, not its square root. TESS candidates (TOI-XXXX.NN) get their ephemeris from the archive’s TOI list when the confirmed-planet table cannot know them, with the TFOPWG disposition said out loud and a red warning on false positives. And the chart speaks your planning tool’s language: a wall-clock axis across the top (local time from N.I.N.A.'s DATE-LOC, UTC otherwise — the axis says which), the predicted start/mid/end contacts stamped in clock time, and the meridian flip drawn as a dashed marker at the moment the field turned. One grammar throughout: orange dashed is the flip, cyan dotted are contacts, and coloured dashed lines exist only for a claimed detection. On a detection the comparison is spelled out contact by contact — the measured start/end with their own clock stamps, a duration arrow on the expected dip with Δduration in its label, and grey Δ spans quoting each contact’s offset in minutes (measured − predicted, the O−C sign convention).
Output
lightcurve/lightcurve.csv (JD, raw, centred, detrended, error, airmass), the plot as PNG — and, when the times are BJD_TDB, an AAVSO_exoplanet.txt in Exoplanet Watch’s format and EXOTIC’s layout — the four fields the upload form requires (STAR_NAME, EXOPLANET_NAME, EXPOSURE_TIME, MEASUREMENT_TYPE=Rnflux), DIFF as relative normalised flux with the airmass and the fitted systematics model as detrend columns, #PRIORS/#RESULTS, AAVSO’s filter code from the form or the frames (a RED wheel is TR), plus T0 ± error, both depth conventions, Rp/R★ ± error and duration in the header. field.png is the picture the form asks for beside it: the plate-solved reference frame with the target and the comparison stars marked, north/east and a 5′ bar, under 2 MB. A TESS candidate is flagged in the log and in #NOTES: AAVSO’s form validates the planet name against the confirmed-planet table and refuses a TOI until it is confirmed; ExoFOP-TESS is the venue for candidates. Two more folders hold the same run in the other pipelines’ own layouts: lightcurve/EXOTIC/ is what EXOTIC leaves in its output folder — AAVSO_<planet>_<date>.txt with EXOTIC’s header set including the -XC JSON lines, FinalLightCurve_…png/pdf, and a temp/ with the final time series as CSV, FinalParams_….json, the FOV plot, the normalised-flux table and plot, raw-flux, centroid and observing-statistics plots, the posterior’s Triangle_….png and a PlateStatus_….csv — and lightcurve/HOPS/ is HOPS’s observation folder: PHOTOMETRY_1/ with PHOTOMETRY_APERTURE.txt (exposure-start JD_UTC, target over the comparison sum, error), PHOTOMETRY_a.txt (every star’s position, flux, error and sky per frame), FOV.pdf, RESULTS.pdf, ExoClock_info.txt and log.yaml; in HOPS-compatible mode PHOTOMETRY_APERTURE_FITTING/ with results.txt, model.txt, detrended_model.txt, corner.pdf, traces.pdf and detrended_model.jpg; and the ExoClock and ETD export files under HOPS’s own name pattern. What a folder cannot hold (PSF-photometry files, the AID file that needs AAVSO chart stars, a corner plot without a HOPS-mode posterior) is named in the log rather than faked; for a TESS candidate the EXOTIC file quotes a/R★ and inclination from the orbit the HOPS-mode fit derived, not blanks. Each master build and the calibrate of the lights announce themselves in the log before the work starts. The Save results button writes two files in one click: results.txt in the exact layout HOPS leaves in its fitting folder (the column-aligned parameter table with covariance error bars, the #Filter/#Epoch block, both residual-statistics blocks including a pure-numpy Shapiro–Wilk W verified against scipy — anything that parses a HOPS results.txt parses this one unchanged; in HOPS-compatible mode it is HOPS’s own table — a₁…a₄, sma_over_rs, inclination, the real outlier count and scale factor, asymmetric posterior bars), and report.txt, the full plain-text report with the comparison stars, every rejection and its reason, the method, and the result.
Tests
tests/test_lightcurve_helpers.py runs with plain python3 — no Siril required. Over 1000 checks against input with a known answer: the J2000 epoch, sec z, synthetic transits of stated depths recovered by the full photometry engine and the full fit, twelve pure-noise runs that must not be claimed, the monotonic ramp that the two-sided test exists for, error bars calibrated against 24 independent synthetic nights, and the limb-darkened depth conventions round-tripped through the same model the fit uses.
Svenesis Gradient Analyzer
File: Svenesis-GradientAnalyzer.py (v1.8.4) — Detailed Instructions · Deutsche Anleitung
✨ Available in the official Siril Script Repository.
Reads the current image from Siril, divides it into a configurable grid of tiles, computes sigma-clipped median background levels per tile, and renders a color-coded heatmap. It helps you assess background gradients (e.g. from light pollution), decide whether background extraction is needed, and choose the right tool and parameters for the job.
Screenshots

Main window: heatmap with sample point guidance, 3D surface view, gradient strength gauge, and quadrant analysis. Nine visualization tabs with context-sensitive descriptions.
Features
Beginner-friendly UI
- “What is a gradient?” introduction: Getting Started tab explains gradients with a visual analogy and common causes (light pollution, vignetting, sensor artifacts) before any technical details.
- Beginner Glossary: Technical Reference tab includes 25+ plain-language definitions (gradient, flat/dark/bias frames, linear/stretched, polynomial degree, R², FWHM, SNR, tool names).
- Self-explaining action plan: Each step explains what the term means, why it matters, and how to do it in Siril (including menu paths and Console instructions).
- Tiered Analysis Results: Summary & Actions tab with color-coded verdict, plain-English explanation, and prioritized action plan. Detailed Metrics tab with inline jargon explanations. Before/After delta tab when re-analyzing.
- Tiered Recommendations: Quick Guide tab with styled, categorized suggestions (critical issues, tools, workflow). Full Details tab with raw diagnostic output.
- Organized Help dialog: Six tabs — Getting Started, Tabs, Tools, Options, Warnings, Reference — with expanded beginner-friendly explanations throughout.
- Tool descriptions with workflow: Each tool (AutoBGE, subsky, GraXpert, VeraLux Nox) includes what it does, when to use it, how to install/run it, and pros/cons.
- Contextual tooltips: Every checkbox, gauge, and widget explains why you’d use it, not just what it does.
- Single Analyze button (F5): Always loads the current Siril image and runs the full analysis. No separate Refresh button needed.
- Compact Siril log: Only essential information (strength, assessment, critical warnings) is logged to the Siril console. Full details are in the Analysis Results and Recommendations dialogs.
- Context-sensitive tab descriptions: Plain-language descriptions above the visualization area with “what to look for” guidance.
Analysis & diagnostics
- Configurable grid: 4–64 rows/cols with iterative sigma-clipping (1.5–4.0σ, sample std) to exclude stars and bright objects.
- Gradient metrics: Robust P95-P5 percentile strength (%), brightest-side direction, uniformity, and confidence indicator (P95-P5 SNR-based). Resists outlier tiles from hotspots and artifacts.
- Visual strength gauge: Color-coded severity bar (green → yellow → orange → red) with configurable threshold presets (Broadband 1.5/4/12%, Narrowband 0.8/2.5/6%, Fast optics 3/6/16%).
- Quadrant analysis: NW/NE/SW/SE median values with brightest/darkest highlighting.
- Gradient complexity: Polynomial fits (degree 1/2/3) with R² comparison to determine optimal subsky degree.
- Vignetting detection: Radial vs. linear model fitting and edge-to-center ratio; symmetry analysis for flat calibration quality.
- Extended object detection: Flags tiles containing nebulae/galaxies that could bias the gradient fit.
- Mosaic panel boundary detection: Identifies sharp linear discontinuities from stitched panels.
- Hotspot detection: Outlier tiles (satellite trails, artifacts) flagged at > 3σ from neighbors.
- Residual pattern detection: Moran’s I spatial autocorrelation to check if polynomial degree is sufficient.
- Improvement prediction: Estimates post-extraction gradient strength from P95-P5 of model residuals (consistent with main metric).
- Light pollution color: Characterizes LP type from per-channel gradient strengths (sodium, LED, mercury, broadband) with 1.5x dominance threshold to avoid OSC false positives.
- Linear data detection: Uses median level and mean/median ratio (skewness) to distinguish stretched data from linear narrowband/nebula images.
- Star density warning: Flags dense star fields that may bias background estimates.
- Dew/frost detection: Cross-correlates radial FWHM increase with center brightness for corrector plate dew detection.
- Amplifier glow detection: Detects exponential corner brightness profile characteristic of CCD/CMOS amp glow.
- Banding/sensor bias detection: FFT-based detection of periodic row/column patterns from sensor readout artifacts.
- Normalization detection: Warns when background-normalized data may underestimate true gradient (requires 2+ evidence pieces to avoid false positives).
- FITS calibration check: Reads FLATCOR/CALSTAT/DARKCOR from FITS headers to verify flat/dark/bias calibration was applied.
- Geographic LP direction: Converts gradient direction to real-world compass bearing via WCS rotation.
- Photometric sky brightness: Rough mag/arcsec² and Bortle class estimate from SPCC-calibrated images (approximate — uses assumed zeropoint, not a substitute for SQM measurements).
- Cos^4 vignetting correction: Separates natural optical falloff from true gradients, especially for fast optics (f/2–f/4).
- FWHM/eccentricity map: Star shape variation across the field with sensor tilt and field curvature detection. Minimum 1.5 px FWHM filter rejects hot pixels.
Visualizations (9 tabs)
- 2D heatmap & 3D surface: Color-coded tile map with optional gradient direction arrow overlay, plus interactive 3D surface view. Colorblind-friendly colormap option (cividis).
- Gradient profiles: Horizontal and vertical cross-section plots showing where the gradient ramps across the image.
- Tile distribution histogram: Background value distribution — tight peak = uniform, broad/bimodal = gradient.
- Per-channel (RGB) analysis: Separate heatmaps per channel for detecting chromaticity in light pollution. Auto-disabled for mono images.
- Background model preview: Fitted polynomial surface (what subsky would subtract) and residuals.
- Gradient magnitude map: Rate-of-change visualization highlighting the steepest gradient transitions.
- Subtraction preview: Side-by-side before/after comparison of gradient removal at full pixel resolution.
- FWHM / Eccentricity map: Star shape metrics across the field.
- Residual/exclusion mask: Polynomial fit residuals alongside red-overlaid exclusion mask showing which tiles were excluded.
- Actionable suggestions: Suggests subsky (positional syntax
subsky degree samples), AutoBGE, GraXpert, or VeraLux Nox based on gradient characteristics, with step-by-step workflow guidance.
- Priority-based workflow: Critical hardware/calibration issues are flagged before extraction recommendations.
- Sample point guidance: Heatmap overlay (green = good sample regions, red = avoid) to guide manual sample placement.
Export & persistence
- Report export: Plain-text analysis report derived from the same content as the Analysis Results and Recommendations dialogs — single source of truth.
- PNG export: Heatmap image with key metrics burned in (annotated export).
- JSON sidecar: Persist analysis results including tile medians array for cross-session comparison and overlay.
- Persistent settings: Grid size, sigma, checkboxes, colormap, and preset saved between sessions via QSettings.
- Colorbar locking: Consistent heatmap scale across re-analyses for meaningful visual comparison.
- Keyboard shortcut: F5 = Analyze (loads current image from Siril and runs analysis).
Requirements
- Siril 1.4+ with Python script support
- sirilpy (bundled with Siril)
- numpy, PyQt6, matplotlib, scipy (installed automatically via
s.ensure_installed)
- Optional: astropy (for FITS header reading)
Usage
- Load an image in Siril (linear data recommended for best accuracy).
- Run Svenesis Gradient Analyzer from Siril: Processing → Scripts (or your Scripts menu).
- Adjust grid resolution and sigma in the left panel, select a threshold preset, then click Analyze (or press F5).
- Review the heatmap, profiles, and metrics across the 9 tabs. Check the recommendations for the suggested tool and parameters.
- Apply the recommended extraction in Siril, then click Analyze (F5) again to re-analyze and compare before/after.
Svenesis ImageMono Train
File: Svenesis-ImageMono-Train.py (v1.8.3) — Detailed Instructions · Deutsche Anleitung
⚠️ Public preview — not yet submitted to the official Siril Script Repository.
Turns a single N.I.N.A. capture folder into a finished colour image without ever touching the Siril command line. Point it at the root folder of one target: it walks the tree, reads every FITS header, groups the light frames by their FILTER keyword, tells you exactly what it found, then calibrates and stacks a master per filter (optionally only the ones your palette actually reads), aligns those channels onto one common pixel grid, and combines them into a calibrated colour image. Built for a monochrome camera behind a filter wheel — frames are never debayered.
“Load a whole night of L R G B (or Ha / OIII / SII) into one folder, press one button, and walk away with per-channel masters and a colour image.”
Features
Discovery — you only pick a folder
- Header-first, folder-fallback: the
FILTER, IMAGETYP and OBJECT keywords are the source of truth; the N.I.N.A. schema DATE\IMAGETYPE\TARGETNAME\FILTER\… is used only as a fallback. Darks / flats / dark-flats / bias are collected separately for calibration.
- Reads Rice-compressed
.fits.fz directly (N.I.N.A.'s Add .fz extension), and the same filter spread over several nights is pooled into one stack. XISF files are reported and skipped rather than silently vanishing.
- Reports every filter with its frame count, total integration time, exposure, gain and sensor temperature before anything is processed.
- Warns when the folder holds more than one target (picked the date folder by mistake) and skips its own results folder while scanning. Target names are compared normalised, so
M 101 and M101 are not mistaken for two objects.
- Only calibration is taken from outside the target folder — a light frame sitting in the library or a neighbouring calibration folder is counted and reported, never stacked into your target.
NINA-PM manifest — what the planner knows, read instead of guessed
If you plan and run the rig with NINA-PM, export the project’s stack manifest (<project>.svenesis-monotrain.json) and put it into the target folder — the selected folder or up to three above it, so with Astro-PM next to Originals. The analysis finds it by itself; without one, nothing changes.
- Rejected frames stay out, each listed in the log and in
output.md with its reason (leave out frames NINA-PM rejected, on by default). Siril’s quality filters still run on what is left.
- Flats per light, as NINA-PM assigned them — one master per night, including catch-up flats shot on a later night, which no date rule can find. A light without a flat set is named by filter and night.
- SPCC as NINA-PM names the rig (
spccSensor,
README 内容过长,已截取前 64 KB。完整内容请前往 GitHub 仓库查看。
评论