Skip to main content

A python interface to the refractiveindex.info database.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

A python interface to refractiveindex.info

v0.0.0

This repo is based on the refractiveindex repo by Ivan Toftul, which itself is based on the refractiveindex.py module from the PyTMM project by Pavel Dmitriev. It provides a python interface to the refractiveindex.info database by Mikhail Polyanskiy.

Compared to other interfaces to the database, refractiveindex2 implements additional formulas required by some materials in the database and is rewritten to have a simpler class structure. It also includes extensive tests for all materials in the database.

Installation

pip install refractiveindex2

Usage

import refractiveindex2 as ri

SiO = ri.RefractiveIndexMaterial(shelf="main", book="SiO", page="Hass")

wavelength_um = 0.6  # [microns]

SiO.get_epsilon(wavelength_um=wavelength_um)
# (3.8633404437869827 + 0.003931076923076923j)

SiO.get_refractive_index(wavelength_um=wavelength_nm)
# (1.96553846)

SiO.get_extinction_coefficient(wavelength_um=wavelength_nm)
# (0.001)

Notes:

  • here the time dependence is assumed to be $\mathrm{e}^{-\mathrm{i} \omega t}$, so $\mathrm{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

Related projects

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

refractiveindex2-0.0.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

refractiveindex2-0.0.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file refractiveindex2-0.0.0.tar.gz.

File metadata

  • Download URL: refractiveindex2-0.0.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for refractiveindex2-0.0.0.tar.gz
Algorithm Hash digest
SHA256 13e3d795d02ace48ed94aa6e071e9cae8498da9fdc753bbcb4722149d4cb3951
MD5 a245c30187a7bd78ad47b761535e16ad
BLAKE2b-256 c5e58d4caa6ba31f528d880315983a8c0ada9049169e71aecb68a5d70b04459d

See more details on using hashes here.

File details

Details for the file refractiveindex2-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for refractiveindex2-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85e7c0a3abf66500868e0c2c21dc8e4820f0264446af84c26da97494e0283567
MD5 33982578c1d10ad3f2f5829ed3d12c74
BLAKE2b-256 775061d6f8ff9b0f2416ee82b7c8fad1525eb34578dc5c87cdf714aab8a3202f

See more details on using hashes here.

Supported by

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