lezargus.data._make.make_standard_spectra module#
Make functions to create the LezargusSpectrum objects for star spectra.
This module is just the part of the data making procedure to make the star spectra objects. We only support a limited selection of stars because we also load other metadata from the tables.
- lezargus.data._make.make_standard_spectra.load_spectrum_header_file() hint.Table [source]#
Load a header spectrum file to a standard table format to use.
The spectrum header file is a single file with a set name.
- Parameters:
None
- Returns:
header_table – The Astropy table of the header information for all star spectrums.
- Return type:
Table
- lezargus.data._make.make_standard_spectra.load_spectrum_mrt_file(basename: str) hint.Table [source]#
Load a AAS MRT spectrum file to a standard table format to use.
- Parameters:
basename (str) – The MRT spectrum filename to load, paths are handled automatically.
- Returns:
spectrum_table – The Astropy table of the spectrum object.
- Return type:
Table
- lezargus.data._make.make_standard_spectra.make_standard_spectrum(basename: str) hint.LezargusSpectrum [source]#
Load a spectrum data file and make a LezargusSpectrum class from it.
- Parameters:
basename (str) – The basename of the internal data file of the spectrum. The paths are handled automatically.
- Returns:
spectrum – The spectrum class.
- Return type: