Skip to main content

Galaxy morphology analysis tool

Project description

GalMorph

GalMorph is a Python package for classifying simulated galaxies into elliptical, spiral, or irregular based on their morphology probability in the TNG simulation (TNG Project).

This tool is designed to work with .pkl files containing specific probability columns and enables basic classification, filtering, and visualization of galaxy morphologies.


Expected Data Format

The input should be a Pickle file (.pkl) that can be loaded as a Pandas DataFrame, containing the following columns:

Required Columns

Column Name Description Type
Snapshot Simulation snapshot number int
SubhaloID Unique identifier for the galaxy/subhalo int or str
P_irr Probability the galaxy is irregular float (0–1)
P_disk Probability the galaxy is a disk float (0–1)
P_spheroid Probability the galaxy is a spheroid float (0–1)

Notes:

  • Each probability should be a float between 0 and 1.

Installation

git clone https://github.com/ImPriyatam/galmorph.git
cd galmorph
pip install .

To follow the steps, see the documentation here.

(If you're working locally, you can also open docs/_build/html/index.html in your browser.)


License

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

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

galmorph-1.0.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

galmorph-1.0.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file galmorph-1.0.2.tar.gz.

File metadata

  • Download URL: galmorph-1.0.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for galmorph-1.0.2.tar.gz
Algorithm Hash digest
SHA256 edeac589f8a5de3a5aeacbb8a823a8233aa2e31bcf3959484fbbd83577d282b2
MD5 fac01a9b1ec8a2e9f00fb45c1adb9d3e
BLAKE2b-256 41432eeab2bfca9d110264b9b6cf5efc429c5c153f00de9e6df53d966140b47c

See more details on using hashes here.

File details

Details for the file galmorph-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: galmorph-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for galmorph-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 382288a3ecc28436180d1434489f5967db963e69f6ec529549cbdd24b6bf2fc7
MD5 49feddb1dd1f1a6573e0a37ebf7843a1
BLAKE2b-256 c5e76638573cf36985df4c60590e3c1c06027220c5ad61eecb8b9e40e2ade2fb

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