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.3.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.3-py3-none-any.whl (67.5 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: galamo-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 efca178e3e4c6d2c963a414d73e224cba81d2218d6aa31fe7c1eb697f954f4f9
MD5 826c8be6e53b83b95c3f2b9cf5e7f110
BLAKE2b-256 617fa8a556bd6c3bf66d970b601df517dc3d360ec7c4c620e0789f93ff8c3725

See more details on using hashes here.

File details

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

File metadata

  • Download URL: galamo-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a0a2f2f54abd1552b60e255f839e52474e0aad173a977b70f095893e47a4fc31
MD5 b9be352464f8149ff2ad63c4ee4eb5e7
BLAKE2b-256 0644ffb8c9f4992a0be7ea75c29c8e958d73c770b86d96ba4594d703fe314fc9

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