Closed AlanSalcedo closed 2 weeks ago
@AlanSalcedo thanks, this looks great! My comments are getting fewer and fewer haha -- but I still came up with a few small things. Should be okay to merge after those are addressed.
@marcomuzio ready for another check :)
@AlanSalcedo merge that thang
This function calculates the minimum correlation fraction depth:
You can specify (1) a fraction of the peak correlation -default 60%- and (2) a threshold depth where the surface "starts" or "it's reached" - neg 10 m- by default.
This function starts a 'min_depth' from a neg. infinity depth and replaces 'min_depth' when it finds a new depth (measured from the surface and not above the surface) with a correlation => max_corr * fraction.