stam.gentracks.get_isochrone_side
- stam.gentracks.get_isochrone_side(models, vals, params=('age', 'mh'), side='blue', age_res=0.001, log_age_res=0.05, mh_res=0.05, mass_res=0.007, mass_min=0, mass_max=1.2, stage=1, stage_min=0, stage_max=inf, bp_rp_min=-10, bp_rp_max=10, bp_rp_shift=0, mg_shift=0, is_extrapolate=True, color_filter1='G_BPmag', color_filter2='G_RPmag', mag_filter='Gmag')[source]
- get_isochrone_side(models, age, mh, side=”blue”, age_res=0.001, mh_res=0.05, mass_res=0.007, mass_max=1.2,
stage=1, bp_rp_min=-np.inf, bp_rp_max=np.inf, bp_rp_shift=0, mg_shift=0)
Get the polygon enclosed by one side of an evolutionary track.
- Parameters:
models (Table) – All stellar evolution models in a single astropy table, as retrieved by stam.models.read_parsec.
vals (array_like (of length 2)) – Values of the fixed parameters (units: [mass] = Msun, [age] = Gyr, [mh] = dex).
params (tuple (of length 2), optional) – Fixed parameters names (default: (“age”, “mh”)).
side (str, optional (default: "blue")) – Which side of the track to include (“blue”/”red”).
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).
stage (int, optional) – Stellar evolution stage label of the track (0 = pre-MS, 1 = MS, etc.; default: 1).
stage_min (int, optional) – Minimum stellar evolution stage label to consider (if no fixed stage was chosen; default: 0).
stage_max (int, optional) – Maximum stellar evolution stage label to consider (if no fixed stage was chosen; default: np.inf).
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_shift (float, optional) – How much to shift the Gaia Gbp-Grp color of the track (default: 0).
mg_shift (float, optional) – How much to shift the Gaia G-band of the track (default: 0).
is_extrapolate (bool, optional) – Whether to extrapolate the massive part of the isochrone (default: True).
color_filter1 (str, optional) – Bluer band to use for the color calculation (default: G_BPmag).
color_filter2 (str, optional) – Redder band to use for the color calculation (default: G_RPmag).
mag_filter (str, optional) – Which band to use for the magnitude axis (default: Gmag).
- Returns:
polygon – The polygon enclosed by one side of an evolutionary track.
- Return type:
Path object