Skip to main content

No project description provided

Project description

Easy Python interface to RefractiveIndex database

The original database is here https://github.com/polyanskiy/refractiveindex.info-database

Database files parsing was made with a modified version of refractiveIndex.py from PyTMM project by Pavel Dmitriev.

Installation

pip install refractiveindex

Usage

from refractiveindex import RefractiveIndexMaterial

SiO = RefractiveIndexMaterial(shelf='main', book='SiO', page='Hass')

wavelength_nm = 600  # [nm]

SiO.get_epsilon(wavelength_nm)
# (3.8633404437869827+0.003931076923076923j)

SiO.get_refractive_index(wavelength_nm)
# (1.96553846)

SiO.get_extinction_coefficient(wavelength_nm)
# (0.001)

Note: here the time dependence is assumed to be $\mathrm{e}^{-\mathrm{i} \omega t}$, so $\operatorname{Im}\varepsilon > 0$ is responsible for the losses.

How to get material page names

You can find the proper “page” name by hovering your cursor on the link in the Data section

How to get page name

Or you can look up folders in this repository

https://github.com/polyanskiy/refractiveindex.info-database

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

refractiveindex-0.0.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

refractiveindex-0.0.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file refractiveindex-0.0.1.tar.gz.

File metadata

  • Download URL: refractiveindex-0.0.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.11.2 Linux/6.2.9-200.fc37.x86_64

File hashes

Hashes for refractiveindex-0.0.1.tar.gz
Algorithm Hash digest
SHA256 21e34cbbcc9f6c3f84af0b425bb06fd57814e1098afc0f1b69e9d2017c7b99bd
MD5 5648030096838b94d09512d7284ad1e8
BLAKE2b-256 05098000d15d47b8a8a70c1c608ac98bc7ac8196d29cf1497ed28ea7a56b2d15

See more details on using hashes here.

File details

Details for the file refractiveindex-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: refractiveindex-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.11.2 Linux/6.2.9-200.fc37.x86_64

File hashes

Hashes for refractiveindex-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 48d4bbd5efcf042a77d4e71c3b547c7b00ff13e1a231f42eaac42e246e836de6
MD5 56e26e5fed1974a4f54886f6e4be6246
BLAKE2b-256 3e7fb0d4e1b6f4878ebfac9cd8253916da428b6495d81881581eb9c3817ffd11

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page