On Friday, 17 March 2017 21:54:36 UTC+10, Eelco F wrote: > > > So, after this I now have archive_day_wind, archive_day_windSpeed, > archive_day_windGust, archive_day_windGustDir, archive day_windDir. > > In my overview I used to have a line: $alltime.wind.max > ($alltime.wind.gustdir) at $alltime.wind.maxtime. > This showed the alltime maxwind, the direction and the time. > Now i would like to show alltime max windgust, maxwindgust dir, > maxwindgusttime and maxwindSpeed, maxwindSpeed dir, maxwindSpeed time. But > I don know how to get maxwindGust dir and max windSpeed dir. >
A few points first. In an archive (or stats) context windSpeed is the average wind speed over an archive period, windGust is the max wind speed seen over an archive period. Aggregates on windSpeed, windDir, windGust and windGustDir return scalar (ie one dimensional) stats eg the $xxxx.windSpeed.max will give the max average wind speed over an archive period that occurred during the period xxxx. Aggregates on the vector observation 'wind' allow you to get additional aggregates of a vector nature eg $xxxx.wind.vecavg and $ xxxx.wind.vecdir give the vector average wind speed and vector average wind direction over the period xxxx respectively. You might want to try these: $alltime.wind.max - this will give you the alltime high wind speed seen $alltime.wind.maxtime - this will give you the time of the alltime high wind speed seen $alltime.wind.gustdir - this will give you the direction of the alltime high wind speed seen $alltime.windSpeed.max - this will give you the alltime high windSpeed seen (provided you have applied the max windSpeed fix - which you have) .Note that in this context windSpeed is the average wind speed over the archive period. $alltime.windSpeed.maxtime - this will give you the time of the alltime high windSpeed seen (provided you have applied the max windSpeed fix - which you have). Note that in this context windSpeed is the average wind speed over the archive period. There is no tag that will give you the max windSpeed direction, $xxxx.windDir.max will give you the max windDir value seen over the period xxxx but this bears no relationship to $xxxx.windSpeed.max. This is because the windSpeed stats are scalar in nature and therefore only record one dimensional stats on the wind speed. The weeWX vector observation 'wind' keeps vector stats but only on the max/min wind speeds and directions, not on max/min windSpeed and directions (remember that in an archive or stats context windSpeed is seen as the average wind speed over the archive period). If you were to set [StdArchive] loop_hilo=False in weewx.conf (the default is True) I think $alltime.wind.gustdir would give you the direcection of the max windSpeed seen over the period, but you will likely miss out in other areas as you won't necessarily see the maxs and mins and times (for all obs not just wind) that appear in the loop data since you are now ignoring loop data when calculating maxs and mins. Wind related stats are a complex area with many moving parts; I am sorry it could not be easily explained. You may find more info in the Customization Guide under Wind <http://weewx.com/docs/customizing.htm#Wind>and in the wiki under what is wind gust and how is it different from maximum wind speed <https://github.com/weewx/weewx/wiki/windgust>. Gary -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
