When did the blast wave of the eruption "hit" your station?

896 views
Skip to first unread message

michael.k...@gmx.at

unread,
Jan 16, 2022, 5:46:25 AM1/16/22
to weewx-user
As you may have noticed, there was a huge vulcano eruption in the southern pacific. The blast wave hit central europe yesterday n the evening around 20:10 CET.

You can observe a steep rise in pressure at the time:
2022-01-16 11_40_47-Das Wetter in Rif - Brave.png
You can see the spike in weewx stations around the world...

uajqq

unread,
Jan 16, 2022, 11:18:07 AM1/16/22
to weewx-user
About 11:00 EST for my location!

michael.k...@gmx.at

unread,
Jan 16, 2022, 11:34:54 AM1/16/22
to weewx-user
A closer look shows the shockwave from the other side also:
signal-2022-01-16-163223_001.png

Nate Bargmann

unread,
Jan 16, 2022, 1:15:39 PM1/16/22
to weewx...@googlegroups.com
Looking at the past 24 hours there is an interesting "wave" shown just
after midnight (0600 UTC) here. What time did it occur? News reports
refer to "local time" but make no mention of UTC.

- Nate

--
"The optimist proclaims that we live in the best of all
possible worlds. The pessimist fears this is true."
Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819

daybarometer.png

Karen K

unread,
Jan 16, 2022, 2:36:10 PM1/16/22
to weewx-user
Interesting! I immediately looked into my records and - yeah - it's there, too.

tonga-480-2022-01-15.png

paul.ba...@gmail.com

unread,
Jan 16, 2022, 4:10:18 PM1/16/22
to weewx-user
Fascinating observations!    It would be very nice to have the precises coordonates for all stations.
Included is a very preliminary plot of the two events.  I suspect we can find other "reverberations".
My coordonates are 46:22:50 N / 6:13:31 E  / 410 m (Nyon in Switzerland)..
The times arre given in UTC hours and the barometer in mbar. Left graph for JAnuary 15, right for January 16.
The station is a Weatherflow Tempest, sampling interval is every 100 s.
Waiting for other observations!     Have a good day,     Paul
Baro.ps

Nate Bargmann

unread,
Jan 16, 2022, 6:43:59 PM1/16/22
to weewx...@googlegroups.com
It may be that the first wave came through much earlier than I have a
graph available. My graphs from the daily view has scrolled past the
point where anything around 1400 to 1500z 15 Jan can no longer be seen.

There is probably some way to query the DB on the WeeWX server to tease
this data out if anyone would be so kind as to share. I use the SQLite
backend.
signature.asc

Greg Troxel

unread,
Jan 16, 2022, 6:47:38 PM1/16/22
to Nate Bargmann, weewx...@googlegroups.com
It's easy, but then you get to play with awk to get what you really
want.

sqlite3 weewx.sdb "select dateTime, barometer, altimeter, pressure from archive order by dateTime;"


Rick Kowalewski

unread,
Jan 16, 2022, 8:33:41 PM1/16/22
to weewx...@googlegroups.com
From Perth, Western Australia

Image

Cheers, Rick

Tim Tuck

unread,
Jan 16, 2022, 8:40:39 PM1/16/22
to weewx...@googlegroups.com
And this video shows amalgamated data and other satellite pics.

https://www.youtube.com/watch?v=zoMRwyNhqJ4

cheers

Tim


Les Niles

unread,
Jan 16, 2022, 10:51:43 PM1/16/22
to weewx...@googlegroups.com
I had to pull the data out of the database and plot it in a spreadsheet. Taking a second look, I found the long-path pulse also. The second trip around should be about 32-36 hours later; I haven’t looked for that yet.

-Les

PressureWave15Jan2022.png

Cameron D

