Create a heatmap of sound pressure levels given various SPL log formats and a GPX track.
sample.html: You can check out a small example I made walking around the block at 4:30AM (< 4 cars on the street at any one time).
$ python splmap.py sample.csv sample.gpx > sample.html
. . . where
sample.csv is your SPL data, which is currently of one specially-formatted CSV file with rows formatted as follows (in local time):
Data will be modified such that each row of the SPL file will be assigned a latitude and longitude value, linearly interpolated from the times for each
<trkpt> of the GPX file. Finally, rows with the same latitude and longitude are consolidated such that the
PEAKSPL are averaged across all rows of the same location.
- I think the Heatmap Layer of the Google Maps API adds the weights of nearby points as you zoom out, which means these heatmaps are sort of useless. I need to find a way to average rather than add. Will probably use something like Gheat (let me know if you have any suggestions.)
- A legend. Derp.
- Get rid of hideous manual HTML output and have splmap.py generate a JSON file which is loaded by a single web page.
- Support a slider for time of day.
- Support more types of SPL data, especially those produced by commercial devices.
- Different, more ecologically relevant noise metrics.
- Fancy interface tools, e.g. being able to select a region and see a timeline of the various noise metrics over time, averaged over all points in the region.
- Web service.