makeEVRfromDT: Create an Echoview EVR (Region definition) file from depth...

View source: R/makeEVRfromDT.R

makeEVRfromDTR Documentation

Create an Echoview EVR (Region definition) file from depth and time intervals

Description

This function generates Echoview Region definitions according to predefined starting and end depts at given times. The results are save as .EVR file for import into Echoview

Usage

makeEVRfromDT(
  depths,
  times,
  dates,
  rName = "Region",
  rClass = "Selection",
  rType = 1,
  dir = NULL,
  fn = NULL,
  rNotes = list("")
)

Arguments

depths

list of depths (can be multiple regions, where each is a list element)

times

(character) list of times in HHMMSS

dates

list of dates as character %Y%m%d (can be multiple regions, where each is a list element)

rName

= "Region" (character) Name of the region

rClass

= "Selection". character Define class, otherwise it will be Unclassified

rType

= 1 (integer; 0 to 4) see details

dir

= NULL character Path to the output folder

fn

= NULL character Name of the output filename

rNotes

= list("") character Region Notes

Details

The following region types (integer 0 to 4) are available in Echoview 0 - Bad Data (no data); 1 - Analysis; 2 - Marker; 3 - fishtracks; 4 - Bad Data (empty water)

Value

saves an Echoview EVR (Region definition) files

Note

This function is experimental

Author(s)

Sven Gastauer

See Also

makeRectRegion

Examples

## Not run: 
# Minimal example generating 2 regions
depths <- list(c(10,35,50,74,82), c(15,250,300,350,60))
times <-  list(c("090000","091000","091500","091000","090300"),
               c("093000","094000","094500","094000","093300"))
dates <- list(c(rep("20170901",5)),c(rep("20170901",5)))
dir <- 'F:\\'
fn <- 'imaginaryRegions'
makeEVRfromDT(depths,times,dates,fn=fn,dir=dir)
 
## End(Not run)

AustralianAntarcticDivision/EchoviewR documentation built on Aug. 21, 2023, 6:56 p.m.