Amazing wrapper, it contains all possible flexibility that modtran provides.
26 Oct 2009
GSTools
A set of matlab functions to read, write and deal with .spc spectra and spectral descriptions
Author: Kris De Gussem
I found an error for opening multifiles using GSSpcRead.m.
line 437 is;
data = zeros (l,Specdata.spectra(1).data);
and it should be;
data = zeros (l,length(Specdata.spectra(1).data));
Other then that I have had no problems, a great piece of code, good work Kris
26 Oct 2009
GSTools
A set of matlab functions to read, write and deal with .spc spectra and spectral descriptions
Author: Kris De Gussem
fixed-point signed fractions,
I ran into one last problem, the exponent values in the headers/subheaders are in char form, meaning that if they are between 129 - 255, then they are actually between -127 to -1, or at least they are in the files I am reading in.
this causes the Y-axis to be incorrectly scaled, the fix I put in for this is in GSSpcRead; line 689, I inserted the following check loop at 689;
if YScalingExp > 128
YScalingExp = YScalingExp-256;
end
then the file should continue
CurrSpec = ........
I assume the process would be the same for the 16 bit input integers, in which case you would have to also put that check into line 675.
Comment only