GPX

GPX file handling.

komoog.gpx.convert_gpx_tracks_to_arrays(gpx_tracks)[source]

Take a list of gpx Track objects and convert them to two arrays, one containing the two-dimensional distance covered on the globe, the second containing the elevation.

Parameters

gpx_tracks (list of gpx.Track) -- list of tracks to convert

Returns

  • distance (numpy.ndarray) -- Contains the covered 2D distance in meters.

  • elevation (numpy.ndarray) -- Contains the corresponding elevation profile in meters

komoog.gpx.convert_tour_to_gpx_tracks(tour)[source]