scopesim_templates.stellar.cluster_utils.mass2spt#
- scopesim_templates.stellar.cluster_utils.mass2spt(mass)#
Find the closest spectral type for a given stellar mass.
- Parameters:
mass (float or iterable of floats) – Star mass in units of solar mass.
- Returns:
spt – Spectral type or list of spectral types.
- Return type:
Notes
massshould not be passed as a quantity.