stam.gaia.get_gaia_isochrone_side_subsample

stam.gaia.get_gaia_isochrone_side_subsample(bp_rp, mg, models, age, mh, side='blue', age_res=0.001, mh_res=0.05, mass_res=0.007, mass_max=1.2, stage=1, stage_min=0, stage_max=inf, bp_rp_min=-inf, bp_rp_max=inf, bp_rp_shift=0, mg_shift=0, is_plot=False, title=None, ax=None)[source]
get_gaia_isochrone_side_subsample(bp_rp, mg, models, age, mh, side=”blue”,

age_res=0.001, mh_res=0.05, mass_res=0.007, mass_max=1.2, stage=1, stage_min=0, stage_max=np.inf, bp_rp_min=-np.inf, bp_rp_max=np.inf, bp_rp_shift=0, mg_shift=0, is_plot=False, title=None, ax=None)

Get the subsample of one side of an evolutionary track.

Parameters:
  • bp_rp (array_like) – Gaia Gbp-Grp color.

  • mg (array_like) – Gaia G-band absolute magnitude (same size as bp_rp).

  • models (Table) – All stellar evolution models in a single astropy table, as retrieved by stam.models.read_parsec.

  • age (float, optional) – Stellar track age of the track, in Gyr.

  • mh (float) – Stellar track metallicity ([M/H]) of the track, in dex.

  • side (str, optional) – Which side (“blue”/”red”) of the track to include (default: “blue”).

  • age_res (float, optional) – Age resolution, in Gyr (default: 0.001 Gyr).

  • 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_plot (bool, optional) – Plot Gaia CMD with highlighted region? (default: False).

  • title (str, optional) – Plot title (default: None).

  • ax (Axes object, optional) – Matplotlib Axes in which to plot (default: None).

Returns:

idx – Row indices of Gaia sources inside the subsample polygon.

Return type:

array_like