wflo (version 1.2)

Geo2Ari: Converts degrees between the arithmetic system and the azimuth system (and vice versa).

Description

Use this function to convert degrees from the arithmetic system (0<U+00B0> being east, ascending counterclockwise) into the azimuth system (0<U+00B0> being north, ascending clockwise) and vice versa.

Usage

Geo2Ari(g)

Arguments

g

contains a single value degree (usually between 0<U+00B0> and 360<U+00B0>, decimal fractions allowed).

Value

Geo2Ari returns a single value of degrees.

Details

g may contain degrees from both systems, the function turns the data into the respective other system.

See Also

GetDirInfo for further degree information.

Examples

Run this code
# NOT RUN {
Geo2Ari(0)
## In an arithmetic system, 0<U+00B0> means 'east', while 'east' in
## azimuth notation is 90<U+00B0>. This call returns 90.
Geo2Ari(90)
## In an azimuth system, 90<U+00B0> means 'east', while 'east' in
## arithmetic notation is 0<U+00B0>. This call returns 0.
Geo2Ari(Geo2Ari(123))
## Returns 123.
# }

Run the code above in your browser using DataCamp Workspace