ara-software / AraProc

ARA data analysis framework
GNU General Public License v3.0
3 stars 1 forks source link

Minimum correlation fraction depth #20

Closed AlanSalcedo closed 2 weeks ago

AlanSalcedo commented 2 weeks ago

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.

marcomuzio commented 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.

AlanSalcedo commented 2 weeks ago

@marcomuzio ready for another check :)

marcomuzio commented 2 weeks ago

@AlanSalcedo merge that thang