Description Usage Arguments Details Value References Examples
Identification of the mixing layer depth (e.g. thermocline, pycnocline) using a modified version of the Maximum Angle Method.
1 2  | 
z | 
 Vector of depths, or 2-column dataframe containing depths in first column and variable of interest (e.g. temperature, salinity) in second column.  | 
x | 
 Vector containing variable of interest (e.g. temperature, salinity)
of same length as   | 
np | 
 Number of points to use in linear regressions (see 'details').  | 
min.range | 
 The minimum range in the value of   | 
max.z | 
 Maximum value of   | 
return.index | 
 If TRUE, return the index of   | 
The Maximum Angle Method is modified to better handle the identification of the mixing layer depth when the surface layer is poorly-mixed and to provide some flexibility in the linear regression, but may be less stable as a result. The modifications force the dual linear regressions to share the last/first data point and allow the user to specify the number of points used in the regressions.
either the mixing layer depth or the element index of z associated 
with said depth, depending on the value of return.type.
Chu, Peter C., and Chenwu Fan. "Maximum angle method for determining mixed layer depth from seaglider data." Journal of oceanography 67.2 (2011): 219-230.
1 2 3 4 5 6  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.