species.data.spec_data package#
Submodules#
species.data.spec_data.add_spec_data module#
Module for empirical spectral libraries.
- species.data.spec_data.add_spec_data.add_spec_library(input_path: str, database: File, spec_library: str, sptypes: List[str] | None = None) None [source]#
Function for adding spectral libraries to the database.
- Parameters:
input_path (str) – Folder where the data is located.
database (h5py._hl.files.File) – Database.
spec_library (str) – Name of the spectral library (‘irtf’, ‘spex’, ‘kesseli+2017’, ‘bonnefoy+2014’, ‘allers+2013’).
sptypes (list(str), None) – Spectral types (‘F’, ‘G’, ‘K’, ‘M’, ‘L’, ‘T’). Currently only implemented for
spec_library='irtf'
.
- Returns:
NoneType
- Return type:
None
species.data.spec_data.spec_allers2013 module#
Module for adding young, M- and L-type dwarf spectra from Allers & Liu (2013) to the . These spectra are also available in the SpeX Prism Library Analysis Toolkit.
- species.data.spec_data.spec_allers2013.add_allers2013(input_path: str, database: File) None [source]#
Function for adding the spectra of young, M- and L-type dwarfs from Allers & Liu (2013) to the database.
- Parameters:
input_path (str) – Path of the data folder.
database (h5py._hl.files.File) – The HDF5 database.
- Returns:
None
- Return type:
NoneType
species.data.spec_data.spec_bonnefoy2014 module#
Module for adding young, M- and L-type dwarf spectra from Bonnefoy et al. (2014) to the database.
- species.data.spec_data.spec_bonnefoy2014.add_bonnefoy2014(input_path: str, database: File) None [source]#
Function for adding the SINFONI spectra of young, M- and L-type dwarfs from Bonnefoy et al. (2014) to the database.
- Parameters:
input_path (str) – Path of the data folder.
database (h5py._hl.files.File) – The HDF5 database.
- Returns:
None
- Return type:
NoneType
species.data.spec_data.spec_irtf module#
Module for adding the IRTF Spectral Library to the database.
- species.data.spec_data.spec_irtf.add_irtf(input_path: str, database: File, sptypes: List[str] | None = None) None [source]#
Function for adding the IRTF Spectral Library to the database.
- Parameters:
input_path (str) – Path of the data folder.
database (h5py._hl.files.File) – Database.
sptypes (list(str), None) – List with the spectral types (‘F’, ‘G’, ‘K’, ‘M’, ‘L’, ‘T’). All spectral types are included if set to
None
.
- Returns:
None
- Return type:
NoneType
species.data.spec_data.spec_kesseli2017 module#
Module for adding O5 through L3 SDSS stellar spectra from Kesseli et al. (2017) to the database.
- species.data.spec_data.spec_kesseli2017.add_kesseli2017(input_path: str, database: File) None [source]#
Function for adding the SDSS stellar spectra from Kesseli et al. (2017) to the database.
- Parameters:
input_path (str) – Path of the data folder.
database (h5py._hl.files.File) – The HDF5 database.
- Returns:
None
- Return type:
NoneType
species.data.spec_data.spec_spex module#
Module for adding the SpeX Prism Spectral Libraries to the database.
- species.data.spec_data.spec_spex.add_spex(input_path: str, database: File) None [source]#
Function for adding the SpeX Prism Spectral Library to the database.
- Parameters:
input_path (str) – Path of the data folder.
database (h5py._hl.files.File) – The HDF5 database.
- Returns:
None
- Return type:
NoneType
species.data.spec_data.spec_vega module#
Module for adding a flux-calibrated spectrum of Vega to the database.
- species.data.spec_data.spec_vega.add_vega(input_path, database)[source]#
Function for adding a flux-calibrated spectrum of Vega to the database. The latest spectrum (alpha_lyr_stis_011.fits) is downloaded from the STScI archive (see CALSPEC page for details).
- Parameters:
input_path (str) – Path of the data folder.
database (h5py._hl.files.File) – Database.
- Returns:
None
- Return type:
NoneType