stam.gentracks.get_isochrone_polygon
- stam.gentracks.get_isochrone_polygon(models, age1, mh1, age2, mh2, age_res=0.001, log_age_res=0.05, mh_res=0.05, mass_res=0.007, mass_max=1.2, stage1=1, stage2=1, bp_rp_min=-inf, bp_rp_max=inf, bp_rp_shift1=0, bp_rp_shift2=0, mg_shift1=0, mg_shift2=0)[source]
- get_isochrone_polygon(models, age1, mh1, age2, mh2, age_res=0.001, mh_res=0.05, mass_res=0.007, mass_max=1.2,
stage1=1, stage2=1, bp_rp_min=-np.inf, bp_rp_max=np.inf, bp_rp_shift1=0, bp_rp_shift2=0, mg_shift1=0, mg_shift2=0)
Get the polygon enclosed by two isochrones.
- Parameters:
models (Table) – All stellar evolution models in a single astropy table, as retrieved by stam.models.read_parsec.
age1 (float, optional) – Stellar track age of the first track, in Gyr.
mh1 (float) – Stellar track metallicity ([M/H]) of the first track, in dex.
age2 (float, optional) – Stellar track age of the second track, in Gyr.
mh2 (float) – Stellar track metallicity ([M/H]) of the second track, in dex.
age_res (float, optional) – Age resolution, in Gyr (default: 0.001 Gyr). If negative - treat as fractional.
log_age_res (float, optional) – log(age/yr) resolution, in dex, if using log_age as one of the params (default: 0.05 dex).
mh_res (float, optional) – Metallicity resolution, in dex (default: 0.05 dex).
mass_res (float, optional) – Mass resolution, in Msun (default: 0.007 Msun).
mass_max (float, optional) – Maximum mass to consider, in Msun (if no fixed mass was chosen; default: 1.2 Msun).
stage1 (int, optional) – Stellar evolution stage label of the first track (0 = pre-MS, 1 = MS, etc.; default: 1).
stage2 (int, optional) – Stellar evolution stage label of the second track (0 = pre-MS, 1 = MS, etc.; default: 1).
bp_rp_min (float, optional) – Minimal Gaia Gbp-Grp color to consider (default: -np.inf).
bp_rp_max (float, optional) – Maximal Gaia Gbp-Grp color to consider (default: np.inf).
bp_rp_shift1 (float, optional) – How much to shift the Gaia Gbp-Grp color of the first track (default: 0).
bp_rp_shift2 (float, optional) – How much to shift the Gaia Gbp-Grp color of the second track (default: 0).
mg_shift1 (float, optional) – How much to shift the Gaia G-band of the first track (default: 0).
mg_shift2 (float, optional) – How much to shift the Gaia G-band of the second track (default: 0).
- Returns:
polygon – The polygon enclosed by the two stellar evolutionary tracks.
- Return type:
Path object