Skip to main content

Physio-kinematic Distance Calculator

Project description

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)

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

physiokinematic-1.0.1.tar.gz (64.9 kB view details)

Uploaded Source

Built Distribution

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

physiokinematic-1.0.1-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

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

Hashes for physiokinematic-1.0.1.tar.gz
Algorithm Hash digest
SHA256 788f9483534c23df5e648a810e25628ac90795024795a63afaa16f028b8f0ffd
MD5 f475f48e6a4fcf84cd7e9ec797cbd1c7
BLAKE2b-256 338b2936b27e0f7e9b7c51b67ecd9470445c30959c42b1770a26fd159872efd7

See more details on using hashes here.

Provenance

The following attestation bundles were made for physiokinematic-1.0.1.tar.gz:

Publisher: publish.yml on tvwenger/physiokinematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file physiokinematic-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for physiokinematic-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7aa885c799788a76a3e00a15d209b64a28bc7485b47f062983721803ab8282c
MD5 6ca5fabc1c5d65846960658c332d2c20
BLAKE2b-256 3f9e8c4b62e38c302a0a5c8e05b3be6293a157ca93767d80c8302d01524d7aa4

See more details on using hashes here.

Provenance

The following attestation bundles were made for physiokinematic-1.0.1-py3-none-any.whl:

Publisher: publish.yml on tvwenger/physiokinematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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