load_spectral_data¶
-
skypy.galaxy.spectrum.load_spectral_data(name)[source] [edit on github]¶ Load spectral data from a known source or a local file.
If the given name refers to a known source, the associated spectral data is constructed by its designated loader. If no source with the given name is found, it is assumed to be a filename.
- Parameters
- namestr or list of str
The name of the spectral data to load, or a list of multiple names.
- Returns
- spectrum
Spectrum1DorSpectrumList The spectral data. The wavelength or frequency column is the
spectral_axis(with units) of the returned spectrum, and the spectral column or columns are thefluxarray (with units) of the returned spectrum.
- spectrum
Warning
The
specutilspackage must be installed to use this function.