Gyrochronology via interpolation of open cluster rotation sequences.
Project description
Documentation
The documentation is hosted at gyro-interp.readthedocs.io. A minimal example to get you started is below.
Install
Preferred installation method is through PyPI:
pip install gyrointerp
Minimal Example
Given a single star's rotation period, effective temperature, and uncertainties, what is the gyrochronological age posterior over a grid spanning 0 to 2.6 Gyr?
import numpy as np
from gyrointerp import gyro_age_posterior
# units: days
Prot, Prot_err = 11, 0.2
# units: kelvin
Teff, Teff_err = 4500, 100
# uniformly spaced grid between 0 and 2600 megayears
age_grid = np.linspace(0, 2600, 500)
# calculate the age posterior - takes ~30 seconds
age_posterior = gyro_age_posterior(
Prot, Teff, Prot_err=Prot_err, Teff_err=Teff_err, age_grid=age_grid
)
# calculate dictionary of summary statistics
from gyrointerp import get_summary_statistics
result = get_summary_statistics(age_grid, age_posterior)
print(f"Age = {result['median']} +{result['+1sigma']} -{result['-1sigma']} Myr.")
The documentation contains more extensive examples, as well as discussion of important caveats.
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
gyrointerp-0.3.tar.gz
(13.1 MB
view details)
File details
Details for the file gyrointerp-0.3.tar.gz
.
File metadata
- Download URL: gyrointerp-0.3.tar.gz
- Upload date:
- Size: 13.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d75d6258a7bee8177a4be7c7a8ca8224c42b2326d64dff642e4d9bb6b826153b |
|
MD5 | c2eb97e5d77800709d6256d75602019c |
|
BLAKE2b-256 | 395f9c2329bd5599e6136b61051180032819cb61083bd3bb613841ad2ffacc52 |