MIST Isochrone interpolation
Project description
Minimint (MIni Mist INTerpolation)
This is a python package to perform interpolation of MIST isochrones. It is simple, in the sense that it only does one thing - predict the stellar parameters ($\log g$, $T_{eff}$, $\log L$) and photometry in a given filter for a given mass, age and metallicity. It is also vectorized, so computing photometry for large number of stars, should not be slow.
Author: Sergey Koposov (2020-2025) skoposov AT ed DOT ac DOT uk
Instructions
- Install minimint. You can either pip install the released version or install from github
pip install minimint
- Download and prepare isochrone files
minimint.download_and_prepare()
That will download all the MIST files, and process the evolutionary tracks and bolometric corrections by creating the necessary files for the package.
minimint.download_and_prepare() by default creates bolometric corrections for these filters
'DECam', 'GALEX', 'PanSTARRS', 'SDSSugriz', 'SkyMapper','UBVRIplus', 'WISE'
If you need additional filters, you can specify them using the filters parameter
minimint.download_and_prepare(filters=['JWST','WISE','DECam', 'GALEX', 'PanSTARRS', 'SDSSugriz', 'SkyMapper','UBVRIplus'])
Check which filters are available on the MIST website http://waps.cfa.harvard.edu/MIST/model_grids.html
The downloading will take some time (20-30 min) and will use significant amount of disk space (10-30 Gb).
If you want to put those processed isochrone files in a location different from the site-packages folder of minimint, you can use the outp_prefix parameter of download_and_prepare. You then will need to either specify the location each time when you construct the interpolators or with the MINIMINT_DATA_PATH environment variable.
Usage
In order to create an interpolator object for two filters (your can provide a list of any numbers of filters)
ii = minimint.Interpolator(['DECam_g','DECam_r'])
The interpolator is a callable, so you can call it on mass, log10(age), feh
ii(mass, logage, feh)
This returns a dictionary with photometry, logg, logteff and logl. mass, logage and feh could arrays. In this case the result will be dictionary of arrays.
You also can use the interpolator to find the maximum valid mass on the isochrone.
ii.getMaxMass(logage, feh)
Examples
See the notebook in the examples folder
Synthetic stellar populations
If you are interested in synthetic stellar populations you will need an implementation of the IMF. For this you may want to use https://github.com/keflavich/imf
Acknowledgement
If you are using this package please cite it through zenodo link https://doi.org/10.5281/zenodo.4002971 Also make sure that you acknowledge MIST isochrones https://waps.cfa.harvard.edu/MIST/
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file minimint-0.5.0.tar.gz.
File metadata
- Download URL: minimint-0.5.0.tar.gz
- Upload date:
- Size: 788.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
371d24edf1565d063fc6d1ebb447ae875ea835726f6b2dd7a7b9aa7825de526f
|
|
| MD5 |
9f89853b85dd39bfa47fd3b3bc0947e8
|
|
| BLAKE2b-256 |
a36dcf93736e91836b7adb2f4b605e2ec1176a23a4faaae001ba761cbba40e84
|
File details
Details for the file minimint-0.5.0-py3-none-any.whl.
File metadata
- Download URL: minimint-0.5.0-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e64245bacd2e2dc09aa73d917633f6f659dfa6cb891066e03fed1094f1ce3e1
|
|
| MD5 |
d7bd29c3f6f0ad757a5ba6aee31150da
|
|
| BLAKE2b-256 |
4c2dbf56f190c4fe03c00d6b5284599c18857ddf2c5b74f4f8f876bde42d1168
|