get_spectrum#
- expecto.get_spectrum(T_eff, log_g, Z=0, alpha=0, cache=False, vacuum=True)[source]#
Download a PHOENIX model atmosphere spectrum for a star with given properties.
- Parameters:
T_eff (float) – Effective temperature. The nearest grid-point will be selected.
log_g (float) – Surface gravity. The nearest grid-point will be selected.
Z (float) – Metallicity. The nearest grid-point will be selected.
alpha (float) – Alpha element abundance. The nearest grid-point will be selected.
cache (bool) – Cache the result to the local astropy cache. Default is False.
vacuum (bool) – If True, return wavelengths in a vacuum, otherwise return for air.
- Returns:
spectrum – Model spectrum
- Return type: