Physio-kinematic Distance Calculator
Project description
physiokinematic
Physio-kinematic Distance Calculator
- Installation
- Usage:
distance_model - Usage:
hii_region_model - Issues and Contributing
- License and Copyright
physiokinematic implements a Bayesian model to predict the distances to objects in the Milky Way. It is essentially a fully-Bayesian kinematic distance calculator. Furthermore, for Galactic HII regions, physiokinematic also predicts various physical properties of the star forming regions, including the ionizing photon rate of the ionization source and the electron density. Given informative priors on these parameters, physiokinematic can probabilistically resolve the kinematic distance ambiguity.
Installation
mamba env create -f environment.yml
mamba activate physiokinematic
pip install -e .
Usage: distance_model
The distance_model is a Bayesian kinematic distance model. The free parameters of the model are: the parameters defining the Persic (1996) Galactic rotation model (see also: Reid et al. 2019) and the Galactocentric radius of the object. The prior on the rotation curve parameters is a multivariate normal distribution, and the prior on the Galactocentric radius is a chi-squared distribution offset by the geometric minimum Galactocentric radius along the given line-of-sight. The likelihood is set by the observed LSR velocity with the assumption of systematic deviations from Galactic rotation.
Usage: hii_region_model
The hii_region_model is a Bayesian kinematic distance model that also constrains the physical properties of a Galactic HII region. The additional free parameters are the slope and offset of the electron temperature vs. Galactocentric radius gradient, the ionizing photon rate of the ionizing source, the electron density, and the kinematic distance ambiguity resolution. The priors on the electron temperature gradient slope and offset are normal distributions. For the ionizing photon rate and electron density, the priors are log-normal distributions. The kinematic distance ambiguity resolution uses a Dirichlet prior. The likelihood includes observations of the LSR velocity, infrared angular size, and radio recombination line brightness. The later two are defined as log-normal distributions with user-defined widths to account for effects not predicted by the model, such as missing flux due to interferometric observations and the unknown difference between the infrared size and the Stromgren radius.
Issues and Contributing
Anyone is welcome to submit issues or contribute to the development of this software via Github.
License and Copyright
Copyright(C) 2024-2026 by Trey V. Wenger
This code is licensed under MIT license (see LICENSE for details)
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 physiokinematic-1.0.1.tar.gz.
File metadata
- Download URL: physiokinematic-1.0.1.tar.gz
- Upload date:
- Size: 64.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
788f9483534c23df5e648a810e25628ac90795024795a63afaa16f028b8f0ffd
|
|
| MD5 |
f475f48e6a4fcf84cd7e9ec797cbd1c7
|
|
| BLAKE2b-256 |
338b2936b27e0f7e9b7c51b67ecd9470445c30959c42b1770a26fd159872efd7
|
Provenance
The following attestation bundles were made for physiokinematic-1.0.1.tar.gz:
Publisher:
publish.yml on tvwenger/physiokinematic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
physiokinematic-1.0.1.tar.gz -
Subject digest:
788f9483534c23df5e648a810e25628ac90795024795a63afaa16f028b8f0ffd - Sigstore transparency entry: 788460467
- Sigstore integration time:
-
Permalink:
tvwenger/physiokinematic@b75c270bc6bf59b683d249d38124f2e33e9b04d1 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/tvwenger
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b75c270bc6bf59b683d249d38124f2e33e9b04d1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file physiokinematic-1.0.1-py3-none-any.whl.
File metadata
- Download URL: physiokinematic-1.0.1-py3-none-any.whl
- Upload date:
- Size: 35.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7aa885c799788a76a3e00a15d209b64a28bc7485b47f062983721803ab8282c
|
|
| MD5 |
6ca5fabc1c5d65846960658c332d2c20
|
|
| BLAKE2b-256 |
3f9e8c4b62e38c302a0a5c8e05b3be6293a157ca93767d80c8302d01524d7aa4
|
Provenance
The following attestation bundles were made for physiokinematic-1.0.1-py3-none-any.whl:
Publisher:
publish.yml on tvwenger/physiokinematic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
physiokinematic-1.0.1-py3-none-any.whl -
Subject digest:
c7aa885c799788a76a3e00a15d209b64a28bc7485b47f062983721803ab8282c - Sigstore transparency entry: 788460500
- Sigstore integration time:
-
Permalink:
tvwenger/physiokinematic@b75c270bc6bf59b683d249d38124f2e33e9b04d1 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/tvwenger
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b75c270bc6bf59b683d249d38124f2e33e9b04d1 -
Trigger Event:
release
-
Statement type: