Skip to content
Transfer Matrix Method implemetation & RefractiveIndex.info database browser
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
PyTMM bump version, add custom path to tests Feb 17, 2019
.gitattributes initial commit Jul 16, 2015
.gitignore
COPYING
README.md
setup.py

README.md

PyTMM

Transfer Matrix Method implementation & RefractiveIndex.info database (2015-05-24) browser

Documentation

Extended documentation can be found at kitchenknif.github.io/PyTMM

Installation & Basic Usage

By default the RefractiveIndex module thinks that it is installed side-by-side with the RefractiveIndex.info database:

.
+-- _PyTMM
|   +-- refractiveIndex.py
+-- RefractiveIndex
|   +-- library.yml

In this case, the database can be used as follows:

catalog = RefractiveIndex()
mat = catalog.getMaterial('main', 'Si', 'Aspnes')
# wavelength in nanometers
n = mat.getRefractiveIndex(500))
n = mat.getExtinctionCoefficient(500))

If your folder structure is different, you just need to specify the path to the RefractiveIndex database:

catalog = RefractiveIndex("./path/to/folder/with/RefractiveIndex/database")
mat = catalog.getMaterial('main', 'Si', 'Aspnes')
n = mat.getRefractiveIndex(500))  # wavelength in nanometers

Examples of using the transferMatrix module can be found in

.
+-- _PyTMM
|   +-- examples

Dependencies

  • numpy
  • scipy
  • pyyaml
  • matplotlib (for plotting)
You can’t perform that action at this time.