binMeanPressureCtd: Bin-average a CTD object in pressure space.

View source: R/calculations.R

binMeanPressureCtdR Documentation

Bin-average a CTD object in pressure space.

Description

Vertically average and CTD object through pressure by defined bins and tolerances.

Usage

binMeanPressureCtd(x, bin, tolerance, trimBin = TRUE, method = "mean")

Arguments

x

a ctd object

bin

a vector of numerical values of the center of the bin

tolerance

a vector of numerical values of the tolerance for the bin

trimBin

a logical value indicating if the supplied bin values should be trimmed to the maximum pressure, default is TRUE.

method

a character vector indicating the type of averaging to do. Ones that are currently available include 'mean' and ⁠'triangleWeight⁠. 'mean' is the default.

Value

a ctd object that has the same metadata and processing log as the supplied ctd object, but with bin-averaged data.

Author(s)

Chantelle Layton


clayton33/csasMarPhys documentation built on June 8, 2025, 3:10 a.m.