nilsolav / ARISreader

Code for reading Soundmetric ARIS data into matlab
GNU General Public License v3.0
6 stars 2 forks source link

Problems about reading DIDSON data #4

Open ShaofengZou opened 3 years ago

ShaofengZou commented 3 years ago

Hey, recently l find a paper "An underwater observation dataset for fish classification and fishery assessment" and download the corresponding dataset from "https://figshare.com/collections/An_Underwater_Observation_Dataset_for_Fish_Classification_and_Fishery_Ecology/4039202".

I use this code to read the sonar file when specific the filename='2013-05-29_223000_HF_S002.ddf'. There are some errors occurs:

数组索引必须为正整数或逻辑值。

出错 get_frame_header_ddf3 (line 68)
configflags = 2*str2num(cflags(end-1)) + str2num(cflags(end));

出错 get_frame_new (line 21)
        header=get_frame_header_ddf3(data.fid,resolution,data.serialnumber);

出错 runmovie3 (line 20)
    data=get_frame_new(data,framenumber);

I also try on other ddf files and always get some bugs.

Can you help me with some instrction or give some advice to read this dataset.

Looking forward to your reply.