Log windSpeed as 0 instead of null

39 views
Skip to first unread message

Pat

unread,
Feb 12, 2021, 3:43:12 PM2/12/21
to weewx-user
I could use a reminder on how to do this - it's been a little while. 

How can I save windSpeed to the archive as 0 instead of NULL if there's no wind for that archive interval?

Tom Keffer

unread,
Feb 12, 2021, 4:47:54 PM2/12/21
to weewx-user
If there is no wind, windSpeed is always stored as 0, never null. 

Or, do you mean wind direction?

On Fri, Feb 12, 2021 at 12:43 PM Pat <pobri...@gmail.com> wrote:
I could use a reminder on how to do this - it's been a little while. 

How can I save windSpeed to the archive as 0 instead of NULL if there's no wind for that archive interval?

--
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/9e20d292-a523-43c2-8714-dee17bf1a1e4n%40googlegroups.com.

Pat O'Brien

unread,
Feb 12, 2021, 4:53:20 PM2/12/21
to weewx...@googlegroups.com
No I mean windSpeed. I saw the force_null for wind direction. For some reason I have null for wind speed, when I'm thinking it was 0.

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/C844BplDJRI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zECg_un%3D9gM-Lbr011qP6op%2BS4%3DTcQdQ4A0RLqpbDa%3D6hg%40mail.gmail.com.

p q

unread,
Feb 12, 2021, 5:06:32 PM2/12/21
to weewx...@googlegroups.com
I misread this originally. Why would anyone want to plot the log (logorithm) of the wind speed. Iog 0 is 1 not null. Confusion. 

And then I read it correctly. :)

Tom Keffer

unread,
Feb 12, 2021, 5:11:16 PM2/12/21
to weewx-user
I would guess it was emitted that way by the driver.

There's nothing I can think of in WeeWX that would force a zero windSpeed to null (None). 


Pat

unread,
Feb 12, 2021, 5:11:55 PM2/12/21
to weewx-user
Possibly - thanks! Will dig deeper into that
Reply all
Reply to author
Forward
0 new messages