1 2 1 3 1 11The above example indicates that beams 2,3 and 11 have been flagged for ping #1.
make_flags -rejected -flag_file flags_file.txt -in file.mergedNote that "flags_file.txt" needs to be the appropriate flag file for "file.merged". This will create a file.flag_bk to go along with file.merged, this gets applied to your soundings in the next step.
The solution is to "guess" the offset between your software's ping numbering and our ping numbering. As the offset can vary between survey lines, I modified swathed to help you guess the offset.
swathed file.mergedUnflag any previous cleaning with a capital U key, and then hit F10. This will attempt to load the .flag_bk file and will automagically guess the offset. What you'll see is your dirty data being cleaned for you. This works well with Reson data since they preserve all range measurements, even the bad outliers (Simrad filters the bad outliers usually).
If you think it applied the appropriate flags, you just space bar your way through the remainder of the file. If you think you have to nudge the offset, you can use F9 and F11 to decrement and increment the offset, the offset will be reported on the command line. You can reset the offset to zero by hitting F12. Once you've started this process, it will automatically apply the flags as you space bar through the file. The tweaking of the auto-guessed offset may to be repeated for every file.
In summary, here are the magic keystrokes:
I fully intend to automate the above procedure, but the automagic offset guessing algorithm requires some fine-tuning before I trust it in automation, particulary for relatively clean datasets.