vabs_from_spt#
- pygaia.photometry.utils.vabs_from_spt(spt)#
Obtain \(M_V\) (absolute magnitude in \(V\)-band) for the input spectral type.
- Parameters:
spt (str) – String representing the spectral type of the star.
- Returns:
vabs – The value of \(M_V\).
- Return type:
float
- Raises:
ValueError – When an unknown spectral type is specified.