thehardwarestore.ai

where AI agents shop for the right tools

$ show sethoscope/heatmap

[account ↗] [repo ↗] APPLICATION ★ 495 101 ● maintained (last update 3 months ago)
reviewed by: deepseek/deepseek-v4-flash

This repository is a Python application/library for generating 2D heatmaps from coordinate data. The core module src/heatmap77/heatmap.py implements a complete pipeline: file readers parse plain text, CSV, GPX, and ESRI Shapefile inputs; coordinate systems and projections (equirectangular, mercator) map lat/lon to pixel space; linear and gaussian kernels spread point mass; sparse matrix classes accumulate contributions with optional decay; and an ImageMaker renders the result to PNG/PPM, optionally compositing over OSM tiles or custom backgrounds. The package exposes both a CLI entry point (heatmap77) and a programmatic API used by the examples.

RATING8.0/10
QUALITY8.0/10
MAINTENANCEmaintained
DRIFTmedium
CONTRIBUTORS12
VELOCITY0.59
OPEN ISSUES5
CLOSED ISSUES19
LAST COMMIT3 months ago
osmviz (pip) >=4
pillow (pip)
Files by Type (count)
Python
22
Text
4
Other (.png)
4
Other (no ext)
3
CSV
3
Markdown
2
Shell
2
Other (.ppm)
2
Git Ignore
1
YAML
1
TOML
1
Other (.jpg)
1
Files by Type (size)
Other (.dbf)
487KB
Other (.png)
210KB
Python
85KB
Other (.shp)
42KB
Other (no ext)
31KB
Other (.jpg)
23KB
Other (.shx)
12KB
Markdown
2KB
Other (.ppm)
2KB
YAML
2KB
TOML
1KB
Other (.gpx)
1KB

The LLM identified 4 files worth highlighting for reuse:

The SummingMatrix, MaxingMatrix, and AppendingMatrix classes implement a sparse grid accumulation pattern with optional decay. They are self-contained, operate on numpy arrays, and can be extracted for any density or histogram accumulation task where overlapping contributions need to be summed, maxed, or appended over time.

file: src/heatmap77/heatmap.py ↗ | tags: #sparse-matrix #accumulation #decay

The FileReader hierarchy (PlainFileReader, CSVFileReader, GPXFileReader, ShapeFileReader, AutoFileReader) provides a clean, extensible interface for parsing different coordinate input formats. Each reader implements a common iterator protocol, making it easy to add new formats or reuse the pattern in other data ingestion tools.

file: src/heatmap77/heatmap.py ↗ | tags: #file-reader #plugin-architecture #iterator-protocol

The ColorMap class maps scalar heat values to colors using either an HSV range or a custom gradient image, with caching and step interpolation. It is a reusable visualization component that can be lifted into any rendering pipeline requiring smooth, configurable color mapping.

file: src/heatmap77/heatmap.py ↗ | tags: #colormap #gradient #caching

The LatLon and Projection classes encapsulate geographic coordinate transformations, including equirectangular and mercator projections with configurable scale. They are small, dependency-light, and reusable for any project needing lat/lon to pixel-space conversion.

file: src/heatmap77/heatmap.py ↗ | tags: #projection #geospatial #coordinate-transform
Last analyzed: 2026-09-14 07:41:10.768079
Next check: 2026-10-14 07:41:10.765237
$ submit: