[OZAPRS] Degrees Minutes and APRS parser

Hamish Moffatt hamish at cloud.net.au
Mon Dec 26 11:12:53 EST 2005


On Mon, Dec 26, 2005 at 08:31:34AM +1000, Andrew Rich wrote:
> Wondering if there is some perl code floating around that converts deg
min
> seconds to dec degrees ?

It's just maths. There are 60 minutes in a degree and 60 seconds in a
minute. So divide by 60 to convert to decimal.

If you have separate degrees minutes seconds, then decimal degrees is

X deg Y' Z" -> X + (Y / 60) + (Z / 3600)

If you have degrees with decimal minutes, then

X deg Y' -> X + (Y / 60)


Hamish
-- 
Hamish Moffatt VK3SB <hamish at debian.org> <hamish at cloud.net.au>
_______________________________________________
Ozaprs mailing list
Ozaprs at aprs.net.au
http://aprs.net.au/mailman/listinfo/ozaprs



More information about the Ozaprs mailing list