Metadata-Version: 2.1
Name: expecto
Version: 0.1.1
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

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)


