Description Usage Arguments Value See Also Examples
Find the index or depth of the maximum in a (possibly smoothed) variable along a cast. Useful to find the depth of the Deep Chlorophyll Maximum (DCM) from a chlorophyll profile for example.
1 |
x |
vector of the variable of interest. |
depth |
vector of depths at which |
n.smooth |
integer, number of times to smooth the data before detecting the maximum (1 by default, because we are rarely interested in the absolute maximum, which often corresponds to a spike, but rather in the region of the maximum values). |
k |
order of the moving average used for smoothing; the window size is 2k+1. NB: when data is smoothed, it should have been recorded at approximately regular intervals for the moving average to make sense. |
When depth
is NULL
, return the index of x
corresponding to the maximum, i
. When depth
is provided, return depth[i]
, the value of the depth of the maximum.
smooth()
for smoothing.
Other functions computing remarkable depths: clined
,
mld
, ze_from_chla
,
ze_from_par
,
ze_from_surface_chla
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.