Metadata-Version: 2.1
Name: speXtra
Version: 0.1.dev1
Summary: Tool to  manage and manipulate  astronomical spectra
Home-page: https://github.com/miguelverdugo/speXtra
Author: Miguel Verdugo
Author-email: mverduol@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Astronomy
Requires-Dist: numpy
Requires-Dist: astropy (>=3.1)
Requires-Dist: synphot (>=0.2.0)
Requires-Dist: matplotlib (>1.5.0)
Requires-Dist: tynt
Requires-Dist: pyyaml

=======
SpeXtra
=======

.. image:: https://travis-ci.org/miguelverdugo/speXtra.svg?branch=master
    :target: https://travis-ci.org/github/miguelverdugo/speXtra
    :alt: Tests Status

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


A python tool to manage and manipulate astronomical spectra



Description
===========

``speXtra`` is a python tool to download, load, display and manipulate spectra of astronomical sources.
It has developed to provide spectral sources to ScopeSim_ but it may be helpful for other purposes too.

.. _ScopeSim: https://scopesim.readthedocs.io/en/latest/?badge=latest

speXtra stands in the shoulder of giants: synphot_ and astropy_

.. _synphot: https://synphot.readthedocs.io/en/latest/

.. _astropy: https://www.astropy.org/

To install ``spextra`` please clone the repository

.. code-block:: bash

    git clone https://github.com/miguelverdugo/speXtra
    cd speXtra
    pip install -e .

Soon a PyPi version will be available

Functionalities
===============

``speXtra`` is able to:

- Download spectra from a database and return it in format compatible with ``synphot`` format

.. code-block:: python

    from spextra import Spextrum
    sp = Spextrum("kc96/s0")

and it will load the S0 galaxy template of the Kinney-Calzetti spectral library. To quickly
plot the resulting spectra, simply type

.. code-block:: python

    sp.plot()

.. image:: ./docs/_static/images/kc96_S0.png
    :width: 40pt








