Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.14 KB

README.rst

File metadata and controls

43 lines (29 loc) · 1.14 KB

expecto

http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat Documentation Status

Pure Python package for retrieving PHOENIX model stellar spectra via FTP. Spectra are returned as specutils.Spectrum1D objects.

Basic Usage

Let's get a Sun-like spectrum:

from expecto import get_spectrum

spectrum = get_spectrum(
    T_eff=5800, log_g=4.5, cache=False
)

and let's plot that spectrum:

import matplotlib.pyplot as plt
from astropy.visualization import quantity_support

with quantity_support():
    plt.plot(spectrum.wavelength, spectrum.flux)