Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/segasai/minimint
Simple MIST isochrone interpolation
https://github.com/segasai/minimint
interpolation isochrones mist
Last synced: about 1 month ago
JSON representation
Simple MIST isochrone interpolation
- Host: GitHub
- URL: https://github.com/segasai/minimint
- Owner: segasai
- Created: 2020-05-11T07:14:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-01T12:55:15.000Z (2 months ago)
- Last Synced: 2024-11-01T13:35:25.851Z (2 months ago)
- Topics: interpolation, isochrones, mist
- Language: Python
- Homepage:
- Size: 3.75 MB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://github.com/segasai/minimint/workflows/Minimint/badge.svg)](https://github.com/segasai/minimint/actions?query=workflow%3AMinimint)
[![Coverage Status](https://coveralls.io/repos/github/segasai/minimint/badge.svg?branch=master)](https://coveralls.io/github/segasai/minimint?branch=master)[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5610692.svg)](https://doi.org/10.5281/zenodo.5610692)# Minimint (MIni Mist INTerpolation)
# Python package to perform simple interpolation of MIST isochrones.
Author: Sergey Koposov (2020-2024) 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 everything 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
This will take some time (20-30 min) and will use significant 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.You also can use the interpolator to find the maximum valid mass on the isochrone.
```ii.getMaxMass(logage, feh)```
## Examples
See the [notebook](examples/Example.ipynb) in the examples folder
## Synthetic stellar populations
If you are interested in synthetic stellar populations you will need
the 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 you acknowledge MIST isochrones https://waps.cfa.harvard.edu/MIST/