Skip to contents

This function adds a new acoustic variable using COM scripting

Usage

EVNewAcousticVar(EVFile, oldVarName, enum)

Arguments

EVFile

An Echoview file COM object

oldVarName

a string containing the name of the acoustic variable to base the new variable on

enum

Enum code for operator. See Echoview help file on EOperator for enum codes.

Value

an object: returns the new variable

See also

Examples

if (FALSE) {
#create a 7x7 convolution of a variable
EVAppObj <- COMCreate('EchoviewCom.EvApplication')
EVFile <- EVOpenFile(EVAppObj,'~~/KAOS/KAOStemplate.EV')$EVFile
EVNewAcousticVar(EVFile = EVFile, oldVarName = "38 seabed and surface excluded", enum = 43)
}