View source: R/replaceBiasedSigma.R
replaceBiasedSigma | R Documentation |
Replace biased backscattering cross sections (sigma_bs in m^2) with averages from unbiased sigma_bs using cells in the same layer and (if possible) transect.
replaceBiasedSigma(df, varNv, varsigmabs, varTranLay, varLay = varTranLay[-1], Nvcut = 0.1)
df |
A data frame containing the variables specified by name below. |
varNv |
A character scalar, the name of the variable in |
varsigmabs |
A character scalar, the name of the variable in |
varTranLay |
A character vector, the names of the variable in |
varLay |
A character vector, the names of the variable in |
Nvcut |
A numeric scalar, the cutoff for Nv (specified by |
TS = 10*log10(sigma_bs).
A numeric vector of target strengths, TS, in dB, same
length as sigmabs
.
mydf <- data.frame(nv=c(0.01, 0.1, 0.2, 0.2, 0.3, 0.05, 0.01), sig=1:7, tran=c(1, 1, 1, 2, 2, 1, 1), layer=c(1, 1, 1, 2, 2, 2, 2)) sig <- replaceBiasedSigma(df=mydf, varNv="nv", varsigmabs="sig", varTranLay=c("tran", "layer")) cbind(mydf, sig)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.