load_onedstds¶
- specreduce.calibration_data.load_onedstds(dataset='snfactory', specfile='EG131.dat', cache=True, show_progress=False)[source]¶
This is a convenience function for loading a standard star spectrum from the ‘onedstds’ dataset in the
specreduce_data
package. They will be downloaded from the repository on GitHub and cached by default.- Parameters:
- datasetstr (default = “snfactory”)
Standard star spectrum database. Valid options are described in Spectrophotometric Standards.
- specfilestr (default = “EG131.dat”)
Filename of the standard star spectrum.
- cachebool (default = True)
Enable caching of downloaded data.
- show_progressbool (default = False)
Show download progress bar if data is downloaded.
- Returns:
- spectrumNone or
Spectrum1D
If the spectrum can be loaded, return it as a
Spectrum1D
. Otherwise return None. The spectral_axis units are Å and the flux units are milli-Janskys.
- spectrumNone or