latlonDMS2dec

From DavinciWiki
Jump to: navigation, search

Description

Used to calculate decimal degrees from degrees minutes and

Arguments and Return Values

Arguments: the lat or lon Degrees/Minutes/Seconds string

Return Value: decimal degrees - returned in degrees East/North

Usage

Syntax: latlonDMS2dec(DMS_String)

DMS_String - a UTM zone (1-60)

Examples

West

dv> str="45d 1'38.96\"W"

dv> out=latlonDMS2dec(str)
314.9725111

East

dv> str="45d 1'38.96\"E"

dv> out=latlonDMS2dec(str)
45.02748889

North

dv> str="5d 1'38.96\"N"

dv> out=latlonDMS2dec(str)
5.027488889

South

dv> str="5d 1'38.96\"S"

dv> out=latlonDMS2dec(str)
-5.027488889


DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Recent Library Changes

Created On: 06-03-2013
Modified On: 06-03-2013

Personal tools