set_up_transect: Automate the setup of a template

set_up_transectR Documentation

Automate the setup of a template

Description

This function calls RDCOMClient to establish a COM application for Echoview. This function is primarily a wrapper for functions found in EchoviewR (https://github.com/AustralianAntarcticDivision/EchoviewR) applied to files stored in an expected file path.

Usage

set_up_transect(template, ecsfile, projecthome, sonartype, transectname)

Arguments

template

A file path to an Echoview template

ecsfile

A file patch to the ecs calibration file

projecthome

A file path to the project directory. Generally, when working in an RStudio project environment you can populate this field using 'getwd()'

sonartype

The function uses a text pattern matching to find acoustic data files. Function expects an input of *BIOSONICS* or *SIMRAD* to detect \*.dt4 or \*.raw file types.

transectname

Transect name that matches a valid directory in *3_Ping_Data/* directory

Examples

## Not run: 
library(erieacoustics)
evtemplate <- file.path(getwd(), '2_EVTemplate/EVTemplate.EV')
calfile <- file.path(getwd(), '2_EVTemplate/calibrationfile.ecs')
dir.exists("3_Ping_Data")
file.exists(evtemplate)
file.exists(calfile)

set_up_transect(evtemplate, projecthome = getwd(),
               sonartype = "SIMRAD", transectname = "ERIE")
set_up_transect(evtemplate, projecthome = getwd(),
             sonartype = "BIOSONICS", transectname = "COB")

## End(Not run)


HoldenJe/erieacoustics documentation built on Jan. 29, 2024, 12:32 a.m.