Metadata-Version: 2.4
Name: dustapprox
Version: 0.2.0
Summary: A tool for computing extinction coefficients in a quick and dirty manner
Author: Morgan Fouesneau, René Andrae, Rosanna Sordo, Thavisha Dharmawardena
License: BSD 3-Clause License
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: astropy>=6.0.0
Requires-Dist: dust-extinction>=1.6
Requires-Dist: ipywidgets>=8.1.7
Requires-Dist: joblib>=1.5.2
Requires-Dist: matplotlib>=3.10.7
Requires-Dist: numpy>=2.0.0
Requires-Dist: pandas>=2.3.3
Requires-Dist: pyphot>=2.0.0
Requires-Dist: pyyaml>=6.0.3
Requires-Dist: scikit-learn>=1.7.2
Requires-Dist: scipy>=1.14.0
Requires-Dist: snakemake>=7.32.4
Requires-Dist: tqdm>=4.67.1
Provides-Extra: ci
Requires-Dist: ruff; extra == "ci"
Requires-Dist: pytest>=7; extra == "ci"
Requires-Dist: pytest-doctestplus; extra == "ci"
Requires-Dist: codecov; extra == "ci"
Requires-Dist: pytest-cov; extra == "ci"
Requires-Dist: prek; extra == "ci"
Provides-Extra: docs
Requires-Dist: sphinx>=5.3; extra == "docs"
Requires-Dist: sphinx-book-theme>=0.3.3; extra == "docs"
Requires-Dist: sphinx-automodapi>=0.14; extra == "docs"
Requires-Dist: sphinx_copybutton>=0.5; extra == "docs"
Requires-Dist: sphinx-mdinclude>=0.6; extra == "docs"
Requires-Dist: sphinxcontrib-htmlhelp>=2.1.0; extra == "docs"
Requires-Dist: sphinxcontrib-serializinghtml>=2.0.0; extra == "docs"
Requires-Dist: sphinx-tabs>=3.0; extra == "docs"
Requires-Dist: myst-nb>=0.16.0; extra == "docs"
Requires-Dist: sphinx-design>=0.6; extra == "docs"
Requires-Dist: IPython>=8.0; extra == "docs"
Requires-Dist: matplotlib; extra == "docs"
Requires-Dist: numpydoc; extra == "docs"
Requires-Dist: sphinx-datatables>=0.3.1; extra == "docs"
Dynamic: license-file

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

.. image:: https://img.shields.io/pypi/v/dustapprox.svg
    :target: https://pypi.org/project/dustapprox/

.. image:: https://img.shields.io/badge/python-3.10,_3.11,_3.12,_3.13,_3.14-blue.svg

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/

see recent changes at: `What's new <http://mfouesneau.github.io/dustapprox/whats_new.html>`_


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/kurucz_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 dustapprox

* Installation from pip+github

.. code::

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

* Manual installation

download the repository and run the setup

.. code::

  git clone https://github.com/mfouesneau/dustapprox
  python -m pip 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!

see `contributing guide <http://mfouesneau.github.io/dustapprox/contributing.html>`_ for more information.
