Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Wind hourly mean

Discussion specific to Fine Offset and similar rebadged weather stations
Post Reply
ws2080jo
Posts: 51
Joined: Tue 07 Aug 2012 7:54 am
Weather Station: WS-2080
Operating System: win7
Location: Jordan

Wind hourly mean

Post by ws2080jo »

one of my objectives in graduation project to calcluate hourly mean of wind (speed and dominating direction) /hour , I found that cumulus has 10min-average , how could I calcuate the hourly mean speed/direction from the daily log file , could anyone help will be appreciated?


Regards
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Wind hourly mean

Post by steve »

is that a rolling 60-minute average, or 24 average figures for each hour of the day?

If the latter, you would have to process the data log files, extracting the entries for each hour, and taking an average of all of the wind speed values in each set of entries.

If the former, and you were willing to 'lose' the 10-minute average, you could get Cumulus to do a 60-minute average by editing cumulus.ini and adding a line to the [Station] section:

AvgSpeedMinutes=60
Steve
ws2080jo
Posts: 51
Joined: Tue 07 Aug 2012 7:54 am
Weather Station: WS-2080
Operating System: win7
Location: Jordan

Re: Wind hourly mean

Post by ws2080jo »

much appreciated AvgSpeedMinutes=60 is what I want

thanks alot
ws2080jo
Posts: 51
Joined: Tue 07 Aug 2012 7:54 am
Weather Station: WS-2080
Operating System: win7
Location: Jordan

Re: Wind hourly mean

Post by ws2080jo »

Is it correct for dominant wind direction / hour to average wind degrees. From log?
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Wind hourly mean

Post by mcrossley »

The sound of a can of worms being opened! :lol:

A number of options as I see it.

1. Mean vector: You treat the wind as a vector and take into account the speed as well as direction. So if it was blowing North 50% of the time at 5mph and East the other 50% at 10mph, then the dominate direction would not be NE, it would be skewed to the East. This way you end up with a mean of the vectors, and if the directions do not vary much it is meaningful. But if say it was blowing NNE 49% and the time, and SSE the other 51% then the result will be almost East, but the wind never really blew from the east!

2. Time based bins: You sum the time the wind spends blowing in each direction and the dominant wind is the largest bin value - SSE in the second example above.

3. Binned vectors. You the sum vectors in each direction bin and the largest value wins. So like the time based, but you weight each value by the speed.

4. Time based average: You take a simple average all the directions.

5. There are probably other ways of doing as well!
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Wind hourly mean

Post by steve »

mcrossley wrote:1. Mean vector: You treat the wind as a vector and take into account the speed as well as direction.
This one is how Cumulus does the average bearing.

You can use the setting AvgBearingMinutes=60, and then average bearing is also worked out over 60 minutes (using the above method).
Steve
ws2080jo
Posts: 51
Joined: Tue 07 Aug 2012 7:54 am
Weather Station: WS-2080
Operating System: win7
Location: Jordan

Re: Wind hourly mean

Post by ws2080jo »

Very useful helped me a lot thanks all for support and cumulus help us a lot in our grad project

Thanks
ws2080jo
Posts: 51
Joined: Tue 07 Aug 2012 7:54 am
Weather Station: WS-2080
Operating System: win7
Location: Jordan

Re: Wind hourly mean

Post by ws2080jo »

I perform this to day log file for 1 hours

Ve = Σ [wspd* sin(wdir)]/N
Vn = Σ [wspd*cos(wdir)]/N

UV = (Ve2 + Vn2) 1/2
AV = ArcTan(Ve/Vn)

but I'm getting values like -0.954 , should I do other operation to find wind degree

Thanks for cooperation
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Wind hourly mean

Post by mcrossley »

Without checking anything, I think you will need to use an ArcTan2() function to find the correct quadrant
ws2080jo
Posts: 51
Joined: Tue 07 Aug 2012 7:54 am
Weather Station: WS-2080
Operating System: win7
Location: Jordan

Re: Wind hourly mean

Post by ws2080jo »

one of my colleagues telling me that I should convert wdir degree to radian then final result in rad convert it to degree and if less than 0 add 180? it that correct?
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Wind hourly mean

Post by mcrossley »

I don't know for sure because I don't know what language you are using, but normally maths functions do take and return values in radians. I would still use an arctan2 function though.
Post Reply