Metadata-Version: 2.1
Name: dustapprox
Version: 0.1
Summary: A tool for computing extinction coefficients in a quick and dirty manner
Home-page: https://github.com/mfouesneau/dustapprox
Author: Morgan Fouesneau
Author-email: 
License: UNKNOWN
Platform: UNKNOWN
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: BSD License
Classifier: Topic :: Scientific/Engineering :: Astronomy
Requires-Python: >=3.6
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: pyphot
Requires-Dist: pyyaml
Requires-Dist: pandas
Requires-Dist: astropy
Requires-Dist: scikit-learn
Requires-Dist: tqdm

dustapprox -- A tool for computing approximative extinction coefficients
=============================================================================

This is a set of tools to compute photometric extinction coefficients in a *quick and dirty* way.

full documentation at: http://mfouesneau.github.io/dustapprox/


Quick Start
-----------

.. code-block:: python

  import pandas as pd
  from dustapprox import models
  from dustapprox.literature import edr3
  import pylab as plt

  # get Gaia models
  lib = models.PrecomputedModel()
  r = lib.find(passband='Gaia')[0]  # taking the first one
  model = lib.load_model(r, passband='GAIA_GAIA3.G')

  # get some data
  data = pd.read_csv('models/precomputed/kurucs_gaiaedr3_small_a0_grid.csv')
  df = data[(data['passband'] == 'GAIA_GAIA3.G') & (data['A0'] > 0)]

  # values
  kg_pred = model.predict(df)

Installation
------------
* Installation from PyPI

.. code::

  pip install git+https://github.com/mfouesneau/gdr3_extinction

* Manual installation

download the repository and run the setup

.. code::

  git clone https://github.com/mfouesneau/gdr3_extinction
  python setup.py install

Contributors
------------

- Morgan Fouesneau (@mfouesneau)
- René Andrae
- Rosanna Sordo
- Thavisha Dharmawardena


Contributing
------------

Please open a new issue or new pull request for bugs, feedback, or new features
you would like to see. If there is an issue you would like to work on, please
leave a comment, and we will be happy to assist. New contributions and
contributors are very welcome!


