amforte / Topographic-Analysis-Kit

Set of matlab based tools for topographic analysis, built on top of TopoToolbox.
GNU General Public License v3.0
42 stars 35 forks source link

MakeCombinedSwath: error with ksn_batch #21

Closed jessezondervan closed 5 years ago

jessezondervan commented 5 years ago

Trying to run:

>> [SW,SwathMat,xypoints,outData]=MakeCombinedSwath(DEM,Swath1,15000,'ksn_batch',KSN,15000); gives me

Index exceeds array bounds.

Error in MakeCombinedSwath (line 512)
                xx=mean(data(kk,1).X);
amforte commented 5 years ago

Please confirm which output from KsnChiBatch you provided (i.e. what is 'KSN' in the example you posted). It's expecting the geographic data structure, so the second output if you ran KsnChiBatch with either 'ksn' or 'all' as the product.

amforte commented 5 years ago

This error was fixed.