% ***********************************************************************
% limonite_k.m
% ***********************************************************************
%
% Data description:
% refractive index (imaginary part) of limonite (185-2600nm), 
%
% Prepared by: Bradley W. Kimmel on October 2013
%
% ***********************************************************************
%
% Original data source:
% 
% Chapter V: Optical Complex Index of Refraction Between
% 0.185 and 2.5 um, Table V-16, page 107
% 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, 220, 233, 260, 280, 300, 325, 355, 370, ...
    400, 433, 466, 500, 533, 566, 600, 633, 666, 700, 817, 907, ...
    1000, 1105, 1200, 1300, 1400, 1500, 1600, 1700, 1800, 1900, ...
    2000, 2100, 2200, 2300, 2400, 2500, 2600];


data = 10 .^ [...
    -2.36, -2.28, -2.31, -2.26, -2.22, -2.18, -2.15, -2.04, -2.02, ...
    -2.01, -1.91, -1.81, -1.65, -1.52, -1.62, -1.77, -2.03, -2.32, ...
    -2.38, -2.43, -2.47, -2.51, -2.50, -2.42, -2.42, -2.60, -2.67, ...
    -2.72, -2.74, -2.58, -2.67, -2.76, -2.59, -2.53, -2.61, -2.36, ...
    -2.38, -2.41, -2.44, -2.27, -2.11];

fid = fopen('ecLim.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 0 3.5e-2]);
set(gca, 'FontSize', 14);
grid on;
title('Limonite', 'FontSize', 14);
ylabel('extinction coefficient', 'FontSize', 14);
xlabel('wavelength (nm)', 'FontSize', 14);
set(gcf,'PaperUnits','inches','PaperPosition',[0 0 6 5]);
pause;
print('-dpng', '-r100', 'limonite_k.png');
close;

