{ "info": { "author": "Nicolas Chotard", "author_email": "nchotard@in2p3.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Topic :: Scientific/Engineering :: Astronomy", "Topic :: Software Development :: Build Tools" ], "description": ".. image:: http://readthedocs.org/projects/extinctions/badge/?version=latest\n :target: http://extinctions.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n \n.. image:: https://landscape.io/github/nicolaschotard/extinctions/master/landscape.svg?style=flat\n :target: https://landscape.io/github/nicolaschotard/extinctions/master\n :alt: Code Health\n\n.. image:: https://travis-ci.org/nicolaschotard/extinctions.svg?branch=master\n :target: https://travis-ci.org/nicolaschotard/extinctions\n :alt: Travis CI build status (Linux)\n\n.. image:: https://codecov.io/gh/nicolaschotard/extinctions/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/nicolaschotard/extinctions\t \n\n.. inclusion-marker-do-not-remove\n\t \nextinctions\n-----------\n\nPython package including different extinction laws and dust maps. Useful to\n\n- get E(B-V) for a set of coordinates (or list of coordinates) from different\n \n - distant sources (IRSA, NED)\n - local maps (SFD98, Schlafly 2014, Planck 2013, Green 2015)\n\n- compute the ISM transmission for different extincion laws\n \n - CCM89: Cardelli, Clayton and Mathis (``_)\n - OD94: O'Donnell (``_)\n - FM98: Fitzpatrick & Massa (1998)\n - G08: Goobar (``_)\n \nInstallation\n------------\n\nTo install::\n\n git clone https://github.com/nicolaschotard/extinctions.git\n pip install extinctions/\n\nTo install in a local directory ``mypath``, use::\n\n pip install --prefix='mypath' extinctions/\n\nand do not forget to add it to your PYTHONPATH.\n\nTo upgrade to a new version (after a ``git pull`` or a local modification), use::\n\n pip install --upgrade (--prefix='mypath') extinctions/\n\nTo install a release version (no release version available yet)::\n\n pip install http://github.com/nicolaschotard/extinctions/archive/v0.1.tar.gz\n\nAlso works with the master::\n\n pip install (--upgrade) https://github.com/nicolaschotard/extinctions/archive/master.zip\n\nIn the future, release versions will be listed at this `location\n`_.\n\n\nDependencies\n------------\n\n`extinctions` has a few python dependencies listed in the `requirements\n`_ file. To install them all, use::\n\n pip install -r requirements.txt\n\nRequirements are:\n\n- numpy==1.11.2\n- scipy==0.17.1\n- matplotlib==1.5.1\n- seaborn==0.7.0\n- pyyaml==3.11\n- astropy==1.2.1\n- requests==2.10.0\n- astroquery==0.3.1\n- wget==2.2\n- healpy==1.9.1\n\n\n \nDust map setup\n--------------\n\nYou can automatically download the dust maps listed in the `maps.yaml\n`_ file using the script `get_maps.py`. It\nwill, by default, put them in $HOME/.extinction/maps, but other\nlocations are of course possible (option `--outdir`). If you choose to\nstore them in an other diretory, you must set a $MAPSDIR environment\nvariable pointing to it. Already existing maps in the output directory\nwill not be downloaded again.\n\nThe available dust maps are:\n\n- `SFD98 `_, full sky Healpy format\n- SFD98 `north `_ and `south `_ dust maps\n- `Planck `_\n- `Schlafly 2014 `_\n- `Green 2015 `_\n\n\nDownload the maps\n-----------------\n\nTo download the extinction maps listed above, use the script\n`get_maps.py`. The following options are available::\n\n get_maps.py -h\n usage: get_maps.py [-h] [--outdir OUTDIR] [--update] [--list]\n [--select SELECT] [--exclude EXCLUDE]\n\n optional arguments:\n -h, --help show this help message and exit\n --outdir OUTDIR Output directory in where to put the dust maps\n --update Update the maps directory in case of changes of maps.yaml\n --list List of available maps and exit\n --select SELECT Select maps to download (coma separated)\n --exclude EXCLUDE Exclude map(s) (coma separated).If the select option is\n used, the exclude option will be ignored.\n\n\nUsage\n-----\n\nGet E(B-V)\n``````````\n\nHere is an example of how to get the value of E(B-V) for a set of\ncoordinates (RA,DEC):\n\n.. code:: python\n\t \n In [1]: ra, dec = 340.83, -9.59 # could also be arrays or list of ra/dec\n In [2]: from extinctions import reddening\n In [3]: red = reddening.Reddening(ra, dec) # ra dec can also be lists of coordinates\n INFO: Loading the maps from local directory /home/chotard/.extinction/maps/\n - green is loaded\n - schlafly is loaded\n - sfd is loaded\n - planck is loaded\n\nYou can then get E(B-V) from different sources:\n\n.. code:: python\n\t \n # from the local maps\n In [4]: red.query_local_map(dustmap='sfd')\n Out[4]: 0.047723956233310674\n In [5]: red.query_local_map(dustmap='schlafly')\n Out[5]: 0.062566755984547445\n In [6]: red.query_local_map(dustmap='planck')\n Out[6]: 0.052058338535565914\n In [7]: red.query_local_map(dustmap='green')\n Out[7]: 0.035786284169101318\n\n\n # from the SFD98 north/south maps using `sncosmo`\n In [8]: red.from_sncosmo()\n Out[8]: array([ 0.0473752])\n\n # Using astroquery\n In [9]: red.from_astroquery()\n Downloading http://irsa.ipac.caltech.edu//workspace/TMP_XG1Joz_30445/DUST/340.8300_-9.5900.v0001/extinction.tbl\n |==============================================================================================| 4.3k/4.3k (100.00%) 0s\n Out[9]: [0.047377326565143825]\n\n\nMake some plots\n```````````````\n\nTo have a look at the different extinction laws amd dust maps, you can\nuse the script `extinction_plots.py`.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nicolaschotard/extinctions", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "extinctions", "package_url": "https://pypi.org/project/extinctions/", "platform": "", "project_url": "https://pypi.org/project/extinctions/", "project_urls": { "Homepage": "https://github.com/nicolaschotard/extinctions" }, "release_url": "https://pypi.org/project/extinctions/0.1.11/", "requires_dist": null, "requires_python": "", "summary": "Extinction laws, maps and corrections", "version": "0.1.11" }, "last_serial": 3263011, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "7c85191d08228810663a1e562b729129", "sha256": "1b7605e7515181ab5c6db3d09499e335083bc4e7adde53c8829242f281ed0da4" }, "downloads": -1, "filename": "extinctions-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7c85191d08228810663a1e562b729129", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22748, "upload_time": "2017-01-18T13:29:42", "url": "https://files.pythonhosted.org/packages/45/4f/f2f3d11c96d856a380068f2ffa39179ebe400a8ca2e3000184e013feaaa1/extinctions-0.1.1.tar.gz" } ], "0.1.10": [ { "comment_text": "", "digests": { "md5": "0e8cba22eec3f574b8d284d7179d501a", "sha256": "50bf13ae0d1b6d6f0dba4d8a4214d0e494558e1a41dd8fac344cfd2470690e60" }, "downloads": -1, "filename": "extinctions-0.1.10.tar.gz", "has_sig": false, "md5_digest": "0e8cba22eec3f574b8d284d7179d501a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23487, "upload_time": "2017-06-21T08:30:55", "url": "https://files.pythonhosted.org/packages/6c/43/2ba2b858a038422dddbac7c6805ccc85e45b0b523b5d69ad3799156146d8/extinctions-0.1.10.tar.gz" } ], "0.1.11": [ { "comment_text": "", "digests": { "md5": "251e5092c2b2e54f17a9e1d512e14475", "sha256": "ebe44def7a85202dfe7a74db64aa150f31f029df26d6446a7d8e4daca362b953" }, "downloads": -1, "filename": "extinctions-0.1.11.tar.gz", "has_sig": false, "md5_digest": "251e5092c2b2e54f17a9e1d512e14475", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23757, "upload_time": "2017-08-07T15:32:37", "url": "https://files.pythonhosted.org/packages/fc/d5/45cc83a055084adb51e072d9b1fee0f36f3f9921ed28c75f4292926c70d0/extinctions-0.1.11.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "5bf7eea4856376cbfc829c5c82740843", "sha256": "eb98a59cc63c1049b943e56b791d3a7567e09a776d2a351ce01f539562a8ef55" }, "downloads": -1, "filename": "extinctions-0.1.2.tar.gz", "has_sig": false, "md5_digest": "5bf7eea4856376cbfc829c5c82740843", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22810, "upload_time": "2017-01-18T14:10:39", "url": "https://files.pythonhosted.org/packages/71/73/900555e33eaa222a8ae81a8b6c407a3bcb0903fc1bb8ebb158c8926ec406/extinctions-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "9f6fbc7ba8b41f08f9247e4ac824308d", "sha256": "0b8c18de3b80cac6a9f00fd47c79b56ee0d85eb9d3947906f71fd62dba31ffcc" }, "downloads": -1, "filename": "extinctions-0.1.3.tar.gz", "has_sig": false, "md5_digest": "9f6fbc7ba8b41f08f9247e4ac824308d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22966, "upload_time": "2017-01-18T15:28:08", "url": "https://files.pythonhosted.org/packages/f4/4d/582ca3e2d24aa843ed02ec0a944fb7ff08367097389daeb92b4f49062a41/extinctions-0.1.3.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "ec4cd3e69e5896fab2dbac8bf19e091b", "sha256": "7aeb972eb10d744f62af08592e81526034b6c89249802c23a6993ea45246cdbe" }, "downloads": -1, "filename": "extinctions-0.1.7.tar.gz", "has_sig": false, "md5_digest": "ec4cd3e69e5896fab2dbac8bf19e091b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23118, "upload_time": "2017-01-18T16:13:10", "url": "https://files.pythonhosted.org/packages/82/8e/fb30fc7bae5520fbf31dd34abfd8a46cd8379ce791ee9c03d9294ed372a3/extinctions-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "654535229afbd413208617524cb66b58", "sha256": "df37ae3d19a970371e2192b0570f333f6009777be19d850ffec5185c2573cbd7" }, "downloads": -1, "filename": "extinctions-0.1.8.tar.gz", "has_sig": false, "md5_digest": "654535229afbd413208617524cb66b58", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23249, "upload_time": "2017-01-19T13:53:34", "url": "https://files.pythonhosted.org/packages/c0/3e/d9b4cb0abe21ab06a2abb744e625f019ffd7c548977b9b1bdaa22f38ed33/extinctions-0.1.8.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "f78627b736ad7c5b90962c218e2dff78", "sha256": "bfffff27f6e5379dd9f72ded4039c2cb6568447937ac66ff100f45df0606e473" }, "downloads": -1, "filename": "extinctions-0.1.9.tar.gz", "has_sig": false, "md5_digest": "f78627b736ad7c5b90962c218e2dff78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23365, "upload_time": "2017-01-19T15:43:33", "url": "https://files.pythonhosted.org/packages/69/82/fc41128140f304dddfea69fe907791c50ff8dd5bbad530223e314625b56e/extinctions-0.1.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "251e5092c2b2e54f17a9e1d512e14475", "sha256": "ebe44def7a85202dfe7a74db64aa150f31f029df26d6446a7d8e4daca362b953" }, "downloads": -1, "filename": "extinctions-0.1.11.tar.gz", "has_sig": false, "md5_digest": "251e5092c2b2e54f17a9e1d512e14475", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23757, "upload_time": "2017-08-07T15:32:37", "url": "https://files.pythonhosted.org/packages/fc/d5/45cc83a055084adb51e072d9b1fee0f36f3f9921ed28c75f4292926c70d0/extinctions-0.1.11.tar.gz" } ] }