window_filter: Window filter

View source: R/window_filter.R

window_filterR Documentation

Window filter

Description

Applies a window filter to variable channels using a user-specified filtering method.

Usage

window_filter(
  x,
  method,
  variables,
  window,
  offset = NULL,
  halfwidth = NULL,
  freq_n = NULL
)

Arguments

x

ctd object

method

Filtering method options are "median", "boxcar", "cosine", "gaussian", "triangle"

variables

Character vector of data variable names to filter, such as "temperature", "conductivity".

window

Numeric vector of windows (i.e. number of scans for the window

offset

For "gaussian" filtering. Value of the offset parameter. SBEDP uses as defaults: offset = 0, halfwidth = 1

halfwidth

For "gaussian" filter. Value of the halfwidth parameter.

freq_n

For "gaussian" filter. Optional. Sampling interval in seconds (1L numeric). Sampling interval is inferred from timeS if not provided.

Value

ctd object with channels filtered

Author(s)

Sean Rohan


sean-rohan-NOAA/gapctd documentation built on March 1, 2025, 9:27 a.m.