Learn R Programming

oce (version 0.9-14)

map2lonlat: Find lon-lat coordinates of a point on a map

Description

Find lon-lat coordinates of a point on a map

Usage

map2lonlat(xusr, yusr, tolerance=1e-4)

Arguments

xusr, yusr
coordinates of points on the map.
tolerance
tolerance for misfit.

Value

  • A list containing longitude and latitdue.

Details

The location is inferred by trying to invert the results of the mapproject function. The inversion is done by using optim to find the best match between a point in geographical space and plot space, and this match is not always good, being dependent on a starting guess.

See Also

See mapPlot for general information on plotting maps, including other functions.