unread,
Jan 17, 2022, 2:22:58 AM1/17/22
to weewx-user
I did the same, since by the time I looked it had disappeared from the daily plot.
I am 3300km from the volcano (East coast Australia).
Unfortunately my station only updates the barometer value every 15 minutes, so there is only a single point at the "peak", a value back around average, then the next reading is the negative pulse.
Hunga-Tonga-volcano-barometer-trace.png
I've plotted about a week, to get an idea how much noise there usually is in the data. The first red arrow is the primary pulse and the second wave, a bit less than 30 hours later.
I wondered whether the stuff indicated by the green arrow was more eruptions, but then realised it was a band of thunderstorms passing over..

I also looked at barometer plots from the Australian weather Bureau and did a crude plot of timing vs distance. From Norfolk Island to Perth gives us a range from 2000 and 7000 km from the volcano...

Hunga-Tonga-volcano-timing.png
Those results are only reported every 30 minutes, so the error bars would be rather big.

Les Niles

unread,
Jan 17, 2022, 2:42:46 AM1/17/22
to weewx...@googlegroups.com
OK, this is getting kind of ridiculous: I’ve picked up the first wave on its second pass around the Earth, at 14:20 PST January 16.  From the timing, I’m estimating that the wave propagates at an altitude where the temperature is about -15ºC.  The second pass of the long-path wave should come around tomorrow morning.  The whole saga is at http://www.2pi.org/wx/TongaVolcano.html

  -Les


On 16 Jan 2022, at 19:51, Les Niles <l...@2pi.org> wrote:

I had to pull the data out of the database and plot it in a spreadsheet. Taking a second look, I found the long-path pulse also. The second trip around should be about 32-36 hours later; I haven’t looked for that yet.

 -Les

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/AC7953D3-80D3-4F87-9EC2-D2ACBDE2370B%402pi.org.


On Jan 16, 2022, at 3:44 PM, Nate Bargmann <n0...@n0nb.us> wrote:

It may be that the first wave came through much earlier than I have a
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/20220116234355.5rr4jtrjpjcz32ax%40n0nb.us.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/AC7953D3-80D3-4F87-9EC2-D2ACBDE2370B%402pi.org.

Timothy Bryan

unread,
Jan 17, 2022, 9:30:29 AM1/17/22
to weewx-user
My buddy who also has a station near by  think this is when the wave went by in Hawai'i
530B520F-E032-41C8-9C67-B387E7664D7D.jpeg

Bob

unread,
Jan 17, 2022, 12:50:05 PM1/17/22
to weewx...@googlegroups.com
For those who find this topic interesting you might want to look at
Hamsci @ Googlegroups.

Bob - wd6dod

morr...@gmail.com

unread,
Jan 17, 2022, 2:58:26 PM1/17/22
to weewx-user
Not sure I am really seeing it here in maritime Canada. We're about 13000 km from Tonga.

Attached is a gnuplot command file and its output is:
barometer.png
The pressure pulse should have arrived about 12:00 local time. There is a little pressure increase at about 12:10.

Use the command file to read from weewx database:

rm barometer.png; sqlite3 weewx.sdb "select datetime, barometer from archive where datetime > 1642320000 and datetime < 1642384200 order by dateTime;" | gnuplot barometer.gnup

and modify as needed for your own location.

barometer.gnup

Rob Cranfill

unread,
Jan 17, 2022, 10:24:20 PM1/17/22
to weewx-user
TongaPressureWave.jpg
Seattle, Washington! I noticed it the same day, but didn't read y'all's comments till now. Pretty cool. :-)

storm...@gmail.com

unread,
Jan 17, 2022, 10:48:35 PM1/17/22
to weewx-user
Check early morning Jan 16, when the wave came the opposite direction. Might of capture that wave.  They say the second wave was stronger on the east coast.

Eruption Pressure Blips.png  

Les Niles

unread,
Jan 17, 2022, 10:51:05 PM1/17/22
to weewx...@googlegroups.com
I think you’re looking at the wrong time period.  The initial, direct wave arrived at the U.S. west coast — about 8400 Km from Tonga — around 4:00am Pacific time on Jan 15.  It should take 3-1/2 to 4 hours to travel the additional 4600 Km to your location.  That, plus the 4 hour time difference, would put it at around 12:00 noon your time on Jan 15, not Jan 16.  The long path wave should’ve arrived at your location something like 13-14 hours later, or shortly after midnight on Jan 16.  The second trip around the Earth of the initial wave would be something like 32-36 hours after the first arrival, or 20:00-24:00 your time on Jan 16.  What you’ve plotted here misses all of those.  

  -Les


