mk9_find_surface_offset: Find and apply time offset to deck tag data

View source: R/mk9_find_surface_offset.R

mk9_find_surface_offsetR Documentation

Find and apply time offset to deck tag data

Description

Calculates correlations between predicted and observed irradiance to calculate an archival tag offset for cases where tag time doesn't match survey time. Iterates through surface irradiance predictions from fishmethods::astrocalc4r based on location data and offset time.

Usage

mk9_find_surface_offset(
  channel = NULL,
  survey,
  vessel,
  cruise,
  try_offsets = seq(-8, 8, 1),
  results_file = NULL
)

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.

results_file

Character vector indicating a filepath where offset results should be stored.

Value

Writes time-shifted surface values to corr_deck.csv


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