{ "info": { "author": "Prasanth Nair", "author_email": "prasanthhn@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 6 - Mature", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Scientific/Engineering :: Astronomy", "Topic :: Scientific/Engineering :: Physics" ], "description": "Refractive index of air\n=======================\n\n.. _NIST online refractive index of air calculator: \n http://emtoolbox.nist.gov/Wavelength/Documentation.asp\n.. _pip: http://pypi.python.org/pypi/pip\n.. _easy_install: packages.python.org/distribute/easy_install.html\n\nCode for calculating refractive index of air, under varying atmospheric\nconditions, is provided in this module. Functions for conversion of\nwave length of light in vacuum to that in air, and vice-versa are also\ndefined.\n\nThe code is based on the documentation for the `NIST online refractive\nindex of air calculator`_.\n\nExamples\n--------\n\nRefractive index can be calculated using two different equations: one\ndue to Edl\u00e9n and another due to Ciddor.\n\n::\n\n >>> ref_index.ciddor(wave=633.0, t=20, p=101325, rh=20)\n 1.0002716285340578\n >>> ref_index.edlen(wave=633.0, t=20, p=101325, rh=20)\n 1.0002716291691649\n >>> ref_index.edlen(wave=633.0, t=20, p=101325, rh=80)\n 1.0002711197635226\n >>> ref_index.ciddor(wave=633.0, t=20, p=101325, rh=80)\n 1.0002711183472626\n >>> ref_index.edlen(wave=633.0, t=60, p=101325, rh=80)\n 1.0002339748542823\n >>> ref_index.ciddor(wave=633.0, t=60, p=101325, rh=80)\n 1.0002340241754055\n\nConversion of wave length of light in vacuum to that in air, and\nvice-versa. Both of these functions use the Ciddor equation, as\nimplemented in ``ciddor_ri()`` and ``ciddor()``.\n\n::\n\n >>> ref_index.vac2air(633.0)\n 632.82500476826874\n >>> ref_index.air2vac(632.82500476826874)\n 633.00000139949032\n\n >>> ref_index.vac2air(np.array([633.0, 550.0, 400.0]))\n array([ 632.82500477, 549.84723175, 399.88692724])\n >>> x = ref_index.vac2air(np.array([633.0, 550.0, 400.0]))\n >>> ref_index.air2vac(x)\n array([ 633.0000014 , 550.00000164, 400.00000243])\n\n\nNote that the reversibility of ``air2vac()`` is ~1e-5nm.\n\nDefault temperature is 15\u2218C, pressure is 101325Pa, relative humidity is\n0, and CO2 concentration is 450\u00b5mole/mole. All these can be changed.\n\n::\n\n >>> ref_index.vac2air(633.0, t=20, p=100000.0, rh=50)\n 632.83051710791892\n >>> ref_index.air2vac(632.83051710791892, t=20, p=100000.0, rh=50)\n 633.00000131884678\n\n\nFor more details please see the docstring for the module. Detailed\ndescription of the equations can be found in the `NIST documentation`__.\n\n__ `NIST online refractive index of air calculator`_\n\nInstallation\n------------\n\nThe module can be installed using `pip`_ and `easy_install`.\n\n::\n\n $ pip install ref_index\n\nor, \n\n::\n\n $ easy_install ref_index\n\n\nCredits\n-------\n\nAll equations used in this module come from the documentation for the\n`NIST online refractive index calculator`__, written by Jack A. Stone\nand Jay H. Zimmerman. \n\n__ `NIST online refractive index of air calculator`_\n\nPlease send comments and suggestions to the email id `prasanthhn` in\nthe ``gmail.com`` domain.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/phn/ref_index", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "ref_index", "package_url": "https://pypi.org/project/ref_index/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ref_index/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/phn/ref_index" }, "release_url": "https://pypi.org/project/ref_index/1.0/", "requires_dist": null, "requires_python": null, "summary": "Refractive index of air, and vacuum-air wave length conversion.", "version": "1.0" }, "last_serial": 798739, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "34895f73a62753991f4d7aff7ab5eaba", "sha256": "3a626749729bbd7c62af05f746362ba8597eaa02507c2e7e85e2f0eba9bc52f6" }, "downloads": -1, "filename": "ref_index-1.0.tar.gz", "has_sig": false, "md5_digest": "34895f73a62753991f4d7aff7ab5eaba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8969, "upload_time": "2011-10-12T08:23:18", "url": "https://files.pythonhosted.org/packages/1d/23/c273abe60832f09df65ea65586d7d439b2c6914ac1ff4a4670ef3ceed014/ref_index-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "34895f73a62753991f4d7aff7ab5eaba", "sha256": "3a626749729bbd7c62af05f746362ba8597eaa02507c2e7e85e2f0eba9bc52f6" }, "downloads": -1, "filename": "ref_index-1.0.tar.gz", "has_sig": false, "md5_digest": "34895f73a62753991f4d7aff7ab5eaba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8969, "upload_time": "2011-10-12T08:23:18", "url": "https://files.pythonhosted.org/packages/1d/23/c273abe60832f09df65ea65586d7d439b2c6914ac1ff4a4670ef3ceed014/ref_index-1.0.tar.gz" } ] }