Skip to main content

physiokinematic

Physio-kinematic Distance Calculator

publish Documentation Status

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)

Release files for physiokinematic 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for physiokinematic 1.0.2
File Size Uploaded
physiokinematic-1.0.2.tar.gz 64.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for physiokinematic 1.0.2
File Interpreter ABI Platform
physiokinematic-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 99.6 kB

Release files / physiokinematic-1.0.2.tar.gz

Download URL physiokinematic-1.0.2.tar.gz
Size 64.7 kB
Tags Source
SHA-256 checksum
How to use checksums
743f9fb1346c1ee787478fd3fa75bb9c12659728f068f73568d8dc0663098ab7
BLAKE2b-256 checksum
How to use checksums
056cc4459a5f8c4793a0479b26d7bce5bffab41d2d2719a24daae8c9fb18b01a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 2, 2026.

Transparency log

Release files / physiokinematic-1.0.2-py3-none-any.whl

Download URL physiokinematic-1.0.2-py3-none-any.whl
Size 35.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6350962ffa7760dec3264c206e49b31c09cb3b2eab5d28ee77d23cf26a5e04f9
BLAKE2b-256 checksum
How to use checksums
4c2d75d95591d2941fb428310cde22203e49d2735338189f54401f239443b332
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page