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
spectrumSpectrum1D or SpectrumList

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 the flux array (with units) of the returned spectrum.

Warning

The specutils package must be installed to use this function.