findstk: Optimize stkmod function within depth interval

Description Usage Arguments Details Value

Description

Optimize stkmod function within depth interval

Usage

1
findstk(profin, sigdiff = 3, expand = 100, plot = FALSE)

Arguments

profin

data.frame of a single depth profile

sigdiff

numeric of density difference beyond which the model is estimated

expand

numeric for expansion factor to increase resolution of search

plot

logical if the model is plotted

Details

This function finds the optimal value for strt in stkmod that minimizes RMSE for the stick model. The function will return the maximum depth value in profin if the range of seawater densities is less than sigdiff, implying no stratification.

The profin data frame must have two columns for depth (binmd) and seawater density (sig).

Value

The depth of the mixing layer if plot = FALSE, otherwise a plot of the stick model.


fawda123/EstuaryMetabolism documentation built on May 16, 2019, 10:57 a.m.