Metadata-Version: 2.1
Name: expecto
Version: 0.1.0
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
Platform: UNKNOWN
Requires-Python: >=3.5
Provides-Extra: all
Provides-Extra: test
Provides-Extra: docs
License-File: licenses/LICENSE.rst

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


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
    )

Want a plot of the spectrum?

.. code-block:: python

    # Plot the spectrum:
    import matplotlib.pyplot as plt
    from astropy.visualization import quantity_support

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

