get_track: get_track Get survey trackline for one day (pre-processed...

View source: R/functions.R

get_trackR Documentation

get_track Get survey trackline for one day (pre-processed data). Used with purrr::map to import data from all tracklines (mysticetus .csv files) from all days of a survey. Reads in survey trackline data (as .gpx from Bad Elf or .csv from Mysticetus) and formats as LINESTRING.

Description

get_track Get survey trackline for one day (pre-processed data). Used with purrr::map to import data from all tracklines (mysticetus .csv files) from all days of a survey. Reads in survey trackline data (as .gpx from Bad Elf or .csv from Mysticetus) and formats as LINESTRING.

Usage

get_track(file_name, dir = NULL, year, month)

Arguments

file_name

Name of gpx or csv trackline file

Examples

test <- get_track(file_name = "Track CeMoRe vessel  Started at 20210920 0903435 PDT CeMoRe vessel.csv", year = 2021, month = "09")
transect_dir <- "./survey_data/tracklines/transects/gpx/2021-08/"
files <- list.files(transect_dir)
transects_sept <- purrr::map_df(files, get_track, year = 2021, month = "09")

elisekeppel/cemore documentation built on Feb. 13, 2025, 11:57 a.m.