ignore_zero_wind with a broken anemometer

72 views
Skip to first unread message

Emiliano

unread,
Nov 24, 2018, 12:41:06 PM11/24/18
to weewx-user
Hi,
my anemometer is definitively broken due to too much wind in the current season and it is reporting wrong values,
but the wind direction still being reported correcty. So I've modified the weewx.conf:

[StdWXCalculate]
ignore_zero_wind = False

[StdCalibrate]
[[Corrections]]
  windSpeed = None

Unfortunately the windDir is always archived as 0, because the VecStats.vec_dir uses the speed to calculate the wind vector
What do you suggest to continue archiving the Direction without having the Speed?

This is a session with the Simulator Driver and a forced correction windDir = 90:

LOOP: 2018-11-24 18:34:04 CET (1543080844) ... usUnits: 1, windDir: 90, windGust: 2.47898288563e-08, windGustDir: 359.999999256, windSpeed: None
LOOP: 2018-11-24 18:34:09 CET (1543080849) ... usUnits: 1, windDir: 90, windGust: 2.23108460595e-07, windGustDir: 359.999993307, windSpeed: None
LOOP: 2018-11-24 18:34:14 CET (1543080854) ... usUnits: 1, windDir: 90, windGust: 6.19745716968e-07, windGustDir: 359.999981408, windSpeed: None
LOOP: 2018-11-24 18:34:19 CET (1543080859) ... usUnits: 1, windDir: 90, windGust: 1.21470158376e-06, windGustDir: 359.999963559, windSpeed: None
LOOP: 2018-11-24 18:34:24 CET (1543080864) ... usUnits: 1, windDir: 90, windGust: 2.0079760441e-06, windGustDir: 359.999939761, windSpeed: None
LOOP: 2018-11-24 18:34:29 CET (1543080869) ... usUnits: 1, windDir: 90, windGust: 2.99956906957e-06, windGustDir: 359.999910013, windSpeed: None
LOOP: 2018-11-24 18:34:34 CET (1543080874) ... usUnits: 1, windDir: 90, windGust: 4.1894806273e-06, windGustDir: 359.999874316, windSpeed: None
LOOP: 2018-11-24 18:34:39 CET (1543080879) ... usUnits: 1, windDir: 90, windGust: 5.57771067999e-06, windGustDir: 359.999832669, windSpeed: None
LOOP: 2018-11-24 18:34:44 CET (1543080884) ... usUnits: 1, windDir: 90, windGust: 7.16425917968e-06, windGustDir: 359.999785072, windSpeed: None
LOOP: 2018-11-24 18:34:49 CET (1543080889) ... usUnits: 1, windDir: 90, windGust: 8.94912607485e-06, windGustDir: 359.999731526, windSpeed: None
LOOP: 2018-11-24 18:34:54 CET (1543080894) ... usUnits: 1, windDir: 90, windGust: 1.0932311306e-05, windGustDir: 359.999672031, windSpeed: None
LOOP: 2018-11-24 18:34:59 CET (1543080899) ... usUnits: 1, windDir: 90, windGust: 1.31138148092e-05, windGustDir: 359.999606586, windSpeed: None
LOOP: 2018-11-24 18:35:04 CET (1543080904) ... usUnits: 1, windDir: 90, windGust: 1.54936365098e-05, windGustDir: 359.999535191, windSpeed: None
LOOP: 2018-11-24 18:35:09 CET (1543080909) ... usUnits: 1, windDir: 90, windGust: 1.80717763305e-05, windGustDir: 359.999457847, windSpeed: None
LOOP: 2018-11-24 18:35:14 CET (1543080914) ... usUnits: 1, windDir: 90, windGust: 2.08482341861e-05, windGustDir: 359.999374553, windSpeed: None
LOOP: 2018-11-24 18:35:19 CET (1543080919) ... usUnits: 1, windDir: 90, windGust: 2.38230099843e-05, windGustDir: 359.99928531, windSpeed: None
REC: 2018-11-24 18:35:00 CET (1543080900) ... usUnits: 1, windDir: 359.999606586, windGust: 1.31138148092e-05, windGustDir: 359.999606586, windrun: 0.333333333333, windSpeed: None

emiliano

Thomas Keffer

unread,
Nov 24, 2018, 5:47:11 PM11/24/18
to weewx...@googlegroups.com
But, it's not archived with value 0. The value is 356.999606586, which, while quite close to zero, is not zero.

Give the simulator time. It starts with a north wind, then slowly clocks to NW.

To speed it up, set 

mode=generator

under section [Simulator].

-tk

--
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.
For more options, visit https://groups.google.com/d/optout.

Emiliano Parasassi

unread,
Nov 25, 2018, 5:18:45 AM11/25/18
to weewx...@googlegroups.com
Thank you Thomas,
with the generator mode the windDir value is calculated about 260 but I would expect near 90 !

e.

You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/XY7jhl6JLGk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Thomas Keffer

unread,
Nov 25, 2018, 7:48:34 AM11/25/18
to weewx...@googlegroups.com
Yes, I see what you mean about vec_dir in the accumulators. It's there because the average wind direction of [359, 0, 1] is 0, not 180.

It is possible to change the behavior of the accumulators so they emit the last value (rather than the average), but it would take me some time to think about how to do it. Frankly, you're better off fixing your instrument. No amount of software can make up for a bad measurement!

-tk
Reply all
Reply to author
Forward
0 new messages