query_for_spectral_type#

aesop.query_for_spectral_type(identifier, only_first_two_characters=True, default_sptype='G0')[source]#

Search SIMBAD for the spectral type of a star.

If no spectral type is found, the default return value is "G0".

Parameters:
identifierstr

Name of target

only_first_two_charactersbool

Return only first two characters of spectral type?

default_sptypestr

Spectral type returned when none is found on SIMBAD

Returns:
sptypestr

Spectral type of the star.