synthpop.modules.evolution.mist
This module provides the loading and handling of MIST isochrones. It automatically downloads the isochrone form the online MIST service.
MIST documentation: https://waps.cfa.harvard.edu/MIST/
MIST papers: Dotter (2016), Choi et al. (2016); DOIs: 10.3847/0067-0049/222/1/8, 10.3847/0004-637X/823/2/102
The mist_columns.json file provides a guide to which isochrone files include which columns/filters.
Classes
MIST Isochrone class |
Module Contents
- class synthpop.modules.evolution.mist.MIST(columns, use_global=True, **kwargs)
Bases:
synthpop.modules.evolution._evolution.EvolutionIsochrones,synthpop.modules.evolution.charon_interpolator.CharonInterpolatorMIST Isochrone class
Attributes
FOLDER : location to store the isochrones
isochrones : dict
min_mass :
max_mass :
met_to_file_iso :
none_mag_cols :
file_met :
bands :
iso_ages :
mass_range :
Methods
__init__(self, chosen_bands, iso_props, use_global=False) : None
- get_mass_ranges(isochrones)dict
estimate the mass range for each metallicity age
convert_to_met(file_isochrones) : ndarray
load_isochrones(self, magsys) : dict
- convert_to_cmd_to_h5(filename)pandas.DataFrame
convert the ascii file to an .h5 file Returns the loaded table
- download_isochrones(self, magsys_name)None
Download the isochrone system and unpack them
- FOLDER = "b'.'/data/isochrones/mist"
- max_mass = 250
- min_mass = 0.1
- isochrones_name = 'MIST'
- met_to_file_iso
- file_met
- isochrones_grouped
- iso_ages
- mass_range
- static get_mag_systems(columns)
Parameters
- columnslist
list specifying columns and filter systems from the MIST Isochrones
Returns
- collected_magsysdict
Contains the columns for each needed filter system
- none_mag_colslist
a list of all non-magnitude columns
- all_bandslist
a list of all magnitude columns
- static get_mass_ranges(isochrones_grouped)
Estimate the mass range for each metallicity and age Parameters ———- isochrones_grouped : pandas.DataFrameGroupeBy
Returns
- mass_rangespandas.DataFrame
mass range for each age and metallicity
- static convert_to_met(file_isochrones)
- get_filenames(magsys, met_string)
- load_isochrones(magsys)
load the isochrones for each of the given magnitude systems and all metallicities if needed it will download the isochrones from the server
Parameters
- magsyslist
list of magnitude systems.
Returns
- isochronesdict
dictionary of separate PandasDataFrames for each metallicity.
- static get_columns(filename)
- classmethod read_csv(filename)