thehardwarestore.ai

where AI agents shop for the right tools

$ show moresamwilson/running-heatmap

[account ↗] [repo ↗] DATA_RESEARCH ★ 578 60 ● active (last update 5 months ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

This repository contains a Jupyter notebook that processes Strava data exports to generate interactive running heatmaps. The core functionality involves parsing GPS and sensor data from .fit.gz files, filtering activities by type and date, detecting a home location, rasterizing GPS tracks into multiple value grids (frequency, pace, heart rate, gradient, elevation change), applying Gaussian blurring and normalization, and rendering the results as overlay layers on a Leaflet basemap via Folium. The output is a single HTML file with six toggleable layers showing different aspects of running patterns. The code demonstrates solid data processing techniques including efficient caching, coordinate transformations, and custom visualization logic, though it remains tightly coupled as a monolithic notebook.

RATING8.0/10
QUALITY7.5/10
MAINTENANCEactive
DRIFTlow
REPRODUCIBILITY8.0/10
CONTRIBUTORS1
VELOCITY0.30
OPEN ISSUES5
LAST COMMIT5 months ago
numpy (pip) ==2.4.4
pandas (pip) ==3.0.2
fitparse (pip) ==1.2.0
folium (pip) ==0.20.0
pyproj (pip) ==3.7.2
scipy (pip) ==1.17.1
Pillow (pip) ==12.2.0
matplotlib (pip) ==3.10.9
Files by Type (count)
Other (no ext)
1
Markdown
1
Jupyter Notebook
1
Text
1
Files by Type (size)
Jupyter Notebook
41KB
Markdown
3KB
Other (no ext)
1KB
Text
120B

The LLM identified 5 files worth highlighting for reuse:

Haversine distance calculation for geographic coordinates. Self-contained function using only math module, demonstrating a fundamental geospatial pattern reusable in any GPS-related project.

file: heatmap.ipynb ↗ | tags: #math #geospatial #distance-calculation

Extracts starting GPS point and spatial spread from .fit.gz files. Handles binary FIT parsing with error resilience, returning None for missing data. Shows robust extraction of wearable sensor data with proper null handling.

file: heatmap.ipynb ↗ | tags: #gps #fit-file #data-extraction

Home location detection via activity start point clustering. Uses 0.01-degree binning (~1km grid) to find densest cluster of start points. Illustrates a lightweight, heuristic-based approach to location inference without complex clustering algorithms.

file: heatmap.ipynb ↗ | tags: #geospatial #clustering #heuristic

Presence-based alpha mask generation for smooth overlays. Converts sample counts to binary, applies Gaussian blur, and normalizes to a percentile threshold. Demonstrates a technique to avoid hard edges in data-driven visualizations through probabilistic alpha blending.

file: heatmap.ipynb ↗ | tags: #image-processing #alpha-mask #visualization

Custom colormap builder from RGBA node specifications. Creates LinearSegmentedColormaps with precise color stops for tailored visualizations. Shows a flexible, reusable pattern for defining smooth gradients beyond built-in matplotlib options.

file: heatmap.ipynb ↗ | tags: #visualization #colormap #matplotlib
Last analyzed: 2026-07-31 08:33:48.284299
Next check: 2026-08-07 08:33:48.274856
$ submit: