Problem at converting IGC into gpx

View: New views
6 Messages — Rating Filter:   Alert me  

Problem at converting IGC into gpx

by Agustin Lobo-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm converting IGC files into csv and, for some files, I get messages
like this:

$ gpsbabel -i igc -f 2009-07-29-CGP-xYYY-01.IGC -t -o
unicsv,datum="European 1950",grid=4 -F MATA20090729/MATA20090729_1.csv
IGC: fix (B) record parse error
B0649044146471N00227892EA00007

This is at the end of the IGC file:

...
B0700364146756N00226177EA0000001765
B0700364146754N00226177EA0000001764
HFDTE290789
B0649044146471N00227892EA00007
LXCG     TRX0
B0649044146472N00227890EA0000001927
LXCG     VERSION:6.4.a

This file can be read by compegps

Is this a bug in gpsbabel?

Thanks

Agus


[alobolistas.vcf]

begin:vcard
fn:Agustin Lobo
n:Lobo;Agustin
org:Institut de Ciencies de la Terra "Jaume Almera" CSIC
adr:;;Lluis Sole Sabris s/n;Barcelona;;08028;Spain
email;internet:Agustin.Lobo@...
url:http://www.ija.csic.es/gt/obster
version:2.1
end:vcard



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
Gpsbabel-misc@...
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc

Re: Problem at converting IGC into gpx

by Robert Lipe-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think it's a bug in whatever wrote that file.   Reading the spec from http://www.fai.org/gliding/gnss/tech_spec_gnss.asp, the pertinent words seem to be on page 41.

The required basic data is: UTC, WGS84latitude, WGS84 longitude, fix validity, Fix Accuracy, pressure altitude and GNSS-altitude.

Whatever wrote that short 'B' line below left out either pressure altitude or GNSS-altitude; we can't tell which.  

If you can't get the writer fixed, manually edit in five digits of GNSS altitude into that line.

RJL

On Wed, Nov 4, 2009 at 4:09 PM, Agustin Lobo <alobolistas@...> wrote:
I'm converting IGC files into csv and, for some files, I get messages like this:

$ gpsbabel -i igc -f 2009-07-29-CGP-xYYY-01.IGC -t -o unicsv,datum="European 1950",grid=4 -F MATA20090729/MATA20090729_1.csv
IGC: fix (B) record parse error
B0649044146471N00227892EA00007

This is at the end of the IGC file:

...
B0700364146756N00226177EA0000001765
B0700364146754N00226177EA0000001764
HFDTE290789
B0649044146471N00227892EA00007
LXCG     TRX0
B0649044146472N00227890EA0000001927
LXCG     VERSION:6.4.a

This file can be read by compegps

Is this a bug in gpsbabel?

Thanks

Agus


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
Gpsbabel-misc@...
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
Gpsbabel-misc@...
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc

Re: Problem at converting IGC into gpx

by Agustin Lobo-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Done what you suggested and works, but get an empty field for altitude in the
cvs file:
No,UTM-Zone,UTM-Ch,UTM-East,UTM-North,Altitude,Date,Time
1,31,T,453246,4625340,,2009/07/29,08:23:05
2,31,T,453246,4625340,,2009/07/29,08:23:07
...

I'm doing this conversion to cvs for many IGC files, this is the only one giving
problems,
but I do not see anything weird on it (besides the missing five digits):
AXCG
HFDTE290709
HFPLTPilot:
HFTZOTimezone:2
HFSITSite:
HPGTYGliderType:
HPGIDGliderID:
HFDTM100DATUM:WGS-1984
HFCIDCOMPETITIONID:
HFCCLCOMPETITIONCLASS:
LXCG     COLOR:218231091
LXCG     WIDT_M:2.0
LXCG POINTSCOUNT:2097
LXCG COORDBOX:2.433627,41.760333,2.483367,41.781503
I033638WVE3941WDI4243SIU
B0623054146603N00226180EA0000001648
LXCG     TRX0
B0623074146603N00226180EA0000001648
B0623094146603N00226180EA0000001648
B0623114146603N00226180EA0000001648
...

Should not height be 1648 on those rows?

Thanks for your help!

Agus

Robert Lipe wrote:

> I think it's a bug in whatever wrote that file.   Reading the spec from
> http://www.fai.org/gliding/gnss/tech_spec_gnss.asp, the pertinent words
> seem to be on page 41.
>
> The required basic data is: UTC, WGS84latitude, WGS84 longitude, fix
> validity, Fix Accuracy, pressure altitude and GNSS-altitude.
>
> Whatever wrote that short 'B' line below left out either pressure
> altitude or GNSS-altitude; we can't tell which.  
>
> If you can't get the writer fixed, manually edit in five digits of GNSS
> altitude into that line.
>
> RJL
>
> On Wed, Nov 4, 2009 at 4:09 PM, Agustin Lobo <alobolistas@...
> <mailto:alobolistas@...>> wrote:
>
>     I'm converting IGC files into csv and, for some files, I get
>     messages like this:
>
>     $ gpsbabel -i igc -f 2009-07-29-CGP-xYYY-01.IGC -t -o
>     unicsv,datum="European 1950",grid=4 -F MATA20090729/MATA20090729_1.csv
>     IGC: fix (B) record parse error
>     B0649044146471N00227892EA00007
>
>     This is at the end of the IGC file:
>
>     ...
>     B0700364146756N00226177EA0000001765
>     B0700364146754N00226177EA0000001764
>     HFDTE290789
>     B0649044146471N00227892EA00007
>     LXCG     TRX0
>     B0649044146472N00227890EA0000001927
>     LXCG     VERSION:6.4.a
>
>     This file can be read by compegps
>
>     Is this a bug in gpsbabel?
>
>     Thanks
>
>     Agus
>
>
>     ------------------------------------------------------------------------------
>     Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>     30-Day
>     trial. Simplify your report design, integration and deployment - and
>     focus on
>     what you do best, core application coding. Discover what's new with
>     Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>     _______________________________________________
>     Gpsbabel-misc mailing list http://www.gpsbabel.org
>     Gpsbabel-misc@...
>     <mailto:Gpsbabel-misc@...>
>     To unsubscribe, change list options, or see archives, visit:
>     https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gpsbabel-misc mailing list http://www.gpsbabel.org
> Gpsbabel-misc@...
> To unsubscribe, change list options, or see archives, visit:
> https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
Gpsbabel-misc@...
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc

Re: Problem at converting IGC into gpx

by Robert Lipe-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Your test case works for me.

$ ./gpsbabel -t -i igc -f al -o  unicsv -F -
No,Latitude,Longitude,Altitude,Date,Time
1,41.776717,2.436333,1648.0,2009/07/29,01:23:05
2,41.776717,2.436333,1648.0,2009/07/29,01:23:07
3,41.776717,2.436333,1648.0,2009/07/29,01:23:09
4,41.776717,2.436333,1648.0,2009/07/29,01:23:11

RJL

On Thu, Nov 5, 2009 at 11:36 AM, Agustin Lobo <alobolistas@...> wrote:
Done what you suggested and works, but get an empty field for altitude in the cvs file:
No,UTM-Zone,UTM-Ch,UTM-East,UTM-North,Altitude,Date,Time
1,31,T,453246,4625340,,2009/07/29,08:23:05
2,31,T,453246,4625340,,2009/07/29,08:23:07
...

I'm doing this conversion to cvs for many IGC files, this is the only one giving problems,
but I do not see anything weird on it (besides the missing five digits):
AXCG
HFDTE290709
HFPLTPilot:
HFTZOTimezone:2
HFSITSite:
HPGTYGliderType:
HPGIDGliderID:
HFDTM100DATUM:WGS-1984
HFCIDCOMPETITIONID:
HFCCLCOMPETITIONCLASS:
LXCG     COLOR:218231091
LXCG     WIDT_M:2.0
LXCG POINTSCOUNT:2097
LXCG COORDBOX:2.433627,41.760333,2.483367,41.781503
I033638WVE3941WDI4243SIU
B0623054146603N00226180EA0000001648
LXCG     TRX0
B0623074146603N00226180EA0000001648
B0623094146603N00226180EA0000001648
B0623114146603N00226180EA0000001648
...

Should not height be 1648 on those rows?

Thanks for your help!

Agus

Robert Lipe wrote:
I think it's a bug in whatever wrote that file.   Reading the spec from http://www.fai.org/gliding/gnss/tech_spec_gnss.asp, the pertinent words seem to be on page 41.

The required basic data is: UTC, WGS84latitude, WGS84 longitude, fix validity, Fix Accuracy, pressure altitude and GNSS-altitude.

Whatever wrote that short 'B' line below left out either pressure altitude or GNSS-altitude; we can't tell which.  
If you can't get the writer fixed, manually edit in five digits of GNSS altitude into that line.

RJL

