11.4.23. astroML.datasets.fetch_vega_spectrum

astroML.datasets.fetch_vega_spectrum(data_home=None, download_if_missing=True)[source]

Loader for Vega reference spectrum

Parameters
fnamestr

filter name: must be one of ‘ugriz’

data_homeoptional, default=None

Specify another download and cache folder for the datasets. By default all scikit learn data is stored in ‘~/astroML_data’ subfolders.

download_if_missingoptional, default=True

If False, raise a IOError if the data is not locally available instead of trying to download the data from the source site.

Returns
datandarray

data[0] is the array of wavelength in angstroms data[1] is the array of fluxes in Jy (F_nu, not F_lambda)