barometer.gnup
barometer.png
Message has been deleted

morr...@gmail.com

unread,
Jan 18, 2022, 12:40:46 PM1/18/22
to weewx-user
I may be starting to obsess a bit, but give the attached python script a try. You may have to install additional modules, e.g. geopy and sqlite3.

1. On line 9, specify your location
2. On line 14, specify the range of hours you want to examine, around the event.
3. On line 25, you may need to adjust the query if your pressure data is not in the barometer column of the archive table
3. Move to the directory containing your weewx.sdb database, or on line 22, specify its full path.
4. Run the script

The script calculates the distance from the eruption to your location, the travel time to your location at the speed of sound, and then queries and plots, and saves the barometer data for a time range around the estimated arrival time. It also remove any linear trend and plots the difference from that linear trend. 

Follow up with any improvements!

Mine looks like this:
hunga_tonga.png
tonga_barometer.py

michael.k...@gmx.at

unread,
Jan 18, 2022, 2:35:59 PM1/18/22
to weewx-user
Obsessed? You're just wrong in the right way :D ;)

I really like this thread, and your script. Here is my result:

distance to eruption 16894.9 km arrival at 1642272882 (2022-01-15 19:54:41)

Google Earth Pro tells me, the distance is 16880.6km. 

hunga_tonga.png

michael.k...@gmx.at

unread,
Jan 18, 2022, 2:39:22 PM1/18/22
to weewx-user
An improvement could be to also extract data for the 2nd wave from the other direction.

Karen K

unread,
Jan 18, 2022, 2:45:22 PM1/18/22
to weewx-user
What I realized: The arrival time is not quite accurate in my case. The script says 19:35, but the records show the peak at 20:25. 
Message has been deleted

vince

unread,
Jan 18, 2022, 4:15:49 PM1/18/22
to weewx-user
Very cool - I had to spin up a gnome desktop lightsail instance and VNC in from my Mac mini but I got there.  Is there a way to run this one headless to generate the image for viewing on a different computer ?

FWIW - on ubuntu you need to: "sudo apt-get install python3-matplotlib python3-numpy python3-geopy" for the requisite pieces of the puzzle.

My data => distance 9195.8 km arrival at 1642248822 (2022-01-15 04:13:41) here about 3 km from the water between Seattle+Tacoma

Screen Shot 2022-01-18 at 12.59.15 PM.png

morr...@gmail.com

unread,
Jan 18, 2022, 9:29:46 PM1/18/22
to weewx-user
On Tuesday, January 18, 2022 at 5:15:49 p.m. UTC-4 vince wrote:
Very cool - I had to spin up a gnome desktop lightsail instance and VNC in from my Mac mini but I got there.  Is there a way to run this one headless to generate the image for viewing on a different computer ?

Easiest is just to comment out the "plt.show()"  at the end. I've attached a version which does that, and pretties up the output a bit.


FWIW - on ubuntu you need to: "sudo apt-get install python3-matplotlib python3-numpy python3-geopy" for the requisite pieces of the puzzle.

My data => distance 9195.8 km arrival at 1642248822 (2022-01-15 04:13:41) here about 3 km from the water between Seattle+Tacoma

It looks like your pressure was fairly flat. Maybe expand the time range, so that's obvious?
 
tonga_barometer.py

Cameron D

unread,
Jan 18, 2022, 11:42:04 PM1/18/22
to weewx-user
Thanks for that obsession. I was wondering how to start learning about plotting in python.  I've not got very far.
What I have done in the attached version is:
  • add option towork with mysql db
  • plot first 3 pulse times.
  • added a background grey bar for 3 min either side of hte expected time.
  • also a wide-scale plot covering them all.
  • as you get closer to the equator, tidal changes dominate the baseline in that timescale - I tried higher order polynomials, but they are next to useless.
