Thursday, March 7, 2019

Converting Daily Temperature Data to Sound with TwoTone

I was distracted yesterday. I saw a tweet by Alberto Cairo (@albertocairo) about a new web-based tool to convert data to sound. I have thought a lot about 'visualization' in sound since my days doing electrophysiology of locust brains at Caltech (I was even acknowledged for 'helpful comments' in a Nature paper). The tool, 'Two Tone' was "made by Datavized Technologies with support from Google News Initiative".

My masterpiece is here: Chicago vs. Redwood City (temperatures, 2015, SoundCloud)

I wanted to try it, and the first thoughts I had were to use data from a fitness tracker (e.g. steps per day), but I don't have one. Next I thought to nerdily plot my Github contributions over time. But for now I've done something a little more conventional: plot the minimum temperature over a year in Chicago, and in the Bay Area.

I started by getting data from Google's BigQuery accessing NOAA's Global Historical Climate Network (GHCN). After a little trial and error based on Google's existing examples, I figured out that the daily minimum temperature in Chicago for 2015 can be found with:

  wx.value/10.0 AS min_temperature
  `bigquery-public-data.ghcn_d.ghcnd_2015` AS wx
  id = 'USW00094846'
  AND qflag IS NULL
  AND element = 'TMIN'

To do the same for Redwood City, CA (the nearest station to me), I used
id = 'USC00047339'
(found here).

Lots of caveats: TwoTone probably normalizes the dynamic range, so we don't get a fair comparison of the two cities. I'd also like more control over features of the audio: the maximum tempo is 300 bpm, but audio data can be processed much faster by the brain; I'd also like to be able to combine tracks with an eye to meaningfully comparing the data. I did this in Garage Band, but by then, the data had been converted to audio waves. One of the great features of TwoTone is to manipulate sound visualizations, while still looking at the source data. I look forward to the evolution of this tool, and generally to the field of audio 'visualizations' of data.


  1. Stop looking all over the internet anymore about the easiest way to grow your business. I have a few suggestions for you regarding this topic and trust me, it won’t...

  2. Stop looking all over the internet anymore about the easiest way to grow your business. I have a few suggestions for you regarding this topic and trust me, it won’t... new york news now

  3. I guess I am not the only one having all the enjoyment here! keep up the good work... Fire Place Sounds

  4. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. climate chambers

  5. Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!Thanks humidity chamber

  6. There is additionally the progressive Electronic temperature controllers' sort ETCIL intended for family unit machines. CAREL Malaysia

  7. The National Weather Service (NWS) was first founded in 1870 by a resolution by President Ulysses S. Grant "to provide for taking meteorological observations at the military stations in the interior of the continent and at other points in the States and Territories... and for giving notice on the northern (Great) Lakes and on the seacoast by magnetic telegraph and marine signals, of the approach and force of storms." George Washington, Ben Franklin, and Thomas Jefferson all established an interest in weather-related recordings prior to the establishment of the National Weather Service. This interest influenced the role and developement of the National Weather Service. Barrackpore

  8. Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging,
    Tax Returns for Sole traders in Barking