oysstu / pyxtf

A python library for reading and writing eXtended Triton Format (XTF) files
MIT License
50 stars 26 forks source link

pyxtf error #4

Closed robbyrob11 closed 6 years ago

robbyrob11 commented 6 years ago

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

oysstu commented 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.

oysstu commented 6 years ago

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