parse_lat_icao: Parse latitude in ICAO format

View source: R/utils-conversions.R

parse_lat_icaoR Documentation

Parse latitude in ICAO format

Description

The format is as described in ICAO Doc 8126 section 5.5.2 bullet d):

  In the indication of the geographical coordinates of
  a location:
  - the latitude should be given first;
  - symbols for degrees, minutes or seconds should
    be omitted;
  - two digits should always be used in expressing
    values of less than 10 degrees of latitude; and
  - three digits should always be used in expressing
    values of less than 100 degrees of longitude.
  For example, 050735N 0652542W means five
  degrees, seven minutes and thirty-five seconds
  North, sixty-five degrees, twenty-five minutes and
  forty-two seconds West.

What is typical in AIP pubblications is the additional part of decimal seconds, like 554718.23N.

Usage

parse_lat_icao(lat)

Arguments

lat

a string representation for latitude, i.e. 554718N or 554718.23N

Details

This format is used in AIP pubblications, for examples for runway threshold coordinates, stand positions, etc. This is used also in ALL_FT+ files from NM.

Value

a latitude in decimal degrees

See Also

Other coordinates: ddm2dd(), dms2dd(), parse_lon_icao()

Examples

parse_lat_icao("554718N")


euctrl-pru/trrrj documentation built on April 15, 2024, 1:24 p.m.