GpxFix Blog

How to Split One Recording Into Separate Activities: Triathlons, Multi-Day Hikes and Double Sessions

By on . Last updated .

Sometimes one file contains more than one activity. You forgot to switch sport in a triathlon and recorded the whole race as a single ride. You left the watch running for a three-day hut-to-hut trip. You rode to the trailhead, ran, and rode home, all in one session. Or you did a morning and an evening run without saving in between. The data is all there, it is just in one container, and the analysis it deserves needs it in two or three.

Why bother splitting at all

  • Pace and heart rate only mean something per sport. An average pace across a swim, a ride and a run is not a number anyone can use.
  • Activity type drives everything downstream, from segment matching to training load to which leaderboards you appear on, see why setting the correct activity type is essential.
  • Elevation and distance totals per sport stay meaningful, instead of one inflated figure attributed to whichever sport the file claims.
  • Multi-day trips belong on the days they happened, not as one 55 hour activity with two nights of sleep in the middle.

Find the boundaries first

Before cutting anything, work out where one activity ends and the next begins. Upload the file to GpxFix and use the chart, transitions are usually obvious: a swim leg has low speed and erratic positions, a ride jumps to 25 or 35 km/h, a run settles somewhere between, and an overnight stop is a long flat stretch with no movement. Select ranges on the chart to read off the track point numbers at each boundary, and write them down before you start, because you will need them more than once.

How the split works in practice

GpxFix has no single split button, the tool that does the job is Crop or cut, which removes a chosen range of track points. So you extract one leg at a time by removing everything that is not that leg, and you repeat the process from the original file for each leg. Keep the original file somewhere safe, you will upload it again for every pass.

  1. Upload the original file.
  2. Remove everything after the end of leg one, selecting from the first point of leg two through to the last point of the track.
  3. Set the correct activity type for leg one.
  4. Download it, and give the file a name you will recognise, for example race-swim.gpx.
  5. Upload the original file again, and this time remove everything before the start of leg two, and everything after its end.
  6. Repeat until every leg has its own file, then upload each one separately.

Removing from both ends of a middle leg takes two crop operations in the same session, one for the part before and one for the part after. Full details of the tool are in the crop and cut guide.

Scenario: an olympic distance triathlon recorded as one single ride, 3 hours total.
Workflow:
  1. Upload the file, find the two transitions on the speed chart and note the point numbers.
  2. Pass one, remove everything from the start of the bike leg to the end, set the type to Swim, download.
  3. Pass two, upload the original again, remove the swim and then the run, set the type to Ride, download.
  4. Pass three, upload the original again, remove everything up to the start of the run, set the type to Run, download.
  5. Upload all three files, each with the right type and its own real timestamps.

Timestamps take care of themselves

Each leg keeps the timestamps it was recorded with, so the second activity starts at the time you actually started it and the elapsed time of each leg is honest. Transitions simply fall into the gaps between the files, which is exactly right for a triathlon, where T1 and T2 belong to neither leg. If a leg ends up with the wrong start time for some other reason, that is fixable separately.

The swim leg will look bad, and that is normal

Open water swim tracks are the worst GPS data most athletes ever see. The watch is underwater most of each stroke, the antenna is at wrist level in chop, and the receiver loses and regains the fix constantly. Expect a zigzag track, a distance that is 10 or 20 percent off, and speed spikes that imply you were swimming faster than you can cycle. Treat it with modest expectations: clear the worst spikes with spike removal, and if the shape is beyond saving, read why some workouts cannot be fixed before spending an hour on it. A pool swim has no usable GPS at all, there is nothing to repair.

Other cases worth splitting

  • Commute plus training ride: split so the hard ride is not diluted by 20 minutes of traffic lights.
  • Race plus warm-up and cool-down: split if you want the race as a clean effort, trim if you simply want the extra off, see forgot to stop your watch.
  • Multi-day hikes: one file per day, with the overnight camp removed, which also stops a stationary night inflating elapsed time.
  • Ride to a trail, then run: two sports, two files, two sets of segments.

Putting files back together

The reverse operation exists too. If you recorded in pieces by accident, for example because the watch saved mid-activity, combining is the tool you want, see how to combine multiple runs into one activity.

Frequently asked questions

Can GpxFix split a file in one click?

Not today. It is a crop per leg, uploading the original again for each pass. It takes a couple of minutes once you know the boundary point numbers.

Do I lose data by splitting?

Each file keeps the track points, timestamps and sensor data for its own leg. What you lose is the transition time between legs, which is usually what you wanted to lose. Keep the original file as the complete record.

Should I delete the original from Strava?

If you already uploaded the combined version, yes, otherwise you count the same work twice. Note that uploading the legs creates new activities, and Strava may flag an overlapping duplicate if the original is still there.

What about multi-sport files from the watch itself?

A device recorded in multi-sport mode usually produces a single file containing separate sessions, and platforms that understand the format will split it for you on upload. The manual approach here is for the case where that did not happen, typically because the whole race was recorded as one sport.

Got one file holding two or three activities? Upload it to GpxFix, find the transitions on the chart, and cut it into the pieces it should have been. Related reading: crop and cut and comparing activities.

Share to