scopesim_templates.stellar.cluster_utils.mass2spt

Contents

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:

str or list of str

Notes

mass should not be passed as a quantity.