MIST#

class agabpylib.stellarmodels.io.MIST(filename, verbose=True)#

Bases: object

Reads MIST CMD files. Code is modified version of the class in jieunchoi/MIST_codes

version#

MIST version string.

Type:

dict

photo_sys#

String with information on photometric systems.

Type:

str

abun#

Stellar model composition information.

Type:

dict

Av_extinction#

Extinction used in generating observational isocrhones.

Type:

float

rot#

Rotational velocity parameter.

Type:

float

ages#

List of available ages.

Type:

list

num_ages#

Number of ages.

Type:

int

hdr_list#

List of table column names.

Type:

list

isocmds#

Isochrones data array.

Type:

Numpy array

Examples

>>> isocmd = readisocmd.MIST('MIST_v1.0_feh_p0.00_afe_p0.0_vvcrit0.4.iso.cmd')
>>> age_ind = isocmd.age_index(7.0)
>>> B = isocmd.isocmds[age_ind]['Bessell_B']
>>> V = isocmd.isocmds[age_ind]['Bessell_V']
>>> plt.plot(B-V, V) #plot the CMD for logage = 7.0

Methods Summary

age_index(age)

Get the isochrone table index for the input age.

read_isocmd_file()

Reads in the .iso.cmd file.

Methods Documentation

age_index(age)#

Get the isochrone table index for the input age.

Parameters:

age (float) – The base-10 logarithm of the age of the isochrone.

Returns:

age_ndex – The index for the user-specified age.

Return type:

int

read_isocmd_file()#

Reads in the .iso.cmd file.

Parameters:

filename (str) – The name of .iso.cmd file.

Returns:

  • version (dict) – MIST version string.

  • photo_sys (str) – String with information on photometric systems.

  • abun (dict) – Stellar model composition information.

  • Av_extinction (float) – Extinction used in generating observational isocrhones.

  • rot (float) – Rotational velocity parameter.

  • ages (list) – List of available ages.

  • num_ages (int) – Number of ages.

  • hdr_list (list) – List of table column names.

  • isocmd_set (Numpy array) – Isochrones data array.