Skip to main content

SNID SAGE - SuperNova IDentification with Spectrum Analysis and Guided Enhancement

Project description

SNID SAGE - Advanced Supernova Spectral Analysis

Python Version License Platform

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.


SNID SAGE GUI SNID SAGE main GUI: intuitive workflow, interactive plotting, and advanced analysis tools.


Quick Installation

Install from PyPI (Recommended)

pip install snid-sage

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
snid data/sn2003jo.dat -o results/

# Single spectrum with explicit templates
your_templates_dir=snid_sage/templates
snid identify data/sn2003jo.dat %your_templates_dir% -o results/

# Batch processing (default saves per-object summary and plots)
snid batch "data/*.dat" %your_templates_dir% -o results/

# Minimal outputs (summary only, no plots)
snid identify data/sn2003jo.dat -o results/ --minimal

# Complete outputs (summary, plots, and all additional data files)
snid identify data/sn2003jo.dat -o results/ --complete

# Disable plots explicitly (default is to generate plots)
snid identify data/sn2003jo.dat -o results/ --no-plots

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-0.4.1.tar.gz (79.2 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-0.4.1-py3-none-any.whl (79.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snid_sage-0.4.1.tar.gz
  • Upload date:
  • Size: 79.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for snid_sage-0.4.1.tar.gz
Algorithm Hash digest
SHA256 5a0b75828a5b7b77120ba318b4444d5f81ab11e72a9aa7a28205e76a94f239f9
MD5 45eb04425b863e9fe65769eeeea7674f
BLAKE2b-256 894482515041536df8d91f9a0d9e25ca3246545413ab48c3715a99ca8e5549cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snid_sage-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 79.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for snid_sage-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 418486afcd79cb1a9fa7713d77a65c82a3c9a9f9d9f79f680fac9708a7f4247c
MD5 056d89235a9f7ed506e157fae0e9eeb7
BLAKE2b-256 fad4c911b6f2474fa732bbee6bce75e5075413b1eb683ad0372eec714bc7b48b

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