SQLite wrapper for the refractiveindex.info database.
Switch branches/tags
Nothing to show
Clone or download
Latest commit fe8c211 Oct 2, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
refractivesqlite Implement formula 4,7,8,9 Oct 2, 2017
ER.PNG Add files via upload Jun 23, 2016
README.md Update README.md Oct 2, 2017
Tutorial.ipynb Rename tutorial.ipynb to Tutorial.ipynb Jun 27, 2016

README.md

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

2017-10-02


Contributors

tnorth (Implementation of formulas 4,7,8, and 9)