SNID SAGE - Advanced Supernova Spectral Analysis
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
Metadata
Release files for snid-sage 1.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| snid_sage-1.2.4.tar.gz | 2.5 MB | Without provenance | Details for snid_sage-1.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snid_sage-1.2.4-py3-none-any.whl | Python 3 | none | any | Details for snid_sage-1.2.4-py3-none-any.whl |
Total release size: 5.0 MB
Release files / snid_sage-1.2.4.tar.gz
| Download URL | snid_sage-1.2.4.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
837d859f41cc40c2d1120812a40d39aa514824d9970318046c1c8dc364daacac
|
|
BLAKE2b-256 checksum How to use checksums |
252b7bea86099900b45d04472b47af476d35ed65e90d00bdcad6117e78c4aa73
|
| 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.4-py3-none-any.whl
| Download URL | snid_sage-1.2.4-py3-none-any.whl |
|---|---|
| Size | 2.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14484232f271e90138525ef2739740df4db2f85342760c60b43e166d5e29d570
|
|
BLAKE2b-256 checksum How to use checksums |
39669dfa232289ac928e1d1202121059268737737d934a95a966dc537295f9e6
|
| 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.4
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.