NCEP.loxodrome: Calculate the loxodrome angle between two points on Earth.

Description Usage Arguments Details Value Author(s) References Examples

Description

This function calculates the loxodrome angle (i.e rhumb line or constant compass heading) between two points on a sphere.

Usage

1
NCEP.loxodrome(lat1,lat2,lon1,lon2)

Arguments

lat1

A numeric value giving the starting latitude in decimal degrees.

lat2

A numeric value giving the ending latitude in decimal degrees.

lon1

A numeric value giving the starting longitude in decimal degrees.

lon2

A numeric value giving the ending longitude in decimal degrees.

Details

This function calculates the loxodrome angle (i.e. rhumb line or constant compass heading) between two points on a sphere. Output is given in degrees from north.

Value

A numeric value indicating the loxodrome angle between the two input points in degrees from north.

Author(s)

Michael U. Kemp mukemp+RNCEP@gmail.com

References

http://en.wikipedia.org/wiki/Rhumb_line

Examples

1
2
3
library(RNCEP)
## Using NCEP.loxodrome ##
NCEP.loxodrome(lat1=45,lat2=40,lon1=4,lon2=5)


Search within the RNCEP package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.