% ***********************************************************************
% limonite_n.m
% ***********************************************************************
%
% Data description:
% refractive index (real 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 = [1.961, 2.070, 2.077, 2.063, 2.089, 2.078, 2.150, 2.223, 2.282, ...
    2.281, 2.330, 2.410, 2.528, 2.579, 2.544, 2.513, 2.464, 2.400, ...
    2.350, 2.285, 2.228, 2.200, 2.146, 2.122, 2.108, 2.082, 2.069, ...
    2.055, 2.050, 2.045, 2.041, 2.038, 2.035, 2.033, 2.030, 2.025, ...
    2.019, 2.017, 2.014, 2.012, 2.004];

fid = fopen('riLim.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.75, 2.75]);
set(gca, 'FontSize', 14);
grid on;
title('Limonite', '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', 'limonite_n.png');
close;

