Closed lsetiawan closed 3 years ago
Ah! The check must have been removed at some point... Thanks for reporting this bug!
This is related to whether the transducer is single beam and split beam. Single beam files would not have the angle data. The configuration has a field "beam_type" where 0 = Single, 1 = Split.
@ngkavin : could you add a check for this? Some info below (if you're in SetGroupsEK60/EK80):
# EK60
for ch in self.convert_obj.config_datagram['transceivers'].keys():
self.convert_obj.config_datagram['transceivers'][ch]['beam_type']
# EK80
for ch in self.convert_obj.config_datagram['configuration'].keys():
self.convert_obj.config_datagram['configuration'][ch]['beam_type']
Thanks @leewujung I'm really close to being able to read raw files from anywhere :smile:
Fantastic! You could just throw in that fix based on the above if you want. It's very small. :P (I am just trapped in meetings at the moment)
I'll just let @ngkavin make that fix.. Looks like my stuff doesn't get affected, other than failing when trying to write. Reading is good so far. :+1:
Thanks @leewujung I'm really close to being able to read raw files from anywhere
Awesome! I can test it next week if you'd like, if it's ready for testing.
@emiliom Have at it at #216 :smile:
Reopen since this is not merged to master yet.
Overview
Within the
class-redesign
branch, when runningto_netcdf
I get the error below.Troubleshooting
1) Seems like there's no catch for when
self.convert_obj.ping_data_dict['angle']
has none channels ...2) I tried using the master just to make sure it's not the raw data, and sure enough, it's problem with the code.
Please help! @ngkavin @leewujung