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.2.tar.gz (64.7 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.2-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: physiokinematic-1.0.2.tar.gz
  • Upload date:
  • Size: 64.7 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.2.tar.gz
Algorithm Hash digest
SHA256 743f9fb1346c1ee787478fd3fa75bb9c12659728f068f73568d8dc0663098ab7
MD5 d5ad73919fff9a4108d575ff2802df40
BLAKE2b-256 056cc4459a5f8c4793a0479b26d7bce5bffab41d2d2719a24daae8c9fb18b01a

See more details on using hashes here.

Provenance

The following attestation bundles were made for physiokinematic-1.0.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for physiokinematic-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6350962ffa7760dec3264c206e49b31c09cb3b2eab5d28ee77d23cf26a5e04f9
MD5 d3cd13212600a2ee023a077b75103164
BLAKE2b-256 4c2d75d95591d2941fb428310cde22203e49d2735338189f54401f239443b332

See more details on using hashes here.

Provenance

The following attestation bundles were made for physiokinematic-1.0.2-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