Skip to main content

A 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.

Project description

🌌 Galamo - Galaxy Morphology Predictor


🚀 Features

✅ Pre-trained deep learning model for galaxy morphology classification
✅ Automatic image preprocessing (resizing, normalization, and format conversion)
✅ Simple and intuitive API requiring only an image file as input
✅ Supports multiple galaxy morphology types
✅ Compatible with Python 3.6+


📥 Installation

Install from PyPI

To install the package using pip:

pip install galamo

Install from Source

Alternatively, to install from source:

git clone https://github.com/jsdingra11/galamo.git
cd galamo
pip install .

📖 Usage Guide

Import and Initialize the Model

from galamo import galaxy_morph

Predict Galaxy Morphology from an Image

galaxy_morph("galaxy.jpg")

Example Output

Predicted Morphology: Spiral Galaxy

⚙️ How It Works

  1. Loads a pre-trained deep learning model for galaxy classification.
  2. Preprocesses the input image (resizing, RGB conversion, and normalization).
  3. Feeds the processed image into the neural network for prediction.
  4. Converts the predicted class index to its corresponding galaxy morphology name.

📋 Requirements

Ensure the following dependencies are installed:

  • Python 3.10+
  • TensorFlow
  • NumPy
  • OpenCV
  • Joblib
  • Matplotlib

🧠 Model Details

  • Trained on a dataset of galaxy images labeled with different morphology types.
  • Utilizes a Convolutional Neural Network (CNN) to extract features and classify images.
  • Uses a label encoder to map numerical predictions to meaningful class names (e.g., Spiral, Elliptical, Irregular, etc.).

🤝 Contributing

Galamo welcome contributions! To improve the model or add new features:

  1. Fork the repository.
  2. Create a feature branch (git checkout -b feature-name).
  3. Commit your changes (git commit -m 'Added new feature').
  4. Push the branch (git push origin feature-name).
  5. Create a pull request.

📜 License

This project is licensed under the MIT License – see the LICENSE file for details.


📬 Contact & Support

👨‍💻 Author: Jashanpreet Singh Dingra
👨‍💻 Co-Author: Vikramjeet Singh
📧 Email: astrodingra@gmail.com
🔗 GitHub: https://github.com/jsdingra11

For issues or feature requests, please open an issue on GitHub.


🌠 Galamo - Unveiling the Universe, One Galaxy at a Time!

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

galamo-0.0.4.tar.gz (67.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

galamo-0.0.4-py3-none-any.whl (67.5 MB view details)

Uploaded Python 3

File details

Details for the file galamo-0.0.4.tar.gz.

File metadata

  • Download URL: galamo-0.0.4.tar.gz
  • Upload date:
  • Size: 67.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for galamo-0.0.4.tar.gz
Algorithm Hash digest
SHA256 860bf45d42f77aab17ea294794569bb2f7df022fd6a36cf280b986694cd0a6d9
MD5 2a7956450411d68210692b1b177e1b04
BLAKE2b-256 0e4e9b27eb3c4330c8ef2630b570c61ba71106e5d63671f7e8764cb522572dbd

See more details on using hashes here.

File details

Details for the file galamo-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: galamo-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 67.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for galamo-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4a3d3b2c1f97df6fa7fa8ce7796cb25f9113531c16e6557435077922aed8f338
MD5 7b6c3658a190b9af3eaf8f546d57b3cc
BLAKE2b-256 a4bfa5e310b9a3e9f07ef5e5a239fc12d95f44de3703ccd0ad3dbdab73e0e27f

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