Kernel: Python 2
Yellow Diamond iPython/Jupyter Notebook
Step 1: Run Cell 1 to define readIntensity
function
readIntensity
Expects: String, name of file containing columns of data
Column 1 must contain in nm
Column 2 must contain
Returns: 2-tuple containing read-in list of and read-in list of
In [1]:
Step 2: Run Cell 2 to define interpolatedSpectrum
function
interpolatedSpectrum
Expects: 2-tuple containing read-in list of and read-in list of
Optional: Specify illuminant
"D65"
Uniform (default)
Returns: ColorPy spectrum object with linear interpolation of intensity spectrum.
Values outside give range are set to 0
In [2]:
Step 3: Run Cell 3 to generate plots
Make sure to define these:
datafolder
: where the input intensity data files are locatedplotfolder
: where the output plots will be savedstructures
: list of structure labelsInput files expected to be of form [structure]_final.dat
illuminants
: list of illuminants to use withinterpolatedSpectrum
function
In [3]:
Out[3]:
Saving plot plot1nm/D65-N3V1
Saving plot plot1nm/Uniform-N3V1
In [ ]: