ts.cal: Theoretical TS of calibration sphere R script of function for...

View source: R/TScal.R

ts.calR Documentation

Theoretical TS of calibration sphere R script of function for band averaged TS of tungsten carbide spheres translated from Matlab code (Version date 31/5/05) written by D. MacLennan (Marine Lab, Aberdeen) updated from R version written by Sascha F?ssler 03/2010 updated Sven Gastauer 04/01/2017

Description

Theoretical TS of calibration sphere R script of function for band averaged TS of tungsten carbide spheres translated from Matlab code (Version date 31/5/05) written by D. MacLennan (Marine Lab, Aberdeen) updated from R version written by Sascha F?ssler 03/2010 updated Sven Gastauer 04/01/2017

Usage

ts.cal(
  freq = seq(38, 200),
  c = 1500,
  d = 38.1,
  mat = "TC",
  water = "sw",
  rhow = NULL,
  plot = TRUE
)

Arguments

freq

numeric frequencies [kHz]; default seq(38,200)

c

numeric ambient soundspeeds [m/s]; default 1500

d

numeric sphere diameter [cm]; default = 38.1

mat

string material properties of the aphere Cu = Copper, TC = Tungsten-Carbide; default 'TC'

water

string either sw= seawater or fw = fresh water; will be ignored if rhow (density of seawater is defined); default 'sw

rhow

numeric density of ambient seawater, if NULL parameter water will be used; default NULL

plot

boolean TRUE/FALSE if plot should be part of the output; default TRUE

Value

dataframe with columns "F","TS","ModF2","c", where F = Frequency [kHz]; TS = TS [dB]; ModF2 = ModF^2 and c soundspeed [m/s], an optional ggplot can be part of the output

Examples

ts.cal(freq=seq(90,170,by=0.1),c=1500.5,rhow=1.02509,plot=TRUE)

AustralianAntarcticDivision/ZooScatR documentation built on Aug. 13, 2022, 1:21 a.m.