mk9_cast_times: Get cast times

View source: R/mk9_cast_times.R

mk9_cast_timesR Documentation

Get cast times

Description

This cast.times function retrieves data from Oracle and offset tables to generate a table of event times defining a trawl event. These events are: downcast start, downcast end, on bottom, haul back, off bottom, upcast start and upcast end; they bracket he portion of the trawl haul event that is of interest to us for the use of MK9 irradiance data. Within this function MK9 light meter depths and times are adjusted to using the info provided in the offsets table so that MK9 depth is calibrated to the survey MBT and MK9 clock drift is adjusted to synch up with the MBT/GPS time that is the basis for the survey clock.

Usage

mk9_cast_times(channel = NULL, survey, vessel, cruise)

Arguments

channel

Oracle connection as an RODBC connection object.

survey

RACE survey code as a character vector.

vessel

RACE vessel code a numeric vector.

cruise

RACE cruise code as a numeric vector.

Value

Objects created: MK9.performance.csv - trawl-mounted light meter deployment performance code, CastTimes.csv - catalog of events during trawl haul operation. MK9 performance codes: 0 = good performance, 1 = bad performance, 99 = no data between on and off bottom events.


sean-rohan/trawllight documentation built on Jan. 13, 2023, 10:43 p.m.