This function changes schools detection settings for an acoustic variable using COM scripting
Usage
EVSchoolsDetSet(
EVFile,
varObj,
distanceMode,
maximumHorizontalLink,
maximumVerticalLink,
minimumCandidateHeight,
minimumCandidateLength,
minimumSchoolHeight,
minimumSchoolLength
)
Arguments
- EVFile
An Echoview file COM object
- varObj
the EV acoustic object to change schools detection parameters for
- distanceMode
which distance mode to use
- maximumHorizontalLink
maximum linking distance for a swarm
- maximumVerticalLink
maximum vertical linking distance for a school
- minimumCandidateHeight
minimum candidate height
- minimumCandidateLength
minimum candidate length
- minimumSchoolHeight
minimum school height
- minimumSchoolLength
minimum school length
Examples
if (FALSE) {
EVAppObj <- COMCreate('EchoviewCom.EvApplication')
EVFile <- EVOpenFile(EVAppObj,'~~/KAOS/KAOStemplate.EV')$EVFile
varObj <- EVAcoVarNameFinder(EVFile, "120 7x7 convolution")$EVVar
changeSettings <- EVSchoolsDetSet(EVFile, varObj, distanceMode = "GPS distance",
maximumHorizontalLink = 10,
maximumVerticalLink = 5,
minimumCandidateHeight = 2,
minimumCandidateLength = 3,
minimumSchoolHeight = 4,
minimumSchoolLength = 2)
}