Instructions to use astrodingra/galamo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use astrodingra/galamo with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://astrodingra/galamo") - Notebooks
- Google Colab
- Kaggle
Galamo
An open-source Python package for galaxy analysis
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):
Kewley et al. (2001):
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
- Version: 1.1.2 (https://zenodo.org/records/18255658)
- Release Date: 2025-07-20
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