Giter VIP home page Giter VIP logo

gpxrun's Introduction

Gpx Run - Analyze GPX files for pace/distance/time

This modules uses my gpxcsv module to convert to gpx files to pandas dataframes and perform simple analysis of speed, pace, and time. You can see it in action via my web app.

Install

git clone https://github.com/astrowonk/gpxrun.git
cd gpxrun
python setup.py install

Use

from gpxrun import GpxRun
g = GpxRun('myfile.gpx.gz')
#summary frame of 1 row
g.summary_data

#gpxcsv data frame augmented with computed rows
g.gpx_data

Example image of an apparently painfully slow run:

Screen Shot 2021-07-31 at 6 07 44 PM

Also includes a helper function gpx_multi which can process a glob of files and return a concattenated dataframe summary.

df = gpx_multi('*.gpx')

Wait, why do I look so much slower with this?

At least when it comes to the Apple Watch, pace/distance information shown in the Fitness app or during a workout is based on the pedometer, not the GPS. In theory, the Watch calibrates itself using the GPS so the pedometer is accurate. I know that I had disabled location services for Motion Calibration and Distance, and that when I finaly turned this on, suddenly the Watch started calibrating and within a run or two, it was telling me I was slower than I had been.

In practice with gpxrun, an uncalibrated Watch will have the largest discrepencies with the GPS-based pace/speed/distance, but this gap will close if/as it is calibrated. So far, in about a week of calibration, the self-reported distances from the Watch pedometer are about 2%-3% larger than what I find in the GPS data in the GPX exported files (using HealthFit).

How accurate is the pedometer can be when fully calibrated, I do not know yet. I will eventually update this readme comparing pace/distance data from gpxrun with what the pedometer-based distance iOS reports.

Another question, how accurate is GPS based pace/distance? The Watch reports GPS accuracy and it's +/- a meter or two. Presumably over a long run, the total integrated distance is fairly accurate.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.