peiqiyang / mSCOPE

mSCOPE Matlab codes
Other
13 stars 10 forks source link

Default settings produce error. #2

Closed bbuman closed 4 years ago

bbuman commented 4 years ago

When running mSCOPE using a fresh clone of the repository (no changes, master branch, Matlab 2019a):

Index exceeds the number of array elements (2).

Error in Sint (line 17) mean = .5 * (y(1:nx-1) + y(2:nx));

Error in RTMfm (line 280) rad.Eoutf = 0.001 * Sint(sum(Fhem,1)',spectral.wlF);

Error in mSCOPE (line 300) [rad,profiles] = RTMf_m(spectral,rad,soil,leafopt,canopy,gap,angles,profiles);

This error is related to the fluorescence calculation.

bbuman commented 4 years ago

Issue fixed