position.hac | R Documentation |
This function imports time and geographic positions recorded by a GPS in an HAC file during data acquisition.
position.hac(hac)
hac |
name of an HAC file |
The function looks for the Position tuple (20) in the HAC file, and if found, imports the time, latitude and longitude of GPS fixes stored in the digital echogram, as well as the CPU time of the acquisition PC.
A data frame with four variables:
time.gps |
date and time from the GPS during data acquisition. |
time.cpu |
date and time from the computer CPU during data acquisition. |
lon |
longitudes. |
lat |
latitudes. |
If during acoustic data acqusition the PC clock is set to UTC time, as recomended, time.gps and time.cpu will be approximately equal, because a fraction of a second is added to time.cpu to obtain a precision of 0.0001 s.
Héctor Villalobos
ICES, 2005. Description of the ICES HAC Standard Data Exchange Format, Version 1.60. Technical Report 278, ICES Cooperative Research Report.
navigation.hac
hacfile <- system.file("hac", "D20150510-T202221.hac", package="echogram")
pos <- position.hac( hacfile )
pos
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.