Skip to content

mfouesneau/ezmist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EZMIST -- A python package that allows you to download MIST/MESA isochrones directly from their website

This small package provides a direct interface to the MIST/MESA isochrone webpage (http://waps.cfa.harvard.edu/MIST). It compiles the URL needed to query the website and retrives the data into a python variable.

This package has been tested on python 2.7 and python 3.

:version: 1 :author: MF

(this package is similar to EzPadova: https://github.com/mfouesneau/ezpadova)

Installation

Install with pip

pip install git+https://github.com/mfouesneau/ezmist

(--user if you want to install it in your user profile)

Manual installation

download the repository and run the setup

python setup.py install

EXAMPLE USAGE

  • Basic example of downloading a sequence of isochrones, plotting, saving
>>> r = ezmist.get_t_isochrones(6.0, 7.0, 0.05, FeH_value=0.0, theory_output='full')
>>> import pylab as plt
>>> plt.scatter(r['logT'], r['logL'], c=r['logA'], edgecolor='None')
>>> plt.show()
>>> r.write('myiso.fits')

Note: MIST isochrone metallicities are defined in terms of [Fe/H] (not Z)

  • getting only one isochrone
>>> r = ezmist.get_one_isochrones(age=1e7, FeH=0.0,v_div_vcrit=0.0, age_scale='linear')

* getting synthetic isochrones as pandas dataframe

```python

>>> data=ezmist.get_one_isochrone(age=0.6e9,FeH=0.19,v_div_vcrit=0.0,age_scale='linear',output_option='photometry',output='UBVRIplus').to_pandas()

About

Interface to MIST/MESA Isochrones

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages