|
EvApplication > EvFile > EvVariablesCollection > EvVariableBase As EvVariableVirtual View the Echoview COM object hierarchy and the Echoview summary of COM objects. |
The EvVariableVirtual object gives access to information on and actions for a virtual variable in an EV file. You can also use the EvVariableBase object to gain access to further information on and actions for the variable.
The EvFile.Variables[] property lists all the variables in an EV file and is an EvVariablesCollection.
The EvFileset.Variables[] property that lists all variables in a fileset in an EV file and is an EvVariablesCollection.
The following EvVariableVirtual methods and properties are detailed below
|
AsVariableBase
|
DataType
OperatorType |
EvVariableVirtual implements the following methods and properties:
|
Description |
|||||||
|
AsVariableBase() SummaryDetermines if the variable is a base variable. All variables come under the base variable grouping so this method will always return EvVariableBase. ParametersNone. ReturnEvVariableBase. |
|||||||
|
AsVariableAcoustic |
AsVariableAcoustic() SummaryDetermines if the variable is an acoustic variable. ParametersNone. Return
|
||||||
| AsVariableVirtual |
AsVariableVirtual() SummaryDetermines if the variable is a virtual variable. ParametersNone. Return
|
||||||
| ClassifyRegion |
ClassifyRegion (EvRegion Region) SummaryApply a classification-by-rule to the specified region(s) in the acoustic variable. Notes:
Parameters
ReturnReturns the number of regions changed (by the classification). Returns zero for no regions changed. Example
|
||||||
|
CreateLineRelativeRegion |
CreateLineRelativeRegion(string RegionName, EvLine Line1, EvLine Line2, int FirstPing, int LastPing) SummaryCreate a line relative region on the current variable. Parameters
Return |
||||||
|
CreateCurtain |
CreateCurtain(string CurtainName, int FirstPing, int LastPing, int PingSamplingFactor) SummaryCreate a curtain from the the current variable. The current variable determines the type of 3D curtain that is created. Optional parameters allow you to constrain the curtain. Parameters
ReturnExample |
||||||
|
Create3DFishTracks |
Create3dFishTracks(string GroupName, int FirstPing, int LastPing); SummaryCreate 3D fish tracks from the current variable. Parameters
Return |
||||||
|
Create3DSingleTargets |
Create3dSingleTargets(string TargetsName, int FirstPing, int LastPing) SummaryCreate 3D Single targets from the current variable. Parameters
Return |
||||||
|
DetectFishTracks |
DetectFishTracks(string Class, int FirstPing, int LastPing) SummaryDetect fish tracks on the current variable. Parameters
ReturnNone. |
||||||
|
DetectSchools |
DetectSchools(string Class, int PingStart, int PingStop)
SummaryPerform schools detection on the current variable. Note: Before you use DetectSchools you may want to delete regions of a particular class. For more information refer to EvFile.RegionClasses.DeleteRegions. Parameters
ReturnNumber of schools (this is -1 if the detection failed). |
||||||
|
DetectSurface |
DetectSurface(string SurfaceName, int FirstPing, int LastPing, double BetweenPingInterpolation) SummaryPerform bottom surface detection on the multibeam variable Parameters
Return |
||||||
|
DetectSurfaceFromLine |
DetectSurfaceFromLine(string SurfaceName, EvLine Line, int FirstPing, int LastPing, double MaxInterpolation, string IntensitySource) SummaryCreate a surface from a line on the current variable. Parameters
Return |
||||||
|
PickLine |
PickLine(string LineName, int FirstPing, int LastPing) SummaryPick a line for the current variable. Parameters
Return |
||||||
|
boolean ExportData(string FileName, [integer FirstPing], [integer LastPing]) SummaryExport the data in the echogram. See also:
Parameters
ReturnIf successful. |
|||||||
|
ExportLine |
ExportLine(EvLine Line, string FileName, integer FirstPing, integer LastPing) SummaryExport the specified line to a .csv file. Parameters
ReturnIf successful. Examples
|
||||||
|
ExportEVE(string FileName, boolean ExportPings, boolean ExportFishTracks, boolean ExportCells) SummaryExport the specified data for the current variable to the Echoview data export .eve format. Parameters
ReturnIf successful. Example
Dim EvApp: Set EvApp = CreateObject("EchoviewCom.EvApplication")
Dim EvFile: Set EvFile = EvApp.OpenFile("C:\TTPs\ek60 2.EV")
If EvFile Is Nothing Then
MsgBox "Failed to open EV file"
Else
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Get the variable
Dim Var: Set Var = EvFile.Variables.FindByName("Sv raw pings T1")
If Var Is Nothing Then
MsgBox "Failed to find variable"
Else
Dim VarAc: Set VarAc = Var.AsVariableAcoustic
If VarAc Is Nothing Then
MsgBox "Variable is not acoustic"
Else
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Export the variable
MsgBox "about to export"
If Not VarAc.ExportEVE("C:\TTPs\14671\script-output2.eve", true, true, true) Then
MsgBox "Failed to export to EVE"
End If
End If
End If
End If
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Tidy up
EvApp.CloseFile(EvFile)
|
|||||||
|
ExportHAC |
ExportHAC(string FileName, [integer StartPing], [integer StopPing], [boolean CompressedTuples]) SummaryExport the data from the current variable in the HAC format. Parameters
ReturnIf successful. Example
' Turn on stricter error checking
Option Explicit
' Change these to the appropriate variable name and export path/filename-prefix for your files
Const strAccName = "Sv raw pings T1"
Const strExportBase = "c:\test\hac_export_test-"
MsgBox "This script assumes you already have one EV file open in Echoview." &
vbCrLf & "It must contain a variable named '" & strAccName & "'." & vbCrLf &
vbCrLf & "It will export to files starting with: ' " & strExportBase & "'."
' Connect to Echoview
Dim EvApp
Set EvApp = CreateObject("EchoviewCom.EvApplication")
' Get the first EV file of those that are open
Dim EvFile
Set EvFile = EvApp.EvFiles.Item(0)
' Find the variable with the name set above
Dim AcVar
Set AcVar = EvFile.Variables.FindByName(strAccName).AsVariableAcoustic()
' Now export to HAC with a variety of settings.
AcVar.ExportHAC strExportBase & "default"
AcVar.ExportHAC strExportBase & "startping_only.hac", 100
AcVar.ExportHAC strExportBase & "stop_ping_only", -1, 20
AcVar.ExportHAC strExportBase & "compressed_all_pings.hac", -1, -1, True
' Note you can also check the return value of this method, to see if it
' succeeded or not. You need to use parentheses around the parameters
' when calling something for a return value.
If Not AcVar.ExportHAC(strExportBase & "start_and_stop_ping.hac", 5, 20) Then
MsgBox "Error exporting '" & strExportBase & "start_and_stop_ping.hac'.", vbOk + vbError, "Error"
End If
' Close the EV file
EvApp.CloseFile(EvFile)
|
||||||
|
ExportUnderlyingData |
ExportUnderlyingData(string FileName, int FirstPing, int LastPing) SummaryExport the underlying data for the current variable. Parameters
ReturnIf successful. |
||||||
|
ExportEchogramToImage |
ExportEchogramToImage(string FileName, int HeightInPixels, [int StartPing], [int StopPing]) SummaryExport a selection from the virtual variable echogram as an image. Note: You can also export an image of a cruise track window or an along track window or a selection on an acoustic variable echogram. Parameters
ReturnIf successful. Example |
||||||
|
ExportIntegrationByRegions(string FileName, EvRegionClass) SummaryExport the 'Integration by regions' analysis results for a region class to the given file name. Parameters
Note: If a region class is specified only that region class will be exported. When not specified, all region classes are exported. ReturnIf successful. |
|||||||
|
ExportIntegrationByRegionsAll |
ExportIntegrationByRegionsAll(string FileName) SummaryExport the 'Integration by regions' analysis results for all region classes to the given file name. Parameters
Note: This method is an alternative for languages that do not support the optional paramenter in ExportIntegrationByRegions. ReturnIf successful. |
||||||
|
ExportIntegrationByCells |
ExportIntegrationByCells(string FileName, EvRegion) SummaryExport the 'Integration by cells' analysis results for a specified region to the given file name. Parameters
ReturnIf successful. |
||||||
|
ExportIntegrationByCellsAll |
ExportIntegrationByCellsAll(string FileName) SummaryExport the 'Integration by cells' analysis results for all regions to the given file name. Parameters
ReturnIf successful. |
||||||
|
ExportIntegrationByRegionsByCells |
ExportIntegrationByRegionsByCells(string FileName, EvRegionClass ) SummaryExport the 'Integration by regions by cells' analysis results of the specified region class to the given file name. Parameters
Note: If a region class is specified only that region class will be exported. When not specified, all region classes are exported. ReturnIf successful. |
||||||
|
ExportIntegrationByRegionsByCellsAll |
ExportIntegrationByRegionsByCellsAll(string FileName) SummaryExport the 'Integration by regions by cells' analysis results for all region classes to the given file name. Parameters
Note: This method is an alternative for languages that do not support the optional paramenter in ExportIntegrationByRegionsByCells. ReturnIf successful. |
||||||
|
ExportIntegrationBySingleRegionByCells |
ExportIntegrationBySingleRegionByCells(string FileName, EvRegion) SummaryExport the 'Integration by regions by cells' analysis result for a specified region of a virtual Sv variable to the given file name. Parameters
ReturnIf successful. Example
Notes:
|
||||||
|
ExportFishTracksByCells(string FileName, EvRegionClass) SummaryExport the 'Fish tracks by cells' analysis results for a specified region class to the given file name. Parameters
Note: If a region class is specified only that region class will be exported. When not specified, all region classes are exported. ReturnIf successful. |
|||||||
|
ExportFishTracksByCellsAll |
ExportFishTracksByCellsAll(string FileName) SummaryExport the 'Fish tracks by cells' analysis results for all region classes to the given file name. Parameters
Note: This method is an alternative for languages that do not support the optional paramenter in ExportFishTracksByCells. ReturnIf successful. |
||||||
|
ExportFishTracksByRegions |
ExportFishTracksByRegions(string FileName, EvRegionClass) SummaryExport the 'Fish tracks by regions' analysis results for a region class to the given file name. Parameters
Note: If a region class is specified only that region class will be exported. When not specified, all region classes are exported. ReturnIf successful. |
||||||
|
ExportFishTracksByRegionsAll |
ExportFishTracksByRegionsAll(string FileName) SummaryExport the 'Fish tracks by regions' analysis results for all region classes to the given file name. Parameters
Note: This method is an alternative for languages that do not support the optional paramenter in ExportFishTracksByRegions. ReturnIf successful. |
||||||
|
ExportDataForRegion |
ExportDataForRegion(string FileName, EvRegion) SummaryExport the data for a region to the given file name. Parameters
ReturnIf successful. Note: Exports to a nominated filename with a default .csv extension (if no extension is specified). Other file extensions such as .mat (Matlab) can be specified. |
||||||
|
ExportSingleTargetsByCells(string FileName, EvRegion) SummaryExport the 'Single targets by cells' analysis results for a specified region to the given file name. Parameters
Return If successful. |
|||||||
|
ExportSingleTargetsByCellsAll |
ExportSingleTargetsByCellsAll(string FileName) SummaryExport the 'Single targets by cells' analysis results for all regions to the given file name. Parameters
ReturnIf successful. |
||||||
|
ExportSingleTargetsByRegions |
ExportSingleTargetsByRegions(string FileName, EvRegionClass) SummaryExport the 'Single Targets by regions' analysis results for a specified region class to the given file name. Parameters
Note: If a region class is specified only that region class will be exported. When not specified, all region classes are exported. ReturnIf successful. |
||||||
|
ExportSingleTargetsByRegionsAll |
ExportSingleTargetsByRegionsAll(string FileName) SummaryExport the 'Single Targets by regions' analysis results for all region classes to the given file name. Parameters
Note: This method is an alternative for languages that do not support the optional paramenter in ExportSingleTargetsByRegions. ReturnIf successful. |
||||||
|
ExportSingleTargetsByRegionsByCells |
ExportSingleTargetsByRegionsByCells(string FileName, EvRegionClass) SummaryExport the 'Single targets by regions by cells' analysis results of the specified region class to the given file name. Parameters
Note: If a region class is specified only that region class will be exported. When not specified, all region classes are exported. ReturnIf successful. |
||||||
|
ExportSingleTargetsByRegionsByCellsAll |
ExportSingleTargetsByRegionsByCellsAll(string FileName) SummaryExport the 'Single targets by regions by cells' analysis results for all region classes to the given file name. Parameters
Note: This method is an alternative for languages that do not support the optional paramenter in ExportSingleTargetsByRegionsByCells. ReturnIf successful. |
||||||
|
ExportFrequencyDistributionByCells(string FileName, EvRegion) SummaryExport the 'Frequency distribution by cells' analysis results for a specified region to the given file name. Parameters
ReturnIf successful. |
|||||||
|
ExportFrequencyDistributionByCellsAll |
ExportFrequencyDistributionByCellsAll(string FileName) SummaryExport the 'Frequency distribution by cells' analysis results for all regions to the given file name. Parameters
ReturnIf successful. |
||||||
|
ExportFrequencyDistributionByRegions
|
ExportFrequencyDistributionByRegions(string FileName, EvRegionClass) SummaryExport the 'Frequency Distribution by regions' analysis results for a specified region class to the given file name. Parameters
Note: If a region class is specified only that region class will be exported. When not specified, all region classes are exported. ReturnIf successful. |
||||||
|
ExportFrequencyDistributionByRegionsAll
|
ExportFrequencyDistributionByRegionsAll(string FileName) SummaryExport the 'Frequency Distribution by regions' analysis results for all region classes to the given file name. Parameters
Note: This method is an alternative for languages that do not support the optional paramenter in ExportFrequencyDistributionByRegions. ReturnIf successful. |
||||||
|
ExportFrequencyDistributionByRegionsByCells |
ExportFrequencyDistributionByRegionsByCells(string FileName, EvRegionClass) SummaryExport the 'Frequency distribution by regions by cells' analysis results of the specified region class to the given file name. Parameters
Note: If a region class is specified only that region class will be exported. When not specified, all region classes are exported. ReturnIf successful. |
||||||
|
ExportFrequencyDistributionByRegionsByCellsAll |
ExportFrequencyDistributionByRegionsByCellsAll(string FileName) SummaryExport the 'Frequency distribution by regions by cells' analysis results for all region classes to the given file name. Parameters
Note: This method is an alternative for languages that do not support the optional paramenter in ExportFrequencyDistributionByRegionsByCells. ReturnIf successful. |
||||||
|
ExportFrequencyDistributionBySingleRegion |
ExportFrequencyDistributionBySingleRegion(string FileName, EvRegion) SummaryExport the 'Frequency distribution by regions' analysis results of a specified region of virtual single target variable to the given file name. Parameters
ReturnIf successful. Example
Notes:
|
||||||
|
boolean ExportGeoreferencedSamples(string FileName, int StartPing, int StopPing) SummaryExport the data in a single beam echogram or multibeam echogram as georeferenced samples to a *points.csv or *mb.points.csv file. Parameters
ReturnIf successful. ExampleUse AsVariableVirtual to specify the variable and see Example: ExportGeoreferencedSamples |
|||||||
|
ExportGeoreferencedSamplesForRegion |
boolean ExportGeoreferencedSamplesForRegion(string FileName, EvRegion Region) SummaryExport the data in a region on a single beam echogram as georeferenced samples to a *points.csv file. Parameters
ReturnIf successful. ExampleUse AsVariableVirtual to specify the variable and see Example: ExportGeoreferencedSamples. |
||||||
|
SetFullName(string Name) SummarySet the full name of this virtual variable. Parameters
ReturnBoolean. |
|
Description |
|
|
DataType |
(read-only) EVariableDataType DataType SummaryGet the data type that the variable contains. The data type is specified by the enum EVariableDataType. |
|
FullName |
(read-only) string FullName SummaryGets the full name of a variable, disregarding any short name. |
|
MaxStopRange |
(read-only) double MaxStopRange SummaryGet the maximum Stop range of all pings in the variable. Exampleoption explicit Dim EvApp Set EvApp = CreateObject("EchoviewCom.EvApplication") Dim EvFile Set EvFile = EvApp.EvFiles.Item(0) Dim Var Set Var = EvFile.Variables.FindByName("Sv pings") MsgBox "Minimum Start Range: " & Var.MinStartRange MsgBox "Maximum Stop Range: " & Var.MaxStopRange
|
|
MinStartRange |
(read-only) double MinStartRange SummaryGet the minimum Start range of all pings in the variable. ExampleSee MaxStopRange (above). |
|
MeasurementCount |
(read-only) int MeasurementCount SummaryGet the number of pings in the variable. |
|
Name |
(read-only) string Name SummaryGets the name of a variable, or the short name if set. |
|
PingMode |
(read-only) EVariablePingMode PingMode SummaryGet the ping mode of the pings contained in the variable. The ping mode is specified by the enum EVariablePingMode. |
|
Properties |
(read-only) EVariableAcousticProperties Properties SummaryGet the acoustic properties of the current variable using the properties of the EvAcousticVariableProperties object. |
|
PositionVariable |
(read-only) PositionVariable SummaryGet the position variable for the platform. |
|
ShortName |
(read-write) string ShortName SummaryGets and sets the short name of a variable. |
|
Useable |
(read-only) boolean Useable SummaryReturns an indication as to whether the variable can be used or not.
|
|
VariableType |
(read-only) VariableType SummaryReturns an enum representing the type of variable that is represented by this object. |
|
OperatorType |
(read-only) integer OperatorType SummaryGet a unique number to identify the type of operator that this variable is created from. Refer to Echoview COM constants for lists of the numbers and operator types. |
|
OperatorName |
(read-only) string OperatorName SummaryGet the name of the operator that this variable is created from. |
Scripting with COM objects
EvVariableBase
EvVariablesCollection