Rank: 47541 based on 0 downloads (last 30 days) and 0 files submitted
photo

Cameron Bowles

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Cameron View all
Updated File Comments Rating
17 Feb 2011 Matlab Class Wrapper for MODTRAN 4 A class wrapper for the MODTRAN 4 atmospheric radiative transfer code. Author: Derek Griffith

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.

Contact us at files@mathworks.com