SEB_GPS_transect: A function to append GPS data to transect SEBASTES deployment...

View source: R/functions.R

SEB_GPS_transectR Documentation

A function to append GPS data to transect SEBASTES deployment data

Description

This function merges a GPS position to frame data from SEBASTES output for transect data. The GPS data is a set of Latitude and Longitude pairs with an associated time for each deployment (e.g. a trackline for a drop camera deployments). A third column identifies the Deployment_ID. Accessory data, such as depth included in the data frame can also be appended to the output.

Usage

SEB_GPS_transect(
  frame_data,
  Time,
  Longitude,
  Latitude,
  Accessory_data = NULL,
  offset = 0
)

Arguments

frame_data

a standard output from the SEB_data_concatenate function used on images analyzed using the SEBASTES software.

Time

a column of times in as.POSIXct format (e.g. '%Y-%m-%d %H:%M:%OS')

Longitude

a column of longitudes for each deployment ID

Latitude

a column of latitudes for each deployment ID

Accessory_data

columns of accessory data to be attached to the frame data

offset

offset in hours for conversion between GPS timestamp and camera timestamp

Examples

SEB_GPS_transect(frame_data, GPS_data$Time, GPS_data$Longitude, GPS_data$Latitude, GPS_data[,4:10],offset=-7)

rooperc4/StereoCamDataUtils documentation built on Nov. 20, 2024, 9:58 p.m.