Closed robbyrob11 closed 6 years ago
In that case, the first iteration will have a negative index, i.e. wrap around sonar_info. Do you have an example file where this problem occurs? It may be the presence of bathy/subbottom channels that causes the wrong index.
I went through the code, and didn't find anything that immediately looked wrong. I did however find some other bugs. Please open a new issue if you still have the problem, and supply some more information or data
in xtf_ctypes.py
in the for loop from line 562 to 591, all instances of file_header.sonar_info[i] should instead be file_header.sonar_info[i-1]
the index is off by 1