Skip to contents

This function exports the broadband single targets frequency response

Usage

EVExportWBST_FR(
  EVFile = EVFile,
  STVar,
  outfn,
  AverageResults = 0,
  MinMax = 0,
  WindowSize = 1,
  WindowUnit = 2,
  EVVar
)

Arguments

EVFile

An Echoview file COM object

STVar

An Wideband Single Target Detection Echoview Variable, accepts inputs as Character, list or Variable object (COMIDispatch)

outfn

FIlename for the TS export

AverageResults

[Binary] 0 clears Average results. 1 selects Average results

MinMax

[Binary] 0 clears Include min and max. 1 selects Include min and max.

WindowSize

Set the WIndow Size

WindowUnit

Unit of the window 0 = Meters, 1 = Pulse Lengths, 2 = Samples

EVVar

Specifies a TS pulse compressed wideband variable for frequency response calculations.

Examples

if (FALSE) {
#To be added - Needs Example data
#Starting Echoview
echoview = StartEchoview()
#Create a new EV File
EVFile <- EVCreateNew(EVAppObj=echoview, dataFiles = "rawfile.raw")$EVFile
#Set the First and second Operand
EVVar <- "Fileset 1: TS pulse compressed wideband pings T1"
Operand2 <- "Fileset 1: angular position pulse compressed wideband pings T1"
#Create a wideband single target detection varable
ST <- EVSTWideband(EVFile=EVFile,EVVar=EVVar,Operand2=Operand2)
# Change TS detection threshold
ST <- EVSTWideband(EVFile=EVFile,EVVar=EVVar,Operand2=Operand2,TsThreshold=-90)
#Export the single target frequency response
EVExportWBST_FR(ST,"WB_ST_FR.csv",0,0,1,2,EVVar)
}