gabs_from_spt#

pygaia.photometry.utils.gabs_from_spt(spt)#

Obtain \(M_G\) (absolute magnitude in \(G\)-band) for the input spectral type.

Parameters:

spt (str) – String representing the spectral type of the star.

Returns:

gabs – The value of \(M_G\).

Return type:

float

Raises:

ValueError – When an unknown spectral type is specified.