On Wed, Nov 4, 2009 at 4:09 PM, Agustin Lobo <alobolistas@... <mailto:alobolistas@...>> wrote:

   I'm converting IGC files into csv and, for some files, I get
   messages like this:

   $ gpsbabel -i igc -f 2009-07-29-CGP-xYYY-01.IGC -t -o
   unicsv,datum="European 1950",grid=4 -F MATA20090729/MATA20090729_1.csv
   IGC: fix (B) record parse error
   B0649044146471N00227892EA00007

   This is at the end of the IGC file:

   ...
   B0700364146756N00226177EA0000001765
   B0700364146754N00226177EA0000001764
   HFDTE290789
   B0649044146471N00227892EA00007
   LXCG     TRX0
   B0649044146472N00227890EA0000001927
   LXCG     VERSION:6.4.a

   This file can be read by compegps

   Is this a bug in gpsbabel?

   Thanks

   Agus


   ------------------------------------------------------------------------------
   Let Crystal Reports handle the reporting - Free Crystal Reports 2008
   30-Day
   trial. Simplify your report design, integration and deployment - and
   focus on
   what you do best, core application coding. Discover what's new with
   Crystal Reports now.  http://p.sf.net/sfu/bobj-july
   _______________________________________________
   Gpsbabel-misc mailing list http://www.gpsbabel.org
   Gpsbabel-misc@...
   <mailto:Gpsbabel-misc@...>

   To unsubscribe, change list options, or see archives, visit:
   https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc



------------------------------------------------------------------------


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july


------------------------------------------------------------------------

_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
Gpsbabel-misc@...
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
Gpsbabel-misc@...
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc

Parent Message unknown Re: Problem at converting IGC into gpx

by Robert Lipe-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If can confirm that the first test case you gave doesn't actually show the problem, are on the latest beta, feel free to send another along with any other information needed to actually reproduce it.  

If it's large (> 50K or so) please take some time to minimize the test case (we typically don't need every point of a translantic flight to find one missing field) and, if necessary, put the file on the web somewhere like drop.io if it's just too large for mail.

The grid and data options make no difference for me.

gpsbabel  -i igc -f al -t -o  unicsv,datum="European 1950",grid=4  -F -
No,UTM-Zone,UTM-Ch,UTM-East,UTM-North,Altitude,Date,Time
1,31,T,453246,4625340,1648.0,2009/07/29,01:23:05
2,31,T,453246,4625340,1648.0,2009/07/29,01:23:07
3,31,T,453246,4625340,1648.0,2009/07/29,01:23:09
4,31,T,453246,4625340,1648.0,2009/07/29,01:23:11



RJL

On Thu, Nov 5, 2009 at 11:58 AM, Agustin Lobo <Agustin.Lobo@...> wrote:
Do you mind if I send you the IGC file so you can actually test it?
This is what I'm doing:
gpsbabel -i igc -f 2009-07-29-CGP-xYYY-01.IGC -t -o unicsv,datum="European 1950",grid=4 -F THOME20090729_1.csv

Agus


Robert Lipe wrote:
Your test case works for me.

$ ./gpsbabel -t -i igc -f al -o  unicsv -F -
No,Latitude,Longitude,Altitude,Date,Time
1,41.776717,2.436333,1648.0,2009/07/29,01:23:05
2,41.776717,2.436333,1648.0,2009/07/29,01:23:07
3,41.776717,2.436333,1648.0,2009/07/29,01:23:09
4,41.776717,2.436333,1648.0,2009/07/29,01:23:11

RJL

