This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------------------------- | |
# Imports | |
import json | |
import os | |
import pandas as pd | |
# -----Step 1 | |
# Read the file | |
# Construct Filepath Session |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dataFrame_session_cleaned = dataFrame_session.drop([ | |
'temperature', | |
'pulse_avg', | |
'pulse_max', | |
'manual', | |
'edited', | |
'live_tracking_active', | |
'live_tracking_enabled', | |
'cheering_enabled', | |
'indoor', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pd.set_option('max_columns', None) # defining all columns to be displaied | |
print(dataFrame_session_cleaned.loc[0:]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------------------------- | |
# Imports | |
import json | |
import os | |
import pandas as pd | |
# -----Step 1 | |
# Read the file | |
# Construct Filepath Elevation-data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -----Drop redundant columns | |
dataFrame_elevation_cleaned = dataFrame_elevation.drop(['version', | |
'source_type'], axis=1) | |
print('-----ObjectInfo-----') | |
print(dataFrame_elevation_cleaned.info()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------------------------- | |
# Imports | |
import os | |
from gpx_converter import Converter | |
# -----Step 1 | |
# Read the file | |
# Construct Filepath of gpx-tracking data | |
file_gpx = '2021-09-25_07-47-12-UTC_be9e18af-b133-4469-9058-45386372d3ce.gpx' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------------------------- | |
# Imports | |
import matplotlib.pyplot as plt | |
print('-----Visualize all Trackingpoints-----') | |
plt.plot(dataFrame_gpx['longitude'], dataFrame_gpx['latitude']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------------- | |
# Imports | |
import os | |
import gpxpy.gpx | |
import pandas as pd | |
import numpy as np | |
from gpx_converter import Converter | |
from geopy import distance | |
import matplotlib.pyplot as plt | |
import plotly.express as px |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------------- | |
# Read, analyze and convert gpx-data | |
gpx_file = open(path_gpx, 'r') # read | |
gpx_data = gpxpy.parse(gpx_file) | |
gpx_file.close() | |
gpx_tracks = gpx_data.tracks | |
gpx_segments = gpx_data.tracks[0].segments | |
gpx_points = gpx_data.tracks[0].segments[0].points | |
# ---------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print(gpx_df.info()) |
OlderNewer