convert_glatos_to_att: Convert detections and receiver metadata to a format that ATT...

View source: R/util-convert_glatos_to_att.r

convert_glatos_to_attR Documentation

Convert detections and receiver metadata to a format that ATT accepts.

Description

Convert glatos_detections and glatos_receiver objects to ATT for compatibility with the Animal Tracking Toolbox (https://github.com/vinayudyawer/ATT).

Usage

convert_glatos_to_att(detectionObj, receiverObj)

Arguments

detectionObj

a list from read_glatos_detections

receiverObj

a list from read_glatos_receivers

Details

This function takes 2 lists containing detection and reciever data and transforms them into one list containing 3 tibble::tibble objects. The input that AAT uses to get this data product is located here: https://github.com/vinayudyawer/ATT/blob/master/README.md and our mappings are found here: https://gitlab.oceantrack.org/GreatLakes/glatos/issues/83 in a comment by Ryan Gosse.

Value

a list of 3 tibble::tibbles containing tag dectections, tag metadata, and station metadata, to be ingested by VTrack/ATT

Author(s)

Ryan Gosse

Examples


#--------------------------------------------------
# EXAMPLE #1 - loading from the vignette data

library(glatos)
wal_det_file <- system.file("extdata", "walleye_detections.csv",
     package = "glatos")
walleye_detections <- read_glatos_detections(wal_det_file) # load walleye data

rec_file <- system.file("extdata", "sample_receivers.csv", 
     package = "glatos")
rcv <- read_glatos_receivers(rec_file) # load receiver data

ATTdata <- convert_glatos_to_att(walleye_detections, rcv)

jsta/glatos documentation built on July 11, 2022, 7:01 a.m.