This version generates 4 png files.Hunga_Tonga_return.png
I was even able to see a small dip at the expected time it was making its second pass around (as seen in the image). The dip far left is the opposite direction pulse.
tonga_barometer+mysql.py

morr...@gmail.com

unread,
Jan 19, 2022, 10:32:49 AM1/19/22
to weewx-user
On Wednesday, January 19, 2022 at 12:42:04 a.m. UTC-4 Cameron D wrote:
  • as you get closer to the equator, tidal changes dominate the baseline in that timescale - I tried higher order polynomials, but they are next to useless.
I also had little luck with higher order polynomials to remove the general trend.

bgra...@umw.edu

unread,
Jan 20, 2022, 12:29:36 PM1/20/22
to weewx-user
Hello,
Not being a programmer, I probably shouldn't have messed with this, but being curious...

I tried the code posted on github as well as the one by Cameron D. In both cases I got the following error:
```
root@n4mrv:/home/bg/weewx_tonga_browse-main# python3 ./tonga.py   [file from Cameron D]

distance to eruption 12056.6 km arrival at 1642258360 (2022-01-15 09:52:39)
      opposite pulse arrival at 1642308921 (2022-01-15 23:55:21)
      second time around pulse arrival at 1642385471 (2022-01-16 21:11:10)
Traceback (most recent call last):
  File "./tonga.py", line 178, in <module>
    plot_burst( cursor, arrival_time, hour_span, "primary" )
  File "./tonga.py", line 54, in plot_burst
    coeff = np.polyfit(xdata, ydata, background_order )
  File "<__array_function__ internals>", line 180, in polyfit
  File "/usr/local/lib/python3.8/dist-packages/numpy/lib/polynomial.py", line 638, in polyfit
    raise TypeError("expected non-empty vector for x")
TypeError: expected non-empty vector for x
```
I added my lat/lon information but may have missed something else I need to change. Python modules were installed as directed. Copy of weewx.sdb is in the same directory as the program.
Thanks.
Bob

morr...@gmail.com

unread,
Jan 20, 2022, 5:25:50 PM1/20/22
to weewx-user
It looks like you retrieved no data. It calculated decent looking arrival times, so no problem with the change you made?

Try just a query for data spanning the first arrival. From a shell prompt:

sqlite3 weewx.sdb "select datetime, barometer from archive where datetime > 1642258360-100000 and datetime < 1642258360+100000 order by dateTime;"

Cameron D

unread,
Jan 20, 2022, 8:12:55 PM1/20/22
to weewx-user
yes, definitely looks like there is no data.
I have attached another version of mine, in which the trend line is disabled by default, but I suspect that would just delay the inevitable and it would crash trying to do the plot.

I also fixed up a few plotting errors in my code to do with the mysteries (to me) of layer ordering.
I also had a background bar showing either side of expected arrival - in this version I have now changed that to start at the expected arrival and stop 1 hour later.
tonga_barometer+mysql.py

storm...@gmail.com

unread,
Jan 20, 2022, 9:14:44 PM1/20/22
to weewx-user
Download the latest script from https://github.com/morrowwm/weewx_tonga_browse. Beside installing the Python Modules Vince stated above, I needed to also install  python3-scipy. I do have data between 1642172400 and 1642693629; except for a couple "null" in that time period.   So when I run the script, I get the following error.

raspberrypi:~/Desktop/Tonga $ python3 tonga_barometer.py
distance to eruption 13293.9 km arrival at 1642261629 (2022-01-15 10:47:08)
select datetime, barometer from archive where datetime > 1642172400 and datetime < 1642693629 order by dateTime;

Traceback (most recent call last):
  File "tonga_barometer.py", line 47, in <module>
    coeff = np.polyfit(xdata, ydata, 2)
  File "/usr/lib/python3/dist-packages/numpy/lib/polynomial.py", line 590, in polyfit
    y = NX.asarray(y) + 0.0
TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'

There should be a way to check for "null" data within the time period.

Cameron D

unread,
Jan 20, 2022, 9:21:59 PM1/20/22
to weewx-user
To eliminate NULL data points use a query like:
select datetime, barometer from archive where datetime > 1642172400 and datetime < 1642693629 and barometer is not null order by dateTime;
 You could add the part in bold into the query in the python script.

Of course, if they are all null...

Cameron D

unread,
Jan 20, 2022, 9:27:13 PM1/20/22
to weewx-user
and add a debug printout for how many result lines there are after ...
    result = cursor.fetchall()
add the line:
    print( "query returned {} data points".format(len(result)))


storm...@gmail.com

unread,
Jan 20, 2022, 10:09:28 PM1/20/22
to weewx-user
Modified the query and added the print statement as suggested by Cameron D and here are the results:

Morrowwn Script:

raspberrypi:~/Desktop/Tonga $ python3 tonga_barometer.py
distance to eruption 13293.9 km arrival at 1642261629 (2022-01-15 10:47:08)
select datetime, barometer from archive where datetime > 1642172400 and datetime < 1642693629 order by dateTime;
Traceback (most recent call last):
  File "tonga_barometer.py", line 47, in <module>
    coeff = np.polyfit(xdata, ydata, 2)
  File "/usr/lib/python3/dist-packages/numpy/lib/polynomial.py", line 590, in polyfit
    y = NX.asarray(y) + 0.0
TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'


Cameron D Script:

raspberrypi:~/Desktop/Tonga $ python3 tonga_baro.py
distance to eruption 12255.7 km arrival at 1642258384 (2022-01-15 09:53:04)
      opposite pulse arrival at 1642306911 (2022-01-15 23:21:50)
      second time around pulse arrival at 1642383509 (2022-01-16 20:38:29)
query returned 96 data points
query returned 96 data points
query returned 95 data points
tonga_baro.py:108: RankWarning: Polyfit may be poorly conditioned
  coeff = np.polyfit(xdata, ydata, 5 )

Note: LAT/Long and speed of sound are identical in both scripts.

Cameron D

unread,
Jan 20, 2022, 10:40:36 PM1/20/22
to weewx-user
the RankWarning is just a warning, you should still have image files produced.  I expect the polyfit it just ignores higher order terms and just returns a quadratic.

That is because the polynomial is a poor representation of the background, and the spline fit works better, if you get the parameters correct.

Initially you are better just to view the results without trend removal.  If the peaks  do not stand out then  background removal is unlikely to help much.
Also, with my code,  make sure you start with oversampling set to 1. Only adjust it if you see a stair-step effect.

storm...@gmail.com

unread,
Jan 20, 2022, 11:05:49 PM1/20/22
to weewx-user
Yes, the image files are being produced. Only thing I noticed was the arrival time for the opposite pulse is off by approx. 20 minutes according to the actual PWS data, this could be due to the wave speeding up or slowing down as it made its way around the globe.  Right now I'm using your default settings.

Cameron D

unread,
Jan 20, 2022, 11:28:41 PM1/20/22
to weewx-user
There are certainly uncertainties in the barometric data timings. My system is probably a worst case - it only reports a value every 15 minutes, and I don't know if that is an average of the previous 15 minutes or just a snapshot reading at the transition time. So for me 20 minutes is within the uncertainty.
Also, I don't know if it is expected, but the  pulses that travelled further show only the negative part, which comes after the positive. So there is extra lag in that.

I derived a speed by fitting data to Australian bureau charts, and they only show 30 minute samples, so my speed is hardly definitive.  I would expect it to vary a bit around the globe.  The average speed I derived from the first peak alone was 0.30 m/s, so that is either an indicator of the uncertainty in the fitting or that the average speed increased as it progressed.

storm...@gmail.com

unread,
Jan 21, 2022, 12:00:54 AM1/21/22
to weewx-user
If I recall looking @ MADIS 15 minute data, it least for me, the pressure of the opposite wave did drop a some before the major spike. After changing the colors on the charts, it aligns with the first drop in pressure.

Tim Tuck

unread,
Jan 21, 2022, 12:36:31 AM1/21/22
to weewx...@googlegroups.com

Hi all,

The script works well on my data but the pressure readout is in inHg rather than hPa.

Can an option be inserted to have hPa computed before plotting ?

thanks

Tim

Cameron D

unread,
Jan 21, 2022, 12:50:53 AM1/21/22
to weewx-user
I assume your DB is storing in US units - mine is metricWX (I knew one day it would be useful to have done that!)
One easy way is to modify the queries yourself - where the  query (2 queries in my code)  specifies "barometer", replace with 
"barometer * 33.8639 as barometer"

Tim Tuck

unread,
Jan 21, 2022, 1:21:36 AM1/21/22
to weewx...@googlegroups.com

Hi Cameron,

Beut! - that worked a treat - thanks :)

I've also noticed that the return pulse highlight appears to be off, see pic below. Or is it meant to be like that ?

thanks

Tim



Cameron D

unread,
Jan 21, 2022, 1:44:10 AM1/21/22
to weewx-user
I don't understand the physics of it. As per the last few postings the speed of sound may be variable enough to show up here.

I would just tinker with the speed of sound parameter and see if you can make all peaks look sensible. At least you have data at a good frequency.

bgra...@umw.edu

unread,
Jan 21, 2022, 10:38:59 AM1/21/22
to weewx-user
Thanks all, bad copy of weewx.sdb. All is well.

paul.ba...@gmail.com

unread,
Jan 21, 2022, 12:36:06 PM1/21/22
to weewx-user
Hello,
I did a little experience using LOWESS (also called  LOESS in some places) with success I think. In my experience it is the best method I tried over the years.
This non parametric local smoothing exists for many lingages including Fortran (which I used...), C, Python, R etc.
It use three parameters: a smoothing factor, adjusted between 0 and 1. You have to experiment to find the best according to your problem. In my case .03 was good.. the second is the number of iterations, 1 to...; I adopted 2, the doc says any larger number will not change antthing; the last one is a speed-up factor; I choose 0 (= No Speed-Up). With 3639 data points, the processing time is barely seen (10 years old Intel i3770 processor). 

The upper pannel represent the original data in blue and the smoothed one on red.
The lower pannel represent the difference between the original data and the smoothed one.
The time (T) is given in days, starting at 0:00:00 UTC on January 15th. The last point is at 24:00:00 on January 18th.
The vertical axis is in mbar. My altitude is 410 meters.

The first and second pulses are very clearely visible. There are a few other signals needing interpretation...  Also noticable is the smoother signal before the first spike compared to the rest of the data.
Have a nice week-end,     Paul
Tonga-1.pdf

storm...@gmail.com

unread,
Jan 21, 2022, 5:33:18 PM1/21/22
to weewx-user
Here some graphs plotted from Cameron D script.  

distance to eruption 12255.7 km arrival at 1642260006 (2022-01-15 10:20:06)

Hunga_Tonga_primary.png

opposite pulse arrival at 1642310592 (2022-01-16 00:23:12)

Hunga_Tonga_secondary.png

second time around pulse arrival at 1642390434 (2022-01-16 22:33:54)


Hunga_Tonga_second return.png


Ted Frohling

unread,
Jan 21, 2022, 6:16:23 PM1/21/22
to 'Cameron D' via weewx-user

Thanks very much for the new python script.  It works.

The other three files looked great as well.

They were all for Tucson, AZ, USA

ted

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/71655988-a5d6-4771-bb56-12fa455f24f2n%40googlegroups.com.
Hunga_Tonga_all.png

morr...@gmail.com

unread,
Jan 22, 2022, 2:16:45 PM1/22/22
to weewx-user
Did an update to my script at: https://github.com/morrowwm/weewx_tonga_browse

