Python module for retrieving data from the MESA Isochrones and Stellar Tracks (MIST) database of stellar models.
Project description
mistery
mistery
(c.f. "MIST query") is a Python module for retrieving data
from the MESA Isochrones and Stellar
Tracks (MIST) database of stellar
models. The module allows you to fetch data by submitting requests to
the web interpolator. It is intended as a lightweight teaching tool
that lets students access real-world stellar model data. If you're
doing intensive scientific work, you're probably better off accessing
the data in other ways (e.g. by downloading packaged model
grids).
To use mistery
, copy the module file mistery.py
to somewhere
your Python interpreter will find it (e.g. your working directory or
somewhere in your $PYTHON_PATH
). Then fetch a single track with
track = mistery.get_track(M=3.1081, FeH=-0.8128)
The data is returned as a structured NumPy array. i.e. you can access the columns by name rather than number. To see a list of names, use
print(track.dtype.names)
and access columns with statements like track['log_L']
.
You can download multiple tracks in one call by instead passing an
iterable of masses to mistery.get_tracks
, e.g.
tracks = mistery.get_tracks(M=[1.086718, 2.8511], FeH=0.012756)
The data in tracks
is now a list of tracks and can be accessed
with e.g. tracks[0]['log_L']
.
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
File details
Details for the file mistery-0.0.1.tar.gz
.
File metadata
- Download URL: mistery-0.0.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | caceba2ff8d77d136ba4fc9d9d8a09153eff27094720dee3c6f6f683a3ebbc99 |
|
MD5 | 72adcc90a15b9876ff29ac34093f74b9 |
|
BLAKE2b-256 | dc2cd8f98587f0a84f432d4bff05a371b77a89d20f76785b157ac2ad49282024 |
File details
Details for the file mistery-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: mistery-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fa3c7943b4eaf0d53b118b0da8ecf0510c1fc56f851229390d0fb30d5b2eeb2 |
|
MD5 | 7ffd28adb8e70d4269db408c987f4c7f |
|
BLAKE2b-256 | f0721938e8cc5fa5d4b692ac0e55e13ca63af5461235662c9e678fa690fa828b |