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.1

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.1.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.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for refractiveindex2-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6147552e77fd6ae78f842b77e891e6165eceab57e514b536bbe3480b3af07284
MD5 8d596a19ee89ee63eed05c68a82b3677
BLAKE2b-256 393449fcfa5d9c5e9948d09f29ed2dce459bd4eb083715c76b19b107aa8f4943

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for refractiveindex2-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fc3146be69d3578334b451a6d4ca3b527863a5a40fd3b44c3af3e66bbe242e16
MD5 10610058e9ad9a956afb4b283aa7c38b
BLAKE2b-256 79c7cec667c0de10e49c10d4a64d6b53f005a1850b17c4aad7e831020346d01e

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