ocean-tracking-network / surimi

R package for translating acoustic telemetry data from one institutional format to another.
GNU General Public License v3.0
4 stars 1 forks source link

bring in glatos's data import functions #25

Open hugomflavio opened 1 week ago

hugomflavio commented 1 week ago

Brought up by Simon Dedman:

converting VRL files to CSV:

    # https://stackoverflow.com/questions/67745382/vemco-acoustic-telemetry-data-vrl-files-in-r
    # remotes::install_github("ocean-tracking-network/glatos")
    library(glatos)
    csvfiles <- glatos::vrl2csv(vrl = file.path(loadloc, "VRL/"),
                                outDir = file.path(loadloc, "VRL/"),
                                vueExePath = "C:/Program Files (x86)/VEMCO VUE")
    detections <- do.call(rbind, lapply(csvfiles, read.csv))

Probably doesn't make sense to weave this into actel since we'll be transferring the data importing duties to Surimi. We should transfer the glatos data import functions too.

glatos's vrl2csv could be called by actel's compileDetections.