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.

On Saturday, January 22, 2022 at 4:32:47 p.m. UTC-4 morr...@gmail.com wrote:

> Forgot that, thanks for the reminder. Added now.
>
> On Saturday, January 22, 2022 at 4:22:51 p.m. UTC-4 storm...@gmail.com 
> wrote:
>
>> 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)*
>>
>>
>>
>>
>> [image: 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.
>> On Saturday, January 22, 2022 at 2:37:09 PM UTC-5 pmcg...@gmail.com 
>> wrote:
>>
>>> 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!
>>> [image: hunga_tonga.png]
>>> On Saturday, January 22, 2022 at 12:16:45 PM UTC-7 morr...@gmail.com 
>>> wrote:
>>>
>>>> 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.
>>>> [image: hunga_tonga.png]
>>>>
>>>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/986683ea-1046-4cb4-9aa4-2a41797c7303n%40googlegroups.com.

Reply via email to