Re: nmea

2012-03-10 Thread Roy Smith
In article , "Johannes Wagner" wrote: > can any1 help me on how to get python to read nmea data? I assume you're talking about National Marine Electronics Association, i.e. the protocol GPSs use to talk to plotters and the like? A quick google search for "nmea python

nmea

2012-03-10 Thread Johannes Wagner
can any1 help me on how to get python to read nmea data? -- http://mail.python.org/mailman/listinfo/python-list

Re: Bullet proof passing numeric values from NMEA data stream.

2007-03-20 Thread Doug Gray
On Wed, 21 Mar 2007 00:29:00 +1100, Steven D'Aprano wrote: > On Tue, 20 Mar 2007 12:09:29 +, Doug Gray wrote: > >> Folks, >> I am looking for a fast but most importantly a bullet proof method to pass >> and NMEA data stream (GPS output) ascii numeric string

Re: Bullet proof passing numeric values from NMEA data stream.

2007-03-20 Thread Steven D'Aprano
On Wed, 21 Mar 2007 00:29:00 +1100, Steven D'Aprano wrote: > All your examples include spurious whitespace. If that is the only > problem, here's a simple fix: > > def despace(s): > """Remove whitespace from string s.""" > return Gah! Ignore that stub. I forgot to delete it :( While I

Re: Bullet proof passing numeric values from NMEA data stream.

2007-03-20 Thread Steven D'Aprano
On Tue, 20 Mar 2007 12:09:29 +, Doug Gray wrote: > Folks, > I am looking for a fast but most importantly a bullet proof method to pass > and NMEA data stream (GPS output) ascii numeric strings. The best I can > offer is: > > def fint(a): > try: return int(float(a)

Re: Bullet proof passing numeric values from NMEA data stream.

2007-03-20 Thread Steve Holden
Doug Gray wrote: > Folks, > I am looking for a fast but most importantly a bullet proof method to pass > and NMEA data stream (GPS output) ascii numeric strings. The best I can > offer is: > > def fint(a): > try: return int(float(a)) > except: return 0 > > The rea

Bullet proof passing numeric values from NMEA data stream.

2007-03-20 Thread Doug Gray
Folks, I am looking for a fast but most importantly a bullet proof method to pass and NMEA data stream (GPS output) ascii numeric strings. The best I can offer is: def fint(a): try: return int(float(a)) except: return 0 The reason for this is the quality of the data from the huge variety of