Galamo

An open-source Python package for galaxy analysis

Website GitHub PyPI License

Overview

Galamo is an open source Python package for comprehensive galaxy analysis, integrating machine learning and statistical methods. It provides automated tools for morphology classification, kinematics, photometry, and spectral analysis to aid astrophysical research.

Please remember to acknowledge and cite the use of Galamo! https://zenodo.org/records/18255658

Core Modules

galaxy_morph

Performs supervised morphological classification using a Convolutional Neural Network (CNN) trained on the Galaxy Zoo dataset. We present a supervised deep-learning morphology classifier trained on 17,736 galaxies from the DESI Legacy Surveys. Each galaxy is visually labelled into ten morphological categories that represent a wide range of structural states: Disturbed, Merging, Round Smooth, In-between Round, Cigar Smooth, Barred Spiral, Unbarred Tight Spiral, Unbarred Loose Spiral, Edge-on without Bulge, and Edge-on with Bulge.

bpt

Automates the classification of galaxies into AGN, composite, or star-forming based on the BPT diagram. It computes emission line ratios and compares them against the established boundaries from Kauffmann et al. (2003) and Kewley et al. (2001):

Kauffmann et al. (2003):

log⁑10([OIII]HΞ²)=0.61log⁑10([NII]HΞ±)βˆ’0.05+1.3 \log_{10}\left(\frac{[\mathrm{OIII}]}{\mathrm{H}\beta}\right) = \frac{0.61} {\log_{10}\left(\frac{[\mathrm{NII}]}{\mathrm{H}\alpha}\right)-0.05} +1.3

Kewley et al. (2001):

log⁑10([OIII]HΞ²)=0.61log⁑10([NII]HΞ±)βˆ’0.47+1.19 \log_{10}\left(\frac{[\mathrm{OIII}]}{\mathrm{H}\beta}\right) = \frac{0.61} {\log_{10}\left(\frac{[\mathrm{NII}]}{\mathrm{H}\alpha}\right)-0.47} +1.19

psr

Enhances the quality and clarity of low-light astronomical images using a computer vision pipeline (denoising, contrast enhancement, gamma correction), serving as an effective preprocessing step before classification.

Installation

Install Galamo directly from PyPI:

pip install galamo

Source Release

DeCaLS Model

A new model for Galamo is available trained on the DeCaLS Survey! Note: It is not implemented in the Python package yet, but you can download it through the official website.

Authors & Affiliation

Galamo was developed by Jashanpreet Singh Dingra and Vikramjeet Singh at Guru Nanak Dev University, Amritsar, India. Galamo was encouraged by group of coding enthusiast and we can not forget to mention them all @ Team/Supporters.

Dependencies & Availability

The package is written in Python 3.8+ and depends on Astropy, NumPy, Matplotlib, TensorFlow, Astroquery, and Scikit-learn. Galamo is publicly available on GitHub and PyPI.

Report Bugs and Contribute

We welcome contributions, bug reports, feature requests, and scientific collaborations from the open-source and astrophysical research communities. Visit our GitHub repository to contribute.

Resources

Acknowledgements

Please remember to acknowledge and cite the use of Galamo in your research and scientific publications.

Downloads last month
101
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Dataset used to train astrodingra/galamo