numba-extinction


Namenumba-extinction JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/G-Francio/numba_extinction
Summaryextinction.py rewritten and extended using Numba.
upload_time2024-09-26 06:56:44
maintainerNone
docs_urlNone
authorFrancesco Guarneri
requires_python>=3.9
licenseMIT License
keywords astronomy science python
VCS
bugtrack_url
requirements numpy numba astropy nbsphinx nbsphinx-link
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/G-Francio/numba_extinction",
    "name": "numba-extinction",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "astronomy, science, python",
    "author": "Francesco Guarneri",
    "author_email": "fguarneri@hs.uni-hamburg.de",
    "download_url": "https://files.pythonhosted.org/packages/9e/de/505f89fa3263758090501a6f2f149f5d6533b70e8aeb08c16674e4a11c95/numba_extinction-0.1.1.tar.gz",
    "platform": null,
    "description": "# numba_extinction\nNumba'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).\n\nThe 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.\n\nI 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.\n\n### Install instruction\n- clone the repository: `git clone git@github.com:G-Francio/numba_exctinction.git`\n- install as local package: `pip install -e .`\n\n#### Requirements\nOptional packages are only used for consistency checks and visualisation purposes.\n- numba\n- astropy\n- scipy\n- matplotlib [optional]\n- extinction [optional]\n- dust_exctinction [optional]\n\n### Links:\n- [extinction](https://github.com/kbarbary/extinction)\n- [dust_extinction](https://github.com/karllark/dust_extinction)\n\nMIT License\n\nCopyright (c) 2024 Francesco Guarneri\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "extinction.py rewritten and extended using Numba.",
    "version": "0.1.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/G-Francio/numba_extinction/issues",
        "Homepage": "https://github.com/G-Francio/numba_extinction"
    },
    "split_keywords": [
        "astronomy",
        " science",
        " python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de917126234320ef27135ac2e2d9fcce1d277a79534fd3f0fa4c444d681b4d7a",
                "md5": "f34739e73996dab2da6df73ac843c828",
                "sha256": "b88cc9ed6d5ac4049af63781125dd0ea97526741763afec91aa704def700e626"
            },
            "downloads": -1,
            "filename": "numba_extinction-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f34739e73996dab2da6df73ac843c828",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 16389,
            "upload_time": "2024-09-26T06:56:42",
            "upload_time_iso_8601": "2024-09-26T06:56:42.725535Z",
            "url": "https://files.pythonhosted.org/packages/de/91/7126234320ef27135ac2e2d9fcce1d277a79534fd3f0fa4c444d681b4d7a/numba_extinction-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9ede505f89fa3263758090501a6f2f149f5d6533b70e8aeb08c16674e4a11c95",
                "md5": "a93cf6848af5d0d80cc787ad46b742ea",
                "sha256": "cbb5551b69481328690ee7bbf171d14b1979a7f6880bb6ea493aadb497cb122f"
            },
            "downloads": -1,
            "filename": "numba_extinction-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "a93cf6848af5d0d80cc787ad46b742ea",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 12527,
            "upload_time": "2024-09-26T06:56:44",
            "upload_time_iso_8601": "2024-09-26T06:56:44.112422Z",
            "url": "https://files.pythonhosted.org/packages/9e/de/505f89fa3263758090501a6f2f149f5d6533b70e8aeb08c16674e4a11c95/numba_extinction-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-26 06:56:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "G-Francio",
    "github_project": "numba_extinction",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "numba",
            "specs": []
        },
        {
            "name": "astropy",
            "specs": []
        },
        {
            "name": "nbsphinx",
            "specs": []
        },
        {
            "name": "nbsphinx-link",
            "specs": []
        }
    ],
    "lcname": "numba-extinction"
}
        
Elapsed time: 0.58423s