dgTime: Get datagram time from imported EK* raw files

View source: R/dgTime.R

dgTimeR Documentation

Get datagram time from imported EK* raw files

Description

Extract datagram time and convert it to POSIXct.

Usage

dgTime(raw, ini)

Arguments

raw

A raw vector imported via read.EK_raw.

ini

Initial byte with time data.

Details

The cpu time is stored in the first 8 bytes of every datagram, after its name. It is assumed that the time zone is UTC, which may not be the case. By comparig with gps time in nmea data, a correction may be applied if needed. The index (ini) comes from output of get_dgIdx function. This function should not be called directly by the user.

Value

datagram time in POSIXct format.

Author(s)

Héctor Villalobos.


hvillalo/echogram documentation built on Oct. 2, 2023, 7:28 a.m.