File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 33"""
44
55__author__ = "Pavel Dmitriev"
6- __version__ = "1.0.1b "
6+ __version__ = "1.0.1c "
77__license__ = "GPLv3"
Original file line number Diff line number Diff line change 1+ import numpy
2+ import matplotlib .pyplot as plt
3+
4+ from PyTMM .transferMatrix import *
5+ from PyTMM .refractiveIndex import *
6+
7+ database = os .path .join (os .path .dirname (os .path .realpath (__file__ )),
8+ os .path .normpath ("../../../refractiveindex.info-database/database/" ))
9+ catalog = RefractiveIndex (database )
10+
11+ sio2 = catalog .getMaterial ('main' , 'SiO2' , 'Malitson' )
12+
13+ ran = range (400 , 800 , 1 )
14+ reflectance = []
15+
16+ for i in ran :
17+ a = TransferMatrix .boundingLayer (1 , sio2 .getRefractiveIndex (i ))
18+ R , T = solvePropagation (a )
19+ reflectance .append (numpy .abs (R ** 2 ))
20+
21+ plt .plot (ran , reflectance )
22+ plt .xlabel ("wavelength, nm" )
23+ plt .ylabel ("reflectance" )
24+ plt .title ("Reflectance of single SiO2 Boundary" )
25+ plt .show (block = True )
You can’t perform that action at this time.
0 commit comments