Skip to main content

support for libraries of optical dispersion (refractive index) data files

Project description


The dispersion Python package provides a way of loading and evaluating files containing the dispersion of the refractive index of materials.

License: MIT DOI

Read the full documentation at


In optics, the phenomenon that the refractive index depends upon the frequency is called the phenomenon of dispersion, because it is the basis of the fact that light is "dispersed" by a prism into a spectrum.

Feynman Lectures in physics

Getting Started

Python is required to install and use the dispersion package. It is recommended to use a package manager such as pip to install the package. ::

pip install dispersion

now we need to tell the package where you are going to store the material data files. To do this we run the script that comes with the package ::


This script will ask you to type in the path to a folder where the database file structure will be installed. Secondly, you will be asked to name the database. Finally you will be asked if you would like to install the available modules.

Now that the database has been setup, we can start using the package. For examples and further documentation, see the related pages.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dispersion-1.0.5.tar.gz (29.6 kB view hashes)

Uploaded source

Built Distribution

dispersion-1.0.5-py3-none-any.whl (33.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page