| 1 |
<para> |
| 2 |
FAI/IGC Data File -- Used by the international gliding |
| 3 |
community to record gliding flights. IGC files can be converted to |
| 4 |
and from tracks representing recorded flights, and routes representing |
| 5 |
task declarations in other formats. |
| 6 |
</para> |
| 7 |
|
| 8 |
<section xml:id="fmt_igc_notes"> |
| 9 |
<title>IGC Data Format Notes</title> |
| 10 |
<para> |
| 11 |
Refer to Appendix 1 of |
| 12 |
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.fai.org:81/gliding/gnss/tech_spec_gnss.asp">http://www.fai.org:81/gliding/gnss/tech_spec_gnss.asp</link> |
| 13 |
for the specification of the IGC data format. |
| 14 |
</para> |
| 15 |
<para> |
| 16 |
A sample list of software applications that use data in IGC format can be |
| 17 |
found at |
| 18 |
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.fai.org:81/gliding/gnss/gnss_analysis_software.pdf">http://www.fai.org:81/gliding/gnss/gnss_analysis_software.pdf</link> |
| 19 |
</para> |
| 20 |
<para> |
| 21 |
GPSBabel can be used to translate data in IGC format to and from various other |
| 22 |
formats. |
| 23 |
</para> |
| 24 |
<para> |
| 25 |
Routes in other formats are used to represent IGC task declarations. |
| 26 |
</para> |
| 27 |
<para> |
| 28 |
Tracks in other formats are used to represent IGC recorded flights. |
| 29 |
</para> |
| 30 |
</section> |
| 31 |
|
| 32 |
<section xml:id="fmt_igc_convto"> |
| 33 |
<title>Converting to IGC format</title> |
| 34 |
<para> |
| 35 |
IGC files generated by GPSBabel will NOT pass security validation tests since |
| 36 |
the data they contain cannot be proven to originate from an approved flight |
| 37 |
recorder. For most software applications that use IGC files this is not an |
| 38 |
issue but for competition scoring, record and badge claims the generated files |
| 39 |
will not be accepted as proof of a flight. |
| 40 |
</para> |
| 41 |
<para> |
| 42 |
A track stored in another format (GPX for example) representing a recorded |
| 43 |
flight can be converted into an IGC file: |
| 44 |
</para> |
| 45 |
<para><userinput>gpsbabel -i gpx -f mytrk.gpx -o igc -F myflight.igc</userinput></para> |
| 46 |
<para> |
| 47 |
If multiple track segments are provided in the input file, the one with the |
| 48 |
most points will be used. |
| 49 |
</para> |
| 50 |
<para> |
| 51 |
A route stored in another format representing a task declaration can be |
| 52 |
converted into an IGC file: |
| 53 |
</para> |
| 54 |
<para><userinput>gpsbabel -i gpx -f myrte.gpx -o igc -F mytask.igc</userinput></para> |
| 55 |
<para> |
| 56 |
A route and a track in other formats can be included into a single IGC file: |
| 57 |
</para> |
| 58 |
<para><userinput>gpsbabel -i gpx -f mytrk.gpx -f myrte.gpx -o igc -F myflight.igc</userinput></para> |
| 59 |
<para> |
| 60 |
A similar result can be obtained by downloading the track log and routes |
| 61 |
directly from a GPS device connected to a PC. For example to create an IGC |
| 62 |
file from data recorded in a Garmin GPS connected to the first serial port of |
| 63 |
a PC running Linux: |
| 64 |
</para> |
| 65 |
<para><userinput>gpsbabel -t -r -i garmin -f /dev/ttyS0 -o igc -F myflight.igc</userinput></para> |
| 66 |
<para> |
| 67 |
For Windows operating systems: |
| 68 |
</para> |
| 69 |
<para><userinput>gpsbabel -t -r -i garmin -f com1 -o igc -F myflight.igc</userinput></para> |
| 70 |
<para> |
| 71 |
A waypoint file in another format containing a waypoint whose short name is |
| 72 |
"PILOT" can be merged into an IGC file. The description field of the waypoint |
| 73 |
will be used for the pilot name in the IGC file header: |
| 74 |
</para> |
| 75 |
<para><userinput>gpsbabel -i gpx -f mytrk.gpx -f myrte.gpx -f mywpt.gpx -o igc -F myflight.igc |
| 76 |
gpsbabel -w -t -r -i garmin -f /dev/ttyS0 -o igc -F myflight.igc</userinput></para> |
| 77 |
<para> |
| 78 |
Some formats such as GPX allow routes, tracks and waypoints to exist in the |
| 79 |
same file and can be used to fully populate an IGC file: |
| 80 |
</para> |
| 81 |
<para><userinput>gpsbabel -i gpx -f myall.gpx -o igc -F myflight.igc</userinput></para> |
| 82 |
</section> |
| 83 |
|
| 84 |
<section xml:id="fmt_igc_convfrom"> |
| 85 |
<title>Converting from IGC format</title> |
| 86 |
<para> |
| 87 |
Data in an IGC file can be converted into other formats. For example to |
| 88 |
generate OziExplorer files containing tracks representing the recorded |
| 89 |
flight (myozi.plt) and routes representing declared tasks (myozi.rte): |
| 90 |
</para> |
| 91 |
<para><userinput>gpsbabel -i igc -f myflight.igc -o ozi -F myozi</userinput></para> |
| 92 |
<para> |
| 93 |
Or to GPX format: |
| 94 |
</para> |
| 95 |
<para><userinput>gpsbabel -i igc -f myflight.igc -o gpx -F myflight.gpx</userinput></para> |
| 96 |
<para> |
| 97 |
Header information from the IGC file will be written to the description field |
| 98 |
of the track(s). |
| 99 |
</para> |
| 100 |
<para> |
| 101 |
If both pressure altitude and GNSS altitude are recorded in the IGC file, two |
| 102 |
tracks will be written to the new track file, representing the two altitude |
| 103 |
tracks. The latitude, longitude and timestamps in the tracks will be identical. |
| 104 |
</para> |
| 105 |
</section> |
| 106 |
|
| 107 |
<section xml:id="fmt_igc_merge"> |
| 108 |
<title>Merging into IGC format</title> |
| 109 |
<para> |
| 110 |
A route stored in another format can be merged with an existing IGC file that |
| 111 |
has no task declaration, to generate a new IGC file with a task declaration: |
| 112 |
</para> |
| 113 |
<para><userinput>gpsbabel -i igc -f myflight.igc -i gpx -f myrte.gpx -o igc -F mynew.igc</userinput></para> |
| 114 |
<para> |
| 115 |
A two dimensional (lat/lon) track recorded during a flight by a GPS receiver |
| 116 |
can be merged with a one dimensional (altitude) track recorded during the same |
| 117 |
flight by a barograph instrument. The result is a three dimensional IGC file |
| 118 |
representing the flight: |
| 119 |
</para> |
| 120 |
<para><userinput>gpsbabel -i gpx -f baro.gpx -i igc -f my2D.igc -o igc -F my3D.igc</userinput></para> |
| 121 |
<para> |
| 122 |
The same can be achieved by downloading directly from a barograph instrument |
| 123 |
supported by GPSBabel. For example with a Brauniger IQ Comp GPS variometer: |
| 124 |
</para> |
| 125 |
<para><userinput>gpsbabel -i baroiq -f /dev/ttyS0 -i igc -f my2D.igc -o igc,timeadj=auto -F my3D.igc</userinput></para> |
| 126 |
<para> |
| 127 |
or: |
| 128 |
</para> |
| 129 |
<para><userinput>gpsbabel -i baroiq -f com1 -i igc -f my2D.igc -o igc,timeadj=auto -F my3D.igc</userinput></para> |
| 130 |
<para> |
| 131 |
(Documentation contributed by Chris Jones, Aug 2004) |
| 132 |
</para> |
| 133 |
</section> |