pypeit.core.skyspec module

pypeit.core.skyspec.load_sky_spectrum(sky_file)[source]

Load a sky spectrum from the PypeIt data directory into an XSpectrum1D object.

Todo

Try to eliminate the XSpectrum1D dependancy

Parameters:

sky_file (str) – The filename (NO PATH) of the sky file to use.

Returns:

Sky spectrum

Return type:

OneSpec