Skip to main content

SNID SAGE - SuperNova IDentification – Spectral Analysis and Guided Exploration

Project description

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

Install from PyPI (Recommended)

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.

Using a virtual environment (recommended)

# 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:

  • Stoppa, F. and Smartt, S. J., SNID-SAGE: A Modern Framework for Interactive Supernova Classification and Spectral Analysis (arXiv:2603.28741)

For the current arXiv version, the official BibTeX entry is:

@misc{stoppa2026,
  title={SNID-SAGE: A Modern Framework for Interactive Supernova Classification and Spectral Analysis},
  author={Fiorenzo Stoppa and Stephen J. Smartt},
  year={2026},
  eprint={2603.28741},
  archivePrefix={arXiv},
  primaryClass={astro-ph.IM},
  url={https://arxiv.org/abs/2603.28741}
}

Community & Support

License

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


Made with care for the astronomical community

DocumentationReport BugRequest FeatureDiscussions

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snid_sage-1.2.3.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snid_sage-1.2.3-py3-none-any.whl (2.5 MB view details)

Uploaded Python 3

File details

Details for the file snid_sage-1.2.3.tar.gz.

File metadata

  • Download URL: snid_sage-1.2.3.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for snid_sage-1.2.3.tar.gz
Algorithm Hash digest
SHA256 5a0115292c1fa44d123a35e62d1e844959c52db1863cc11ee2434de934db3e49
MD5 c309bb7037b52460208464d90fb1230c
BLAKE2b-256 934e0aca9c9858618060d20676b989ba4a493a64ce79e50e941725e43a408abc

See more details on using hashes here.

File details

Details for the file snid_sage-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: snid_sage-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for snid_sage-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1bfe417ea65d7e405483df35b32ab8382c81b0f6c32c0754a20c2fcd18d7049b
MD5 e24ff0bc0320877cf68add7e61c610b4
BLAKE2b-256 61e80a0a3641fd8f922a631817971a0169e1260d98418c910b84ca21d6f86c3b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page