Metadata-Version: 2.1
Name: numba_extinction
Version: 0.1
Summary: extinction.py rewritten almost from scratch using Numba.
Home-page: https://github.com/G-Francio/numba_extinction/
Author: Francesco Guarneri
Author-email: fguarneri@hs.uni-hamburg.de
License: BSD-3-Clause
Project-URL: Bug Tracker, https://github.com/G-Francio/numba_extinction/issues
Keywords: astronomy,science,python
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Astronomy
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy<2.0
Requires-Dist: numba
Requires-Dist: astropy
Requires-Dist: nbsphinx
Requires-Dist: nbsphinx-link
Requires-Dist: sphinx-rtd-theme

# numba_extinction
Numba'd version of the [`extinction`](https://github.com/kbarbary/extinction) package. Most of this was developed before finding the much-more-up-to-date [`dust_extinction`](https://github.com/karllark/dust_extinction).

The exctinction curves reproduce exactly (up to some e-15 due to float math) the curves produced by `extinction`. In addition, an equivalent implementation of the UV to IR extinction curve by [Gordon et al. 2023](https://ui.adsabs.harvard.edu/abs/2023ApJ...950...86G/abstract) was implemented, and checked against `dust_extinction` for consistency.

I encourage you to check both packages out! `dust_exctinction` in particular is much more fleshed out and complete than the this package. Eventually I might try to implement all of the curves available there, but that is if I'll have time in the future.

### Install instruction
- clone the repository: `git clone git@github.com:G-Francio/numba_exctinction.git`
- install as local package: `pip install -e .`

#### Requirements
Optional packages are only used for consistency checks and visualisation purposes.
- numba
- astropy
- scipy
- matplotlib [optional]
- extinction [optional]
- dust_exctinction [optional]

### Links:
- [extinction](https://github.com/kbarbary/extinction)
- [dust_extinction](https://github.com/karllark/dust_extinction)

MIT License

Copyright (c) 2024 Francesco Guarneri

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
