process_gpgga: Process NMEA-0183 GPGGA messages

Description Usage Arguments Value Examples

View source: R/GPS_data.R

Description

This function pulls out position fix data from NMEA-0183 GPGGA strings and dumps it into a list.

Usage

1
process_gpgga(string = NULL)

Arguments

string

A string with valid NMEA-0183 GPGGA structure.

Value

A list containing 15 data elements recorded in NMEA-0183 GPGGA data chunks. Elements are given appropriate data types. NB UTC time is returned as POSIXlt, so Sys.date() comes along for the ride.

Examples

1
2
3
# first GPGGA msg from data('n38_demo')
msg_1   <- "$GPGGA,015808.00,2726.53758,S,15126.05255,E,1,08,1.0,365.1,M,39.5,M,,*79"
gpgga_1 <- em38:::process_gpgga(string = msg_1)

obrl-soil/em38 documentation built on Oct. 30, 2018, 3:17 p.m.