% ***********************************************************************
% illite_n.m
% ***********************************************************************
%
% Data description:
% refractive index (real part) of illite (185-2600nm), 
%
% Prepared by: Bradley W. Kimmel on July 2009
%
% ***********************************************************************
%
% Original data source:
% Chapter V: Optical Complex Index of Refraction Between
% 0.185 and 2.5 um, Table V-14, page 103
% in
%
% Egan, W.G. and Hilgeman, T.W., "Optical Properties of Inhomogeneous
% Materials:  Applications to Geology, Astronomy, Chemistry, and
% Engineering", Academic Press, 1979
%
% ***********************************************************************
clear all;

wave = [185, 190, 200, 210, 215, 220, 225, 233, 240, 260, 280, 300, ...
		326, 360, 370, 400, 433, 466, 500, 533, 566, 600, 633, 666, ...
		700, 817, 907, 1000, 1105, 1200, 1303, 1400, 1500, 1600, 1700, ...
		1800, 1900, 2000, 2100, 2200, 2300, 2400, 2500, 2600];

data = [1.448, 1.444, 1.441, 1.438, 1.434, 1.431, 1.427, 1.424, 1.420, ...
		1.417, 1.411, 1.401, 1.404, 1.406, 1.415, 1.423, 1.420, 1.418, ...
		1.415, 1.414, 1.412, 1.411, 1.407, 1.403, 1.399, 1.395, 1.391, ...
		1.387, 1.387, 1.387, 1.387, 1.387, 1.387, 1.387, 1.387, 1.387, ...
		1.387, 1.387, 1.387, 1.387, 1.387, 1.387, 1.387, 1.387];

fid = fopen('riIll.txt', 'wb');
for i = 1:length(data)
	fprintf(fid, '%d  %3.4g \n', wave(i), data(i));
end;
fclose(fid);

plot(wave, data, 'b-', 'linewidth', 3);
axis([185 2600 1.3 1.5]);
set(gca, 'FontSize', 14);
grid on;
title('Illite', 'FontSize', 14);
ylabel('refractive index', 'FontSize', 14);
xlabel('wavelength (nm)', 'FontSize', 14);
set(gcf,'PaperUnits','inches','PaperPosition',[0 0 6 5]);
pause;
print('-dpng', '-r100', 'illite_n.png');
close;

