Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next dev merge/shoal xarray #129

Merged
merged 8 commits into from
Nov 24, 2023
Merged

Conversation

ruxandra-valcu
Copy link
Collaborator

No description provided.

@simedroniraluca
Copy link
Collaborator

Remarks


  • Tests do not work.
  • The documentation of the function _weill(...) should be rewritten, especially in the Returns section.
  • If we use the same input parameters ("thr": -70, "maxvgap": 5, "maxhgap": 1, "minvlen": 15, "minhlen": 3, "dask_chunking": {"ping_time": 100, "range_sample": 100) on an array that looks like this:
    array([[-65., -75., -80., -60., -70., -85., -65., -80., -75., -70.],
           [-70., -65., -75., -80., -85., -70., -65., -70., -80., -85.],
           [-85., -70., -65., -70., -80., -85., -75., -65., -70., -75.],
           [-80., -85., -75., -65., -70., -75., -80., -60., -70., -85.],
           [-65., -75., -80., -60., -70., -85., -65., -80., -75., -70.],
           [-70., -65., -75., -80., -85., -70., -65., -70., -80., -85.],
           [-85., -70., -65., -70., -80., -85., -75., -65., -70., -75.],
           [-80., -85., -75., -65., -70., -75., -80., -60., -70., -85.],
           [-65., -75., -80., -60., -70., -85., -65., -80., -75., -70.],
           [-70., -65., -75., -80., -85., -70., -65., -70., -80., -85.]])
    
    using EchoPy version and next-dev Echopype version of the shoal detection functions, the matching percentage is 61%.
  • However, it is not advisable to use the same parameters because the next-dev Echopype method should make compromises to force choosing all parameters different from 0, which makes it stricter, but more memory and runtime friendly, and much more efficient.
  • So, I took the real dataset tested in EchoPy (you can find their results here - in EchoPy the input params were (thr=-70, maxvgap=15, maxhgap=0, minhlen= 3, minvlen=15)(for 120 kHz channel) and, using the adjusted parameters for Echopype next-dev method (WEILL_DEFAULT_PARAMETERS = {"thr": -70, "maxvgap": 5, "maxhgap": 1, "minvlen": 15, "minhlen": 3, "dask_chunking": {"ping_time": 100, "range_sample": 100},}), I've obtained the below echograms:
  • For 38 kHz channel:
Screenshot 2023-11-24 at 11 11 15
  • For 120 kHz channel:
Screenshot 2023-11-24 at 11 09 04
  • For the 120 kHz channel, I've tested the function also with these input parameters (WEILL_DEFAULT_PARAMETERS = {"thr": -70, "maxvgap": 1, "maxhgap": 1, "minvlen": 15,"minhlen": 3, "dask_chunking": {"ping_time": 100, "range_sample": 100},}). We can see that in terms of maxvgap and maxhgap, we've reached the lower boundary.
Screenshot 2023-11-24 at 11 20 20

@ruxandra-valcu ruxandra-valcu merged commit 7c190b8 into next-dev Nov 24, 2023
0 of 6 checks passed
@ruxandra-valcu ruxandra-valcu deleted the next-dev-merge/shoal_xarray branch November 24, 2023 13:38
beatfactor pushed a commit that referenced this pull request May 24, 2024
* Rewrote shoal mask to use dask

Merge/ariza (#130)

Initial implementation of the seabed masking.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants