Metadata-Version: 2.2
Name: expecto
Version: 0.1.4
Summary: PHOENIX model spectrum retriever
Home-page: https://github.com/bmorris3/expecto
Author: Brett M. Morris
Author-email: morrisbrettm@gmail.com
License: BSD 3-Clause
Requires-Python: >=3.5
License-File: licenses/LICENSE.rst
Requires-Dist: astropy
Requires-Dist: specutils
Requires-Dist: numpy
Provides-Extra: all
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-doctestplus; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Requires-Dist: pytest-remotedata; extra == "test"
Provides-Extra: docs
Requires-Dist: sphinx; extra == "docs"
Requires-Dist: sphinx-automodapi; extra == "docs"
Requires-Dist: matplotlib; extra == "docs"
Requires-Dist: sphinx-book-theme>=0.3.3; extra == "docs"
Requires-Dist: numpydoc; extra == "docs"

=======
expecto
=======

.. image:: http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat
    :target: http://www.astropy.org/

.. image:: https://github.com/bmorris3/expecto/workflows/CI%20Tests/badge.svg
    :target: https://github.com/bmorris3/expecto/actions

.. image:: https://readthedocs.org/projects/expecto/badge/?version=latest
    :target: https://expecto.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

Pure Python package for retrieving 
`PHOENIX model stellar spectra <https://phoenix.astro.physik.uni-goettingen.de/?>`_ 
via FTP. Spectra are returned as 
`specutils.Spectrum1D <https://specutils.readthedocs.io/en/stable/api/specutils.Spectrum1D.html#specutils.Spectrum1D>`_ 
objects.


Basic Usage
^^^^^^^^^^^

Let's get a Sun-like spectrum:

.. code-block:: python

    from expecto import get_spectrum

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

and let's plot that spectrum:

.. code-block:: python

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

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