scopesim_targets.spectral_classes.SpectralClass#
- class scopesim_targets.spectral_classes.SpectralClass(name: str, teff_range: TeffRange, color: str)#
Bases:
objectContainer for main (OBAFGKM) spectral class Teff range and color.
Todo
Add source for colors (Wiki).
Todo
Expand docstring, document creator methods.
Methods
__init__(name, teff_range, color)from_parameters_table(params_table, name)from_table_row(row)is_in_range(teff_range)Return True if overlap, False otherwise.
Attributes
nameteff_rangecolorcolorsReturn mean of teff_range.
- is_in_range(teff_range)#
Return True if overlap, False otherwise.
- property midpoint#
Return mean of teff_range.