read_otn_detections: Read data from a OTN detection file

View source: R/load-read_otn_detections.r

read_otn_detectionsR Documentation

Read data from a OTN detection file

Description

Read data from a standard OTN detection (csv) file and return a data.frame of class glatos_detections.

Usage

read_otn_detections(det_file)

Arguments

det_file

A character string with path and name of detection file in OTN detection extract format (*.csv). If only file name is given, then the file must be located in the working directory.

Details

Data are loaded using data.table::fread() package and timestamps are coerced to POSIXct using lubridate::fast_strptime(). All times must be in UTC timezone per GLATOS standard.

Column names are changed to match GLATOS standard columns when possible. Otherwise, OTN columns and column names are retained.

Value

A data.frame of class glatos_detections that includes OTN columns that do not map directly to GLATOS columns.

Author(s)

A. Nunes, anunes@dal.ca

Examples

# get path to example detection file
det_file <- system.file("extdata", "blue_shark_detections.csv",
  package = "glatos"
)
det <- read_otn_detections(det_file)


ocean-tracking-network/glatos documentation built on April 17, 2025, 10:38 p.m.