Skip to content

ToonElewaut/TDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tour de France Historic Stages Analysis

Overview

This GitHub repository contains an analysis of historic Tour de France stages, along with calculations for estimating power requirements for cyclists during these stages. The analysis incorporates slope, weight, velocity, and stage profile to provide rough insights into the power demands of various Tour de France routes.

Data

The dataset used for this analysis includes historical information about Tour de France stages, including details such as elevation, slope, distance, and rider performance. The data is organized to facilitate exploration and analysis of different aspects of the stages.

For stages since 2020, additional route and power information has been incorporated into the dataset, provided through GPX (GPS Exchange Format) and TCX (Training Center XML) files. GPX files allow the actual profile and route to be displayed instead of estimations based on departure/arrival locations and elevation gain. TCX files allow the actual power of the rider to be overlayed on the route map and profile graph.

Power Calculation

To estimate the power requirements for cyclists during Tour de France stages, a formule from omnicalculator is used. These formula take into account gravitational force, rolling resistance, aerodynamic drag, and stage profile. The power calculations are a VERY rough estimate for the power required for the GC rider of each year (or someone with similar weight) to complete each stage. These calculations dont take drafting into account and don't have the exact profile of each stage, the calculations for each type of stage can be found in power_helper.

Examples

GPX

gpx

TCX

TCX

estimated

estimated

Usage

Option 1: Build Docker Container

  1. Clone the repository:

    git clone https://github.com/ToonElewaut/TDF.git
  2. Navigate to the project directory:

    cd TDF
  3. Build the Docker container:

    docker build -t tdf .
  4. Run the Docker container:

    docker run -p 8050:8050 tdf
  5. Open your web browser and visit http://localhost:8050 to access the application.

Option 2: Run app.py in the src directory

  1. Clone the repository:

    git clone https://github.com/ToonElewaut/TDF.git
  2. Navigate to the project directory:

    cd TDF/src
  3. Install dependencies (assuming you have Python and pip installed):

    pip install -r requirements.txt
  4. Run the application:

    python app.py
  5. Open your web browser and visit http://localhost:8050 to access the application.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published