View source: R/navigation.hac.R
navigation.hac | R Documentation |
This function computes navigation course (bearing), navigated distance, time diference and navigation speed between GPS fixes in position data imported from an HAC file.
navigation.hac(pos)
pos |
geographic position data from an HAC file, as imported with |
The bearing and navigated distance are computed with functions bearingRhumb
and distVincentyEllipsoid
from package geosphere
. This function is intended to be called inside read.echogram
, rather than being used directly.
A data frame with seven variables:
time.cpu |
date and time from the computer CPU during data acquisition. |
lon |
longitudes. |
lat |
latitudes. |
bearing |
navigation course between two consecutive GPS fixes. |
navdist |
navigated distance between two consecutive GPS fixes. |
time.dif |
time difference between two consecutive GPS fixes. |
navspeed |
navigation speed between two consecutive GPS fixes. |
Héctor Villalobos
position.hac
, bearingRhumb
, distVincentyEllipsoid
.
hacfile <- system.file("hac", "D20150510-T202221.hac", package="echogram")
pos <- position.hac( hacfile )
pos
pos2 <- navigation.hac(pos)
pos2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.