deg2dec: Degree to decimal

Description Usage Arguments Details Value Note Author(s) Examples

Description

Convert latitude or longitude from degree to decimal format

Usage

1
deg2dec(h, m, s)

Arguments

h

Degree

m

Minute

s

Second

Details

Convert latitude or longitude from degree to decimal format.

Value

Degree of decimal format

Note

Places with eastern hemisphere should have longitude and southern hemisphere less than zero.

Author(s)

Jinlong Zhang jinlongzhang01@gmail.com

Examples

1
2
3
4
5
6
7
## deg2dec() example
##Paris
L1 = deg2dec(-2,20,14)
phi1 = deg2dec(48, 50, 11)
##Washington DC
L2 = deg2dec(77,03,56)
phi2 = deg2dec(38,55,17)

spaa documentation built on May 2, 2019, 9:44 a.m.