Skip to main content

SNID-SAGE - Advanced Supernova Spectral Analysis

Python Version License Platform

Match Template Flux

SNID-SAGE (SuperNova IDentification – Spectral Analysis and Guided Exploration) is your go-to tool for analyzing supernova spectra. It combines an intuitive PySide6/Qt graphical interface with the original SNID (Blondin & Tonry 2007) cross-correlation techniques, enhanced with modern clustering for classification choice, high-performance plotting via pyqtgraph, and LLM-powered analysis summaries and interactive chat assistance.

Quick Installation

pip install snid-sage

Python support: 3.10–3.13 (3.14 not yet supported due to dependency wheels).

This installs both the CLI and the full GUI stack by default, as defined in pyproject.toml.

# Create virtual environment
python -m venv snid_env

# Activate environment
# Windows:
snid_env\Scripts\activate
# macOS/Linux:
source snid_env/bin/activate

# Install
pip install snid-sage

Development installation

git clone https://github.com/FiorenSt/SNID-SAGE.git
cd SNID-SAGE
pip install -e .

Note: For user installs, you can use pip install --user to avoid system-wide changes.

Getting Started

Launch the GUI

snid-sage

Use the CLI

# Single spectrum analysis (templates auto-discovered). Saves the summary (.output) by default
sage data/SN2018bif.csv -o results/

# Batch processing (default saves per-object summary plus standard batch outputs)
sage batch "data/*.dat" -o results/

# Batch from a CSV list with per-row redshift (if provided)
sage batch --list-csv "data/spectra_list.csv" -o results/

Documentation & Support

Supported Data Formats

  • FITS files (.fits, .fit)
  • ASCII tables (.dat, .txt, .ascii, .asci, .csv, .flm)
  • Space-separated values with flexible column detection
  • Flexible text/FITS loading with automatic format detection

Research & Citation

If you use SNID-SAGE in your research, please cite the SNID-SAGE paper:

@ARTICLE{2026MNRAS.549g1066S,
       author = {{Stoppa}, Fiorenzo and {Smartt}, Stephen J.},
        title = "{SNID─SAGE: a modern framework for interactive supernova classification and spectral analysis}",
      journal = {\mnras},
     keywords = {methods: data analysis, methods: statistical, techniques: spectroscopic, surveys, software: development, (stars:) supernovae: general, Instrumentation and Methods for Astrophysics},
         year = 2026,
        month = jul,
       volume = {549},
       number = {4},
          eid = {stag1066},
        pages = {stag1066},
          doi = {10.1093/mnras/stag1066},
archivePrefix = {arXiv},
       eprint = {2603.28741},
 primaryClass = {astro-ph.IM},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2026MNRAS.549g1066S},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

Community & Support

License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with care for the astronomical community

Documentation • Report Bug • Request Feature • Discussions

Metadata

Release files for snid-sage 1.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snid-sage 1.2.5
File Size Uploaded Provenance Actions
snid_sage-1.2.5.tar.gz 2.5 MB Without provenance Details for snid_sage-1.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for snid-sage 1.2.5
File Interpreter ABI Platform Actions
snid_sage-1.2.5-py3-none-any.whl Python 3 none any Details for snid_sage-1.2.5-py3-none-any.whl

Total release size: 5.0 MB

Release files / snid_sage-1.2.5.tar.gz

Download URL snid_sage-1.2.5.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
6220e5ebb70b93f3c8117b78aaf9c84a0315cb3c3a619d4e13407f4f717979a9
BLAKE2b-256 checksum
How to use checksums
d810a9eb0bb653ae1003b3146a9dc632bf75d7f0d6e62eceb5b7aa678df0fe12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / snid_sage-1.2.5-py3-none-any.whl

Download URL snid_sage-1.2.5-py3-none-any.whl
Size 2.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3abe53416805a0928fca4c2844740f9e65a16ded94ef7bc609f82d01ba2039ae
BLAKE2b-256 checksum
How to use checksums
30fe1a80eeec2ad7e5cf12b4064e5edc3b0eea7b69baf5f6d009819465fe7510
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Security for snid-sage 1.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page