parse.latlon {oce}R Documentation

Parse a latitude or longitude string

Description

Parse a latitude or longitude string, e.g. as in the header of a CTD file

Usage

parse.latlon(line, debug=FALSE)

Arguments

line a character string containing an indication of latitude or longitude.
debug set to TRUE to make this function print its processing steps.

Details

The following formats are understood (for, e.g. latitude)

* NMEA Latitude = 47 54.760 N
** Latitude:      47 53.27 N

Value

A numerical value of latitude or longitude.

Author(s)

Dan Kelley

See Also

Used by read.ctd.


[Package oce version 0.1-76 Index]