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 summary (.output) and plots by default
sage data/sn2003jo.dat -o results/

# Batch processing (default saves per-object summary and plots)
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, .flm)
  • Space-separated values with flexible column detection
  • Custom formats with configurable parsers

Research & Citation

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

@software{snid_sage_2025,
  title={SNID SAGE: A Modern Framework for Interactive Supernova
         Classification and Spectral Analysis},
  author={F. Stoppa},
  year={In Prep, 2025},
  url={https://github.com/FiorenSt/SNID-SAGE}
}

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.0.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.0-py3-none-any.whl (2.5 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for snid_sage-1.2.0.tar.gz
Algorithm Hash digest
SHA256 be198c3685b54442fc46798ade34e9afbb414c3c4faf6adb3595082a7dde52ee
MD5 a10210dc834af5dc224b4307a74e4c6d
BLAKE2b-256 f8076ec057119e5ae41b869c8cca85b63e3f706ab3d7755244696b4626031c1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snid_sage-1.2.0-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.14

File hashes

Hashes for snid_sage-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 547e47c7f79495a1866b1437dfc4f11baf3c71c12542d8374d0fcfd1a6b635cd
MD5 f92a7e81e097f5e4f5c66f8358b0ea1b
BLAKE2b-256 fbde91da7303db55c9cc13b04afdf026d035d31a9559c4787660014589b5f814

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