as.oax: Format CTD for input into optimal estimation routine

View source: R/oax.R

as.oaxR Documentation

Format CTD for input into optimal estimation routine

Description

This function takes a list of CTD profiles and puts them into the format that is required for the optimal estimation routine.

Usage

as.oax(
  x,
  var,
  longitude0,
  latitude0,
  addDayNumber = FALSE,
  onlyBottom = FALSE,
  noise = 0.1,
  utm = TRUE,
  zone = 19
)

Arguments

x

a list of CTD profiles

var

Variable name to be extracted

longitude0, latitude0

Reference location of the point from which distance is measured for each station if utm is FALSE, ignored otherwise

addDayNumber

Logical indicating whether to append day number to output

onlyBottom

Logical indicating whether to extract only bottom values

noise

Numeric value required for input into the optimal estimation routine, default is set to 0.1 which should be used.

utm

Logical indicating whether or not to use lonlat2utm function to calculate distances, if FALSE, geodDist is used

zone

zone used in calculation if utm is TRUE, ignored otherwise. Default is associated with the summer groundfish area.

Details

The data format required to run the optimal estimation routine requires that data have columns of data be x-dist, y-dist, depth, dayNumber(optional), data, noise

Author(s)

Chantelle Layton


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