Skip to content

Kongsberg_MBES_preprocessing.py: IndexError #2

@AdrianKriger

Description

@AdrianKriger

Hi.

Thank you for this solution.

I am attempting to process a small dataset from NOAA -> data here (~80MB).

Kongsberg_MBES_preprocessing.py fails.
All I've done is replace line 412 ~bathymetry, backscatter = main('./test/EM122_data.all')
with bathymetry, backscatter = main('./data/0001_20111103_155105_melville.all.mb58').
The distribution format is MBF_EM710RAW -> dataset metadata overview here

Console printout and message:

Decoded 1798 position datagram(s).
Decoded 5098 XYZ datagram(s).
2 ping(s) could not be positioned.
Dataset includes 2201472 soundings.
Traceback (most recent call last):

  File "C:\...\Interactive-MBES-processing-main\software\Kongsberg_MBES_preprocessing.py", line 415, in <module>
    bathymetry, backscatter = main('./data/0001_20111103_155105_melville.all.mb58')

  File "C:\...\Interactive-MBES-processing-main\software\Kongsberg_MBES_preprocessing.py", line 404, in main
    backscatter = decode_raw_backscatter(filename, bathymetry)

  File "C:\...\Interactive-MBES-processing-main\software\Kongsberg_MBES_preprocessing.py", line 371, in decode_raw_backscatter
    reduce(

  File "C:\...\Interactive-MBES-processing-main\software\Kongsberg_MBES_preprocessing.py", line 372, in <lambda>
    lambda acc, beam: acc.update(beam),

  File "C:\...\Interactive-MBES-processing-main\software\Kongsberg_MBES_preprocessing.py", line 275, in update
    nextBeam.samples[nextBeam.centreSampleNumber]*0.1

IndexError: tuple index out of range

I know nothing about bathymetry and less about hydrography.
Your help is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions