{"id":2164,"date":"2022-01-19T00:01:57","date_gmt":"2022-01-19T08:01:57","guid":{"rendered":"https:\/\/partofthething.com\/thoughts\/?p=2164"},"modified":"2022-01-19T07:45:56","modified_gmt":"2022-01-19T15:45:56","slug":"measuring-the-tonga-eruption-pressure-wave-with-a-home-weather-station","status":"publish","type":"post","link":"https:\/\/partofthething.com\/thoughts\/measuring-the-tonga-eruption-pressure-wave-with-a-home-weather-station\/","title":{"rendered":"Measuring the Tonga eruption pressure wave with a home weather station"},"content":{"rendered":"\n<p>The <a href=\"https:\/\/en.wikipedia.org\/wiki\/2022_Hunga_Tonga_eruption_and_tsunami\">Tonga eruption on January 14, 2022<\/a> sent a big shock wave out in all direction in the atmosphere. I had once read about how the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Krakatoa#1883_eruption\">Krakatoa eruption<\/a> shock wave was measured 7 times going around the world, so I wondered if I could measure it with <a href=\"https:\/\/partofthething.com\/thoughts\/weather-and-air-quality-monitoring-station-with-esp8266-and-home-assistant\/\" data-type=\"post\" data-id=\"1866\">my weather station<\/a>. Sure enough, I could!<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>I have two pressure sensors that update every 30 seconds. One is inside and the other is outside. 8.5 hours after the eruption, the first wave reached my house (traveling directly from Tonga to Seattle). About 15 hours later, another wave reached my house, this one traveling the opposite direction from Tonga to Seattle around <em>the back way<\/em>. Both of these waves registered well on my sensor. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"724\" src=\"https:\/\/partofthething.com\/thoughts\/wp-content\/uploads\/tonga-1024x724.png\" alt=\"\" class=\"wp-image-2167\" srcset=\"https:\/\/partofthething.com\/thoughts\/wp-content\/uploads\/tonga-1024x724.png 1024w, https:\/\/partofthething.com\/thoughts\/wp-content\/uploads\/tonga-300x212.png 300w, https:\/\/partofthething.com\/thoughts\/wp-content\/uploads\/tonga-768x543.png 768w, https:\/\/partofthething.com\/thoughts\/wp-content\/uploads\/tonga-1536x1086.png 1536w, https:\/\/partofthething.com\/thoughts\/wp-content\/uploads\/tonga.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>The primary pressure wave reaching Seattle first directly and then around the world the long way.<\/figcaption><\/figure>\n\n\n\n<p>Given the time of arrival, I figured I could probably predict when to look for the 2nd and maybe even 3rd passes of these waves if they made it all the way around the world multiple times as I had heard about. So I wrote a little python script to predict the times of arrival:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from geopy import distance\nimport math\nimport datetime as dt\nfrom zoneinfo import ZoneInfo\n\ntonga = (-20.550000, -175.385)\nseattle = (47.63, -122.33)\n\n\npt = ZoneInfo(\"America\/Los_Angeles\")\n# https:\/\/earthquake.usgs.gov\/earthquakes\/eventpage\/pt22015050\/executive\neruption = dt.datetime(\n    2022, 1, 15, hour=4, minute=14, second=0, microsecond=0, tzinfo=dt.timezone.utc\n)\n\nwave1 = dt.datetime(2022, 1, 15, hour=4, minute=21, second=34, microsecond=0, tzinfo=pt)\nwave2 = dt.datetime(2022, 1, 15, hour=23, minute=50, second=5, microsecond=0, tzinfo=pt)\n\ndist = distance.great_circle(tonga, seattle)\n\nd1 = dist.km\ncircum = 2 * math.pi * distance.EARTH_RADIUS\nd2 = circum - d1\n\ntd1 = (wave1 - eruption).total_seconds()\ntd2 = (wave2 - eruption).total_seconds()\n\ns1 = d1 \/ td1\ns2 = d2 \/ td2\nspeed = (s1 + s2) \/ 2.0\n\nprint(\"{:4s} {:&gt;30s} {:&gt;30s}\".format(\"Pass\",\"Short way\", \"Long way\"))\nfor loop in range(7):\n    t1 = wave1 + dt.timedelta(seconds=circum * loop \/ speed)\n    t2 = wave2 + dt.timedelta(seconds=circum * loop \/ speed)\n    print(f\"{str(loop+1):4s} {t1:%30c} {t2:%30c}\")\n\n<\/code><\/pre>\n\n\n\n<p>This code prints out the following predictions:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>Pass<\/th><th>Short way<\/th><th>Long way<\/th><\/tr><\/thead><tbody><tr><td>1<\/td><td>Sat Jan 15 04:21:34 2022<\/td><td>Sat Jan 15 23:50:05 2022<\/td><\/tr><tr><td>2<\/td><td>Sun Jan 16 15:53:54 2022<\/td><td>Mon Jan 17 11:22:25 2022<\/td><\/tr><tr><td>3<\/td><td>Tue Jan 18 03:26:15 2022<\/td><td>Tue Jan 18 22:54:46 2022<\/td><\/tr><tr><td>4<\/td><td>Wed Jan 19 14:58:36 2022<\/td><td>Thu Jan 20 10:27:07 2022<\/td><\/tr><tr><td>5<\/td><td>Fri Jan 21 02:30:56 2022<\/td><td>Fri Jan 21 21:59:27 2022<\/td><\/tr><tr><td>6<\/td><td>Sat Jan 22 14:03:17 2022<\/td><td>Sun Jan 23 09:31:48 2022<\/td><\/tr><tr><td>7<\/td><td>Mon Jan 24 01:35:38 2022<\/td><td>Mon Jan 24 21:04:09 2022<\/td><\/tr><\/tbody><\/table><figcaption>Predicted wave arrival times in Seattle<\/figcaption><\/figure>\n\n\n\n<p>Then I waited. Sure enough, I saw more features for the 2nd passes! The third pass of both waves was arguably detected. The wave was going quiet a bit slower than I predicted, so it must have slowed down over time. The arrivals were between 30 and 60 minutes behind when I had predicted them. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"694\" src=\"https:\/\/partofthething.com\/thoughts\/wp-content\/uploads\/tonga5-1024x694.png\" alt=\"\" class=\"wp-image-2171\" srcset=\"https:\/\/partofthething.com\/thoughts\/wp-content\/uploads\/tonga5-1024x694.png 1024w, https:\/\/partofthething.com\/thoughts\/wp-content\/uploads\/tonga5-300x203.png 300w, https:\/\/partofthething.com\/thoughts\/wp-content\/uploads\/tonga5-768x520.png 768w, https:\/\/partofthething.com\/thoughts\/wp-content\/uploads\/tonga5-1536x1040.png 1536w, https:\/\/partofthething.com\/thoughts\/wp-content\/uploads\/tonga5.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The first 6 sightings of the pressure wave in Seattle<\/p>\n\n\n\n<p>Super fun. I even did my <a href=\"https:\/\/www.youtube.com\/watch?v=8ZYV3VicDok&amp;t=619s\">first-ever live stream<\/a> to see if my first prediction was correct, and of course I <a href=\"https:\/\/twitter.com\/whatisnuclear\/status\/1482571203663446016\">tweeted about<\/a> them a lot. <\/p>\n\n\n\n<p>Super fun. I&#8217;ll update the plots if I do see the 4th pass. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Tonga eruption on January 14, 2022 sent a big shock wave out in all direction in the atmosphere. I had once read about how the Krakatoa eruption shock wave was measured 7 times going around the world, so I wondered if I could measure it with my weather station. Sure enough, I could!<\/p>\n","protected":false},"author":1,"featured_media":2165,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[69],"tags":[],"class_list":["post-2164","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electronics-and-physics"],"_links":{"self":[{"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/posts\/2164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/comments?post=2164"}],"version-history":[{"count":3,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/posts\/2164\/revisions"}],"predecessor-version":[{"id":2172,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/posts\/2164\/revisions\/2172"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/media\/2165"}],"wp:attachment":[{"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/media?parent=2164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/categories?post=2164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/partofthething.com\/thoughts\/wp-json\/wp\/v2\/tags?post=2164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}