load_onedstds¶
- specreduce.calibration_data.load_onedstds(dataset: str = 'snfactory', specfile: str = 'EG131.dat', cache: bool | Literal['update'] = True, show_progress: bool = False) Spectrum | None[source]¶
This is a convenience function for loading a standard star spectrum from the ‘onedstds’ dataset in the
specreduce_datapackage. They will be downloaded from the repository on GitHub and cached by default.- Parameters:
- datasetStandard star spectrum database. Valid options are described
- specfileFilename of the standard star spectrum.
- cacheEnable caching of downloaded data.
- show_progressShow download progress bar if data is downloaded.
- Returns:
- spectrumIf the spectrum can be loaded, return it as a
Spectrum. Otherwise return None. The spectral_axis units are Å and the flux units are milli-Janskys.
- spectrumIf the spectrum can be loaded, return it as a