Mostly incorporating additions from Cameron (thanks!)

All parameters you likely want to set are near the top of the script.
  1. support for mysql (untested, I don't have a mysql based weewx installation)
  2. calculation and display of all three initial arrival, arrival from opposite direction, and second arrival after one trip around the globe
  3. highlighting of the three events with grey bars
  4. cubic spline curve fit of raw data and use of that fit to remove the base pressure variations. The new smoothing_hours parameter can be used to control how close the fit is. 
  5. changed the display of data to highlight the extracted events and subdue the original data, other cosmetic changes
I had a data outage about 26 hours after the event, we're quite a distance from Tonga, plus a major storm was clearing out in our area. So not obviously anything unusual happened.

Some scientist might be interested in the arrival times of all this data, though.
hunga_tonga.png

pmcg...@gmail.com

unread,
Jan 22, 2022, 2:37:09 PM1/22/22
to weewx-user
WOW!  This is some interesting data, here is my location in Northern Utah.  Looks like the reverse may be a little off in calculation but this made it easy to find instead of hunting through the data.

Great Work!
hunga_tonga.png

morr...@gmail.com

unread,
Jan 22, 2022, 3:17:40 PM1/22/22
to weewx-user
The curve fit (solid black line) isn't matching your data (turquoise dots) really well. Try reducing smoothing_hours to maybe 12, or 6. 

The true model to estimate arrival times accurately is probably a lot more complicated than time = distance / constant_velocity. 

storm...@gmail.com

unread,
Jan 22, 2022, 3:22:51 PM1/22/22
to weewx-user
Nice work (Morrowwn  thanks!).  If you have any nulls in the data during the selected timeframe, change the query to read:  (Cameron D thanks!)

query = "select datetime, barometer from archive where datetime > %.0f and datetime < %.0f and barometer is not null order by dateTime;" % (start_time, stop_time)




hunga_tonga.png

If you want the bars closer to the rise and falls of the events, need to adjust the speed of sound slightly.

morr...@gmail.com

unread,
Jan 22, 2022, 3:32:47 PM1/22/22
to weewx-user
Forgot that, thanks for the reminder. Added now.

morr...@gmail.com

unread,
Jan 22, 2022, 4:14:51 PM1/22/22
to weewx-user
Also, I found a bug in calculating the smooth (spline fit) curve which is removed to highlight the eruption events. Added display of the points used to calculate the fitted curve.

Cameron D

unread,
Jan 22, 2022, 8:52:10 PM1/22/22
to weewx-user
Thanks morrowwm - much better to work from one source.

If anybody is needing to use the mysql version you should be warned that there is a ridiculously large number of mysql connector packages, and the one I used under Debian 10 is not packaged in Debian 11.
I tried one of the Debian 11 ones and the error handling codes are reported differently, so the easiest way out would be to just delete those lines and just print the print(err).
Drop me a line if you need help on that.

Cameron.

bgra...@umw.edu

unread,
Jan 23, 2022, 11:56:22 AM1/23/22
to weewx-user
Hi morrowwm,
I have tried your latest github post and am getting the following error:
```
root@n4mrv:/home/bg/weewx_tonga_browse-main# ./tonga_barometer.py

distance to eruption 12056.6 km
arrival at 1642257762 (2022-01-15 09:42:41)
opposite pulse arrival at 1642307533 (2022-01-15 23:32:13)
second time around pulse arrival at 1642382887 (2022-01-16 20:28:06)
select datetime, barometer from archive where datetime > 1642240800 and datetime < 1642395600 and barometer is not null order by dateTime;
query returned 171 data points

Traceback (most recent call last):
  File "./tonga_barometer.py", line 96, in <module>
    knots = np.linspace(np.min(tdata), np.max(tdata), (stop_time-start_time)/(3600*smoothing_hours), endpoint=True)  # spline knot every N hours
  File "<__array_function__ internals>", line 180, in linspace
  File "/usr/local/lib/python3.8/dist-packages/numpy/core/function_base.py", line 120, in linspace
    num = operator.index(num)
TypeError: 'float' object cannot be interpreted as an integer
```
The earlier version worked correctly and I don't think I have changed anything. I am using the same copy of weewx.sdb and only changed my lat/lon. 
Much appreciated for your work on this software.
Cheers,
Bob

Tom Hogland

unread,
Jan 23, 2022, 12:06:36 PM1/23/22
to weewx-user
Mine, from 9400km (Alaska). Not too bad of a match, although reducing speed to .31 brings it closer. Regardless, using .32 lets you pick out the pressure waves. We actually heard the initial eruption up here was well...
hunga_tonga.png

bgra...@umw.edu

unread,
Jan 23, 2022, 4:26:46 PM1/23/22
to weewx-user
Bingo! Many thanks!  Bob

bg@n4mrv:~/weewx_tonga_browse-main$ sudo python3 ./tonga_barometer.py
distance to eruption 12056.6 km
arrival at 1642257762 (2022-01-15 09:42:41)
opposite pulse arrival at 1642307533 (2022-01-15 23:32:13)
second time around pulse arrival at 1642382887 (2022-01-16 20:28:06)
select datetime, barometer from archive where datetime > 1642240800 and datetime
 < 1642395600 and barometer is not null order by dateTime;
query returned 171 data points
Fitting between 1642240800.0 and 1642395600.0 with 10 knots

Figure_1.png

storm...@gmail.com

unread,
Jan 23, 2022, 5:29:38 PM1/23/22
to weewx-user
Data from both Davis and Acurite PWS

hunga_tonga_davis.png

hunga_tonga_acurite.png

morr...@gmail.com

unread,
Jan 23, 2022, 7:28:55 PM1/23/22
to weewx-user
OK, I've put the fix up on github. Thanks for finding this bug.

morr...@gmail.com

unread,
Jan 23, 2022, 7:35:06 PM1/23/22
to weewx-user
Interesting, no sign of a pulse from the second trip around.

Paul Eaton

unread,
Jan 24, 2022, 2:17:20 PM1/24/22
to weewx-user
Here's one from England. A bit messy after 07:00 on 16-01 but the Initial and Reverse pulses show up very clearly. Best match is with speed reduced to 0.30 km/s.
hunga_tonga.png

Gérard P

unread,
Jan 30, 2022, 12:55:59 PM1/30/22
to weewx-user
Very interesting thread, using same speed as Paul, and here is a plot from France near Paris.

Tonga.png

DR

unread,
Jan 30, 2022, 2:54:51 PM1/30/22
to weewx...@googlegroups.com

There must be locations where the initial and reverse waves met at the same time.  Was anyone along that line that has tracings to share?


On 1/30/2022 11:55 AM, Gérard P wrote:
Very interesting thread, using same speed as Paul, and here is a plot from France near Paris.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

Karen K

unread,
Jan 30, 2022, 3:28:42 PM1/30/22
to weewx-user
daleea...@gmail.com schrieb am Sonntag, 30. Januar 2022 um 20:54:51 UTC+1:

There must be locations where the initial and reverse waves met at the same time.  Was anyone along that line that has tracings to share?

That's somewhere in Niger in Africa. 
 

Gérard P

unread,
Jan 30, 2022, 3:28:59 PM1/30/22
to weewx-user
I made a mistake (wrong sign) on longitude, here is the correct graph with better correlation for the three peaks.

Tonga.png

morr...@gmail.com

unread,
Feb 1, 2022, 11:15:10 AM2/1/22
to weewx-user
There's a wunderground feed from the Diori Hamani International Airport at lat/long 13.4, 2.2, but is doesn't seem to have barometric pressure history.

I put in approxiamte antipodal lat/long of (20.54, 4.7) and it calculate arrivals as:
distance to eruption 20002.7 km
arrival at 1642282593 (2022-01-15 17:36:33)
opposite pulse arrival at 1642282702 (2022-01-15 17:38:21)

Reply all
Reply to author
Forward
0 new messages