lyd1ng / refractiveindex.info-sqlite

SQLite wrapper for the refractiveindex.info database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

refractiveindex.info-sqlite

Python 3 + SQLite wrapper for the refractiveindex.info database by Mikhail Polyanskiy.

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

Features

  • Create SQLite database from refractiveindex yml folder.
  • Create SQLite database from refractiveindex.zip url.
  • Search database pages by approximate or exact terms.
  • Search material data (refractiveindex, extinctioncoefficient) by intervals.
  • Execute custom SQL queries on the database.
  • Export material data (refractiveindex, extinctioncoefficient) to numpy arrays or csv files.
  • Get data (refractiveindex, extinctioncoefficient) at specified wavelengths.

Usage

Just copy the refractivesqlite folder to your project, and you are ready. For more information, see the Tutorial notebook

Dependencies

  • python 3
  • numpy
  • scipy
  • pyyaml

Disclaimer

Same as the refractiveindex.info webpage: NO GUARANTEE OF ACCURACY - Use on your own risk.

Version

2021-01-14


Contributors

  • tnorth (Implementation of formulas 4,7,8, and 9)
  • p-tillmann (Update database format)
  • lyd1ng (PEP 8 compliant code and docstrings)

About

SQLite wrapper for the refractiveindex.info database.


Languages

Language:Python 53.5%Language:Jupyter Notebook 46.5%