> Is that right?
>

Don't know about the exact precision, but it got it close enough to get
OSM to accept it. Time stamps appear correct to MST, although might be
some weirdness with leap years etc....

Following your suggestions I noticed that awk had some time functions, so
I used
--
#!/bin/bash

# Small script to extract lat/long from bestpos logs

echo 'lat,long,alt,date,time'
egrep '^#BESTPOS' $1  | awk -F ',' '{print 
$12","$13","$14","strftime("%Y/%m/%d,%H:%M:%S",315964800 + $6 * 86400 * 7
+ $7) ;}'
--

which gave:
--
lat,long,alt,date,time
49.66158476256,-114.59128193466,1440.4820,2009/02/14,11:21:50
49.66158250526,-114.59127877604,1442.4765,2009/02/14,11:21:51
--

The resultant log is here:
http://www.openstreetmap.org/trace/316428/view

Cheers,
Mungewell.




_______________________________________________
talk mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/talk

Reply via email to