echopype icon indicating copy to clipboard operation
echopype copied to clipboard

Add Fielding transient noise mask

Open leewujung opened this issue 1 year ago • 1 comments

The transient noise (TN) filter from Ryan et al. 2015 is slow due to the need to sort in calculating median for each window surrounding a given pixel.

Alejandro Ariza (@alejandro-ariza) and Sophie Fielding in British Antarctic Survey (BAS) has figured a new approach that works pretty well. It is implemented in echopy here and documented in the docstrings. It would be good to add this functionality.

The masking results look like:

leewujung avatar Jul 04 '24 01:07 leewujung

Ryan's implementation entails iterating through each ping time and each depth value, whereas Fielding's implementation entails iterating through each ping time and some of the depth values until a certain noise threshold condition is met. In this sense, Ryan's is ~O(n^2) whereas Fielding's approach is ~O(n * log(n) ).

ctuguinay avatar Jul 04 '24 01:07 ctuguinay