Skip to contents

The function takes in effective stellar temperature (in K), and return letter for the star's spectral type based on Morgan–Keenan (MK) system.

Usage

classify_star_spectral_type(st_teff)

Arguments

st_teff

Numeric. effective stellar temperature (in K)

Value

Character. spectral type classification with a letter:

  • M: 2,500 - 3,500

  • K: 3,500 - 5,000

  • G: 5,000 - 6,000

  • F: 6,000 - 7,500

  • A: 7,500 - 10,000

  • B: 10,000 - 28,000

  • O: 28,000 - 50,000

Examples

classify_star_spectral_type(5778)
#> [1] "G"