Skip to main content

No project description provided

Project description

Easy Python interface to RefractiveIndex database

The original database
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)

Notes:

  • here the time dependence is assumed to be $\mathrm{e}^{-\mathrm{i} \omega t}$, so $\operatorname{Im}\varepsilon > 0$ is responsible for the losses.
  • if there is a space in the name, one should write underscore instead of it, i.e. not page='Rodriguez-de Marcos' but page='Rodriguez-de_Marcos'.

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

Simular projects for Julia

Julia interface to refractiveindex.info database
https://github.com/stillyslalom/RefractiveIndex.jl

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.3.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

refractiveindex-0.0.3-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: refractiveindex-0.0.3.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.5 Darwin/22.6.0

File hashes

Hashes for refractiveindex-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7b3c64823b21967d0e0d26885ab63ab09b5abfc99e6f2fcfcd0186e679b2e3e6
MD5 353cedadb3e34165edcb53e1cf12f6c3
BLAKE2b-256 e63d2cbe966487403636b808947956c3f10b5048ff9065163ffc7724d78b42e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: refractiveindex-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.5 Darwin/22.6.0

File hashes

Hashes for refractiveindex-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9dc8cd184be577b60e031999896f1ffb4de11c1e04992dc6e226c59755216dac
MD5 fd37783b589d008f42fc63d3cea1388d
BLAKE2b-256 ce4b73f225d7c825169ebb8aaf70e1f3d3a9b89ed107423bb706b77ae800578b

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