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 (v0.3.0)

Option 1: Install from PyPI (Recommended)

The easiest way to install SNID SAGE is directly from PyPI:

pip install snid-sage

Option 2: Virtual Environment (Recommended for Development)

We recommend using a virtual environment to avoid conflicts with other Python packages. This ensures a clean, isolated installation.

Using venv (Python's built-in virtual environment)

# Create virtual environment
python -m venv snid_env

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

# Install SNID SAGE
pip install snid-sage
 

Using conda

# Create conda environment
conda create -n snid_sage python=3.10
conda activate snid_sage

# Install SNID SAGE
pip install snid-sage
 

Option 3: Development Installation

For development or testing the latest features:

# Install from Test PyPI (development versions)
pip install -i https://test.pypi.org/simple/ snid-sage

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

Note: If you choose global installation, we recommend using pip install --user to install in your user directory rather than system-wide.

Getting Started

Launch the GUI (Recommended)

# Using installed entry point
snid-gui
# or
snid-sage

Use the CLI (For automation)

# Single spectrum analysis (templates auto-discovered). By default saves summary (.output) and plots
snid data/sn2003jo.dat -o results/

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

# Batch processing (default saves per-object summary and plots)
snid batch "data/*.dat" templates/ -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.3.2.tar.gz (79.1 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.3.2-py3-none-any.whl (79.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snid_sage-0.3.2.tar.gz
  • Upload date:
  • Size: 79.1 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.3.2.tar.gz
Algorithm Hash digest
SHA256 6f2de6a0cae1035a5bf260268ad3b40433a93d2df9898d35ac823ce33fef681f
MD5 5800a177787c69f43f631fb246268cb0
BLAKE2b-256 6c3266f50ddc8aff7d76190b23638d241fa4fb927ecc3acbd8fa7cd2f2e11c89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snid_sage-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 79.1 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.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f4ff351b70b695c07a4588d4a91ee74f1a7b152e3c16f54af7b80121d8cf9c1c
MD5 0d3df7654ff6f438f59bf31d3d5d60ac
BLAKE2b-256 630c21e37c12dc977f61f8fcfcb2f7d146d89e40dd856e0d997ee6f431ba5c12

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