species.data.companion_data package¶
Submodules¶
species.data.companion_data.companion_spectra module¶
Module for getting spectra of directly imaged planets and brown dwarfs.
- species.data.companion_data.companion_spectra.companion_spectra(input_path: Path, comp_name: str, verbose: bool = True) dict[str, tuple[str, str | None, float]] | None[source]¶
Function for extracting a dictionary with the spectra of directly imaged planets and brown dwarfs. These data can be added to the database with the
add_companion()method ofDatabase.- Parameters:
input_path (Path) – Path of the data folder.
comp_name (str) – Companion name for which the spectra will be returned.
verbose (bool) – Print details on the companion data that are added to the database.
- Returns:
Dictionary with the spectra of
comp_name. ANonewill be returned if there are not any spectra available. The dictionary includes the spectrum, (optional) covariances, spectral resolution, and filename.- Return type:
dict, None