[Python-ideas] Geo coordinates conversion in stdlib
Chris Barker
chris.barker at noaa.gov
Mon Mar 23 00:13:57 CET 2015
On Sun, Mar 22, 2015 at 3:37 PM, Andrew Barnert <
abarnert at yahoo.com.dmarc.invalid> wrote:
> If you can't figure out the complexity of multiplying and divmodding by
> 60 twice, you can borrow its code, or just wrap it and delegate. That seems
> trivial enough to do in any project that needs it.
I"m not suggesting this is an stdlib candiate, but it'snot quite that
simple. With FP precision issues you can end up with results like:
1° 60′ 13″
which you don't want. I haven't checked to see if datetime deal siwththis
corectly but I'd guess it does :-)
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150322/c88c492e/attachment-0001.html>
More information about the Python-ideas
mailing list