A package for modeling galaxy poses and trajectories.
Project description
GalaxyPose
GalaxyPose is a Python toolkit for modeling galaxy trajectories (position/velocity) and orientations as continuous functions of time from discrete cosmological simulation snapshots.
Features
- Trajectory interpolation with periodic-box support (unwrap/wrap).
- Orientation interpolation
- from rotation matrices (smooth quaternion-based interpolation), or
- from angular-momentum directions (disk-axis use cases).
- Optional birth-frame alignment utilities via
pynbody(galpos.decorate). - Optional helpers for IllustrisTNG (TNG simulation) catalogs via
AnastrisTNG(galpos.decorate).
Installation
From source:
git clone https://github.com/GalaxySimAnalytics/GalaxyPose.git
cd GalaxyPose
pip install -e .
Optional extras:
pip install -e ".[plot]" # matplotlib plotting helpers
pip install -e ".[decorate]" # pynbody integration
pip install "AnastrisTNG @ git+https://github.com/wx-ys/AnastrisTNG" # IllustrisTNG helpers via AnastrisTNG
Use Cases
In cosmological hydrodynamic simulations, stellar formation properties (formation time, birth position, birth velocity) are often recorded in the simulation box frame. To compute quantities relative to a host galaxy at formation time, you need the host galaxy’s position, velocity, and (optionally) orientation at that same moment. GalaxyPose supports building these continuous models and aligning particle birth properties to the host-galaxy frame.
Citation / Acknowledging GalaxyPose
If you use GalaxyPose in research, please cite the Zenodo record:
BibTeX:
@software{Lu2026GalaxyPose,
author = {Lu, Shuai},
title = {GalaxyPose},
publisher = {Zenodo},
doi = {10.5281/zenodo.18212505},
url = {https://doi.org/10.5281/zenodo.18212505},
}
You can also use the metadata in CITATION.cff.
License
MIT License. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file galpos-1.0.1.tar.gz.
File metadata
- Download URL: galpos-1.0.1.tar.gz
- Upload date:
- Size: 45.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a08fca5731634b45b4018744af70627757df33d7eedcdd78fe22c25bff0fe3b0
|
|
| MD5 |
11b771f06c01213e5a26a5968698bae7
|
|
| BLAKE2b-256 |
2ffe63f0e4aac53a07f32e87e97dbb7be42d71cc0eb7e482b87367ab4bf1b3e3
|
File details
Details for the file galpos-1.0.1-py3-none-any.whl.
File metadata
- Download URL: galpos-1.0.1-py3-none-any.whl
- Upload date:
- Size: 41.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1d1c36aa5b157b95e642791fb3e530d5d7c594763fc160974399323199a58a2
|
|
| MD5 |
ba1e449a16e07ccf208f25622e720f6d
|
|
| BLAKE2b-256 |
82285912fba55bc37b5f294bab527de2a613f9b5b52f52aca0950a49b1a0a21e
|