Skip to main content

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 may prefer to access the data in other ways (e.g. by downloading packaged model grids).

Install mistery from PyPI with

    pip install mistery

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mistery-0.0.2.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

mistery-0.0.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file mistery-0.0.2.tar.gz.

File metadata

  • Download URL: mistery-0.0.2.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for mistery-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0ada9fd32e1df4e11525fdd4441d57995245df220a7922b8292430db8ebe185f
MD5 04f976396ccfe442ebe2bf7689abbc64
BLAKE2b-256 2d27e3e6d6a7dccc28bd7b057942f21a51d0da64f5158732ca498785d7c73f3b

See more details on using hashes here.

File details

Details for the file mistery-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: mistery-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for mistery-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4129ddc8474dd000c0dd530f0a83cb95c29543b74506c1009e3e603f024d5405
MD5 d49ccc07bc6845dffd9959247aa96ed5
BLAKE2b-256 ece030e2e7eb1e88346aea77c824acac2be59a41e3613e13abc7c323b0576ba3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page