SkyDemon Forums

How to merge log files?

http://forums.skydemon.aero/Topic9485.aspx

By GeKaiser - 5/31/2013 8:27:45 PM

I have several log files that are (due to any reason) split into peaces, but belong to one continuous flight.

How can I merge them?

e.g.
1st file named "(2,2 nm) Mid-Way - Unknown 201305211720"
2nd file named "(6,4 nm) Unknown - Midlothian 201305211724"
3rd file named "(11 nm) Midlothian - Mid-Way 201305211728"

Is there any way to merge these files to one file like "(19,6 nm) Mid-Way - Mid-Way 201305211720" and show the complete breadcrumb trail?

Removing the "#Start" row in each file did not work, because of the ascending numeration in each row

Any idea?

Georg
By WinHern - 6/18/2013 10:02:24 PM

An easier way is to use the export or mail function to export the files as GPX. This produces files that can be edited in a text editor, e.g. notepad, so much easier.

Open the first file, and you'll notice the actual track data is between two 'trkseg' markers, e.g.

<?xml version="1.0" encoding="utf-8"?>
<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" version="1.1" creator="SkyDemon Plan v2.6.3.0" xmlns="http://www.topografix.com/GPX/1/1">
<trk>
<name>Northampton Sywell - Northampton Sywell</name>
<trkseg> <<<<<< =================
<trkpt lat="52.301990" lon="-0.795403">
<ele>121.4933</ele>
<speed>15.844889</speed>
<time>2010-10-16T09:56:00Z</time>
</trkpt>
.....
.....
</trkseg> <<<<<< =================
******* INSERT HERE *********
</trk>
</gpx>

Take the next file, and copy the data between the <trkseg> markers. Paste it where shown. You can do this as often as you like, but make sue you keep the data in the right time order:
<trkseg>
.....
.....
</trkseg>
<trkseg>
.....
.....
</trkseg>
<trkseg>
.....
.....
</trkseg>
<trkseg>
.....
.....
</trkseg>

.gpx format files can then be viewed in programs such as google earth.