stam.griddata.interpolate_tracks
- stam.griddata.interpolate_tracks(tri, color, mag, tracks, param='mass')[source]
Interpolate color-magnitude location over the stellar track grid.
- Parameters:
tri (Delaunay object) – 2D Delaunay triangulation of the stellar track grid, as retrieved by stam.interp.triangulate_tracks.
color (array_like) – Color of the stars (usually Gaia’s Gbp-Grp).
mag (array_like) – Absolute magnitude of the stars (usually Gaia’s M_G; same size as color).
tracks (Table) – Stellar-track grid, as retrieved by stam.tracks.get_isomasses or stam.tracks.get_combined_isomasses.
param (str, optional) – The parameter to evaluate (options: “mass”, “age”, “mh”; default: “mass”).
- Returns:
x (array_like) – The evaluated parameter.
nan_idx (array_like) – NaN-value indices of x.