Import an Echoview region definitions file (.evr)
Source:R/EVImportRegionDef.R
EVImportRegionDef.Rd
This function imports a region definitions file (.evr) using COM scripting
Arguments
- EVFile
An Echoview file COM object
- evrFile
An Echoview region definitions file (.evr) path and name
Value
If successful, A list object with three elements. $regionCOMObjs a list comprising of the COM object of each imported region; $regionMeta metadata of the regions imported: the region ID, region name and region class, and $msg message for processing log
Examples
if (FALSE) EVAppObj <- COMCreate('EchoviewCom.EvApplication')
EVFile <- EVOpenFile(EVAppObj,'~~/KAOS/KAOStemplate.EV')$EVFile
#> Error in eval(expr, envir, enclos): object 'EVAppObj' not found
EVImportRegionDef(EVFile = EVFile, evrFile = '~~/KAOS/off transect regions/20030114_1200000000.evr')
#> Warning: 2024-05-14 12:38:48.678177 : EVR file not found.
#> $regionCOMObjs
#> [1] NA
#>
#> $regionMeta
#> [1] NA
#>
#> $msg
#> [1] "2024-05-14 12:38:48.678177 : EVR file not found."
#>