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'
butpage='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
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
Built Distribution
File details
Details for the file refractiveindex-0.0.2.tar.gz
.
File metadata
- Download URL: refractiveindex-0.0.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.11.2 Linux/6.2.10-200.fc37.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05d3ce80862f49c75503090c2b0aec3a5af8fc92eeb50032a86c63de9a46c373 |
|
MD5 | a63cab3d95402ea31e8cb2672397902f |
|
BLAKE2b-256 | 103703965fc618eadd5ce46d20464825c931e088b41af870cec494a54679251e |
File details
Details for the file refractiveindex-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: refractiveindex-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.11.2 Linux/6.2.10-200.fc37.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e54e65f9975df760e5f655a7e99502344c1359edbef15e0d6220c0ed31e9a4cf |
|
MD5 | aff25dfa156d4ec30c3275d33f353a22 |
|
BLAKE2b-256 | 27118d54d758fe7323d4361a5d5bc2ebd624c60ee7d49edce9d2da232e774387 |