PARSEC#
- class agabpylib.stellarmodels.io.PARSEC(filename, verbose=True, colibri=True)#
Bases:
object
Reads PARSEC CMD files (http://stev.oapd.inaf.it/cmd). The code is taken and modified from jieunchoi/MIST_codes
- version#
String containing the version information
- Type:
str
- photo_sys#
Photometric systems available.
- Type:
str
- abun#
Dictionary containing Yinit, Zinit, [Fe/H], and [a/Fe] values.
- Type:
dict
- Av_extinction#
Av used for observation isochrones (Cardelli et al. (1989) + O’Donnell (1994) with RV=3.1.)
- Type:
float
- ages#
List ofi available ages.
- Type:
list
- num_ages#
Number of ages.
- Type:
int
- hdr_list#
List of table column names.
- Type:
list
- isocmds#
Isochrones data.
- Type:
Numpy array
Examples
>>> isocmd = readisocmd.PADOVA('PARSEC_1.2S_feh_p0.00_GGBPGRP.iso.cmd') >>> age_ind = isocmd.age_index(7.0) >>> G = isocmd.isocmds[age_ind]['G'] >>> G_BP = isocmd.isocmds[age_ind]['G_BP'] >>> G_RP = isocmd.isocmds[age_ind]['G_RP'] >>> plt.plot(G_BP-G_RP, G) #plot the CMD for logage = 7.0
Methods Summary
age_index
(age)Returns the index for the user-specified age.
Reads in the .iso.cmd file.
Methods Documentation
- age_index(age)#
Returns the index for the user-specified age.
- Parameters:
age (float) – The base-10 logarithm of the age of the isochrone.
- read_isocmd_file()#
Reads in the .iso.cmd file.
- Parameters:
filename (str) – The name of .iso.cmd file.
- Returns:
version (str) – String containing the version information
photo_sys (str) – Photometric systems available.
abun (dict) – Dictionary containing Yinit, Zinit, [Fe/H], and [a/Fe] values.
Av_extinction (float) – Av used for observation isochrones (Cardelli et al. (1989) + O’Donnell (1994) with RV=3.1.)
ages (list) – List ofi available ages.
num_ages (int) – Number of ages.
hdr_list (list) – List of table column names.
isocmd_set (Numpy array) – Isochrones data.