Learn R Programming

echogram (version 0.1.3)

position.hac: Read geographic position data from an HAC file

Description

This function imports time and geographic positions recorded by a GPS in an HAC file during data acquisition.

Usage

position.hac(hac)

Value

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.

Arguments

hac

name of an HAC file

Author

Héctor Villalobos

Details

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.

References

ICES, 2005. Description of the ICES HAC Standard Data Exchange Format, Version 1.60. Technical Report 278, ICES Cooperative Research Report.

See Also

navigation.hac

Examples

Run this code
 hacfile <- system.file("hac", "D20150510-T202221.hac", package="echogram")
 pos <- position.hac( hacfile )
 pos

Run the code above in your browser using DataLab