sbe_run: Run Seabird Data Processing using SBEBatch.exe

Description Usage Arguments Value Examples

Description

These functions generate suitable batch file specifications and run them using sbe_run_batch().

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
sbe_run_tool(
  tool,
  psa,
  input = NULL,
  con = NULL,
  output = sbe_temp_dir(),
  quiet = FALSE
)

sbe_psa_default(tool)

sbe_temp_dir()

is_sbe_temp_dir(path)

Arguments

tool

A vector of tool names. Currently supported names are alignctd, binavg, celltm, datcnv, derive, deriveteos_10, filter, loopedit, and wildedit.

psa

A vector of configuration files. See sbe_psa_default() for default configuration files for each tool.

input

A vector of input files. This can include the wildcard * to select multiple files.

con

A vector of .con or .xmlcon files, recycled along input.

output

An output directory, defaulting to sbe_temp_dir().

quiet

Use TRUE to suppress non-error output.

path

A valid path in R.

Value

The output directory.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# only works if SeaSoft has been installed
faroe_dir <- system.file("extdata/faroe", package = "sbe")
out_dir <- sbe_run_tool(
  "datcnv",
  psa = file.path(faroe_dir, "faroe.psa"),
  input = file.path(faroe_dir, "faroe.dat"),
  con = file.path(faroe_dir, "faroe.con")
)

out_sbe_cnv <- list.files(out_dir, full.names = TRUE)
read_sbe_cnv(out_sbe_cnv)

## End(Not run)

paleolimbot/sbe documentation built on Dec. 31, 2020, 1:13 a.m.