On Thu, Nov 5, 2009 at 11:36 AM, Agustin Lobo <alobolistas@... <mailto:alobolistas@...>> wrote:

   Done what you suggested and works, but get an empty field for
   altitude in the cvs file:
   No,UTM-Zone,UTM-Ch,UTM-East,UTM-North,Altitude,Date,Time
   1,31,T,453246,4625340,,2009/07/29,08:23:05
   2,31,T,453246,4625340,,2009/07/29,08:23:07
   ...

   I'm doing this conversion to cvs for many IGC files, this is the
   only one giving problems,
   but I do not see anything weird on it (besides the missing five digits):
   AXCG
   HFDTE290709
   HFPLTPilot:
   HFTZOTimezone:2
   HFSITSite:
   HPGTYGliderType:
   HPGIDGliderID:
   HFDTM100DATUM:WGS-1984
   HFCIDCOMPETITIONID:
   HFCCLCOMPETITIONCLASS:
   LXCG     COLOR:218231091
   LXCG     WIDT_M:2.0
   LXCG POINTSCOUNT:2097
   LXCG COORDBOX:2.433627,41.760333,2.483367,41.781503
   I033638WVE3941WDI4243SIU
   B0623054146603N00226180EA0000001648
   LXCG     TRX0
   B0623074146603N00226180EA0000001648
   B0623094146603N00226180EA0000001648
   B0623114146603N00226180EA0000001648
   ...

   Should not height be 1648 on those rows?

   Thanks for your help!

   Agus

   Robert Lipe wrote:

       I think it's a bug in whatever wrote that file.   Reading the
       spec from http://www.fai.org/gliding/gnss/tech_spec_gnss.asp,
       the pertinent words seem to be on page 41.

       The required basic data is: UTC, WGS84latitude, WGS84 longitude,
       fix validity, Fix Accuracy, pressure altitude and GNSS-altitude.

       Whatever wrote that short 'B' line below left out either
       pressure altitude or GNSS-altitude; we can't tell which.          If you can't get the writer fixed, manually edit in five digits
       of GNSS altitude into that line.

       RJL

       On Wed, Nov 4, 2009 at 4:09 PM, Agustin Lobo
       <alobolistas@... <mailto:alobolistas@...>
       <mailto:alobolistas@... <mailto:alobolistas@...>>>

       wrote:

          I'm converting IGC files into csv and, for some files, I get
          messages like this:

          $ gpsbabel -i igc -f 2009-07-29-CGP-xYYY-01.IGC -t -o
          unicsv,datum="European 1950",grid=4 -F
       MATA20090729/MATA20090729_1.csv
          IGC: fix (B) record parse error
          B0649044146471N00227892EA00007

          This is at the end of the IGC file:

          ...
          B0700364146756N00226177EA0000001765
          B0700364146754N00226177EA0000001764
          HFDTE290789
          B0649044146471N00227892EA00007
          LXCG     TRX0
          B0649044146472N00227890EA0000001927
          LXCG     VERSION:6.4.a

          This file can be read by compegps

          Is this a bug in gpsbabel?

          Thanks

          Agus


                ------------------------------------------------------------------------------
          Let Crystal Reports handle the reporting - Free Crystal
       Reports 2008
          30-Day
          trial. Simplify your report design, integration and
       deployment - and
          focus on
          what you do best, core application coding. Discover what's
       new with
          Crystal Reports now.  http://p.sf.net/sfu/bobj-july
          _______________________________________________
          Gpsbabel-misc mailing list http://www.gpsbabel.org
          Gpsbabel-misc@...
       <mailto:Gpsbabel-misc@...>
          <mailto:Gpsbabel-misc@...
       <mailto:Gpsbabel-misc@...>>

          To unsubscribe, change list options, or see archives, visit:
          https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc



       ------------------------------------------------------------------------


       ------------------------------------------------------------------------------
       Let Crystal Reports handle the reporting - Free Crystal Reports
       2008 30-Day trial. Simplify your report design, integration and
       deployment - and focus on what you do best, core application
       coding. Discover what's new with
       Crystal Reports now.  http://p.sf.net/sfu/bobj-july


       ------------------------------------------------------------------------

       _______________________________________________
       Gpsbabel-misc mailing list http://www.gpsbabel.org
       Gpsbabel-misc@...
       <mailto:Gpsbabel-misc@...>
       To unsubscribe, change list options, or see archives, visit:
       https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc




--
Dr. Agustin Lobo
Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
LLuis Sole Sabaris s/n
08028 Barcelona
Spain
Tel. 34 934095410
Fax. 34 934110012
email: Agustin.Lobo@...
http://www.ija.csic.es/gt/obster


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
Gpsbabel-misc@...
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc

Parent Message unknown Re: Problem at converting IGC into gpx

by Robert Lipe-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Thu, Nov 5, 2009 at 12:26 PM, Agustin Lobo <Agustin.Lobo@...> wrote:
I'm using linux (ubuntu jaunty 9.04) and there is no 1.3.7 beta for linux,

I'm not shipping Linux binaries any longer.   The compatibility problems are just too much.   The distro guys are in a better shape to handle the random libusb/devfs/hotplug/incompatible runtime librariy issues than I am.  You can always build from source.   But it turns out that the behaviour here has been  unchanged for a long time.

I tore into this with the debugger and it's working as intended, though I'll confress I found the behaviour surprising.   The IGC module actually builds two tracks for each input, one with GNSS altitude (which you seem to have) and one with PRES altitude (which you don't) For something like KML that has a concept of multiple tracks (LineStrings in KML's case) that's reasonable and you can see them both and compare the instrument discrepancy.  For something like unicsv, it just looks like the track is repeated - once with alt and once without alt.



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
Gpsbabel-misc@...
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc