How to plot wind rose in matlab?

I want to plot wind rose diagrams but I don't know how to use windrose.m file. Can anybody tell me how to use this file?

 Accepted Answer

Star Strider
Star Strider on 3 Apr 2015
I don’t know what format your data are in. You can always use the rose plot function, or if you have data in the form this person has, use the code I wrote in Rose diagram for discrete data.

4 Comments

I have two data sets, one is hourly wind speed data of a site and other is direction data at every three hours with some missing entries.
I don’t know how you want to deal with hourly wind velocity and incomplete direction data every three hours. Those are your decisions, but you have to have one set of direction data and one set of velocity data to use any function I’m aware of (including nine). I would either average the velocity data, or interpolate the missing direction data. That choice is yours. (Meteorologic phenomena are rarely of sufficient frequency that you would have to sample them more often than every hour.) I would interpolate the missing entries, unless they are missing because the velocity was so extreme that the anemometer or windvane broke. (This has been known to occur.)
You have to create a data set that meets your continuity requirements first (hourly or thrice-hourly). Then we can determine the appropriate plot for them. You may want to consider pol2cart and plot3 as well if you want velocity and direction (x,y) as a function of time (z).
Thanks for your suggestions.I will come back to you if more help needed
My pleasure!

Sign in to comment.

More Answers (0)

Categories

Find more on Weather and Atmospheric Science in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!