search for: wind_dir_vec

Displaying 2 results from an estimated 2 matches for "wind_dir_vec".

2010 Apr 18
2
rosavent problem
I have a frequency table that I am trying to plot on a rose diagram using rosavent. I've set the table up by using this line: Wind_freq_speed <- t(table(cut(Wind_Dir_vec, 0:36), cut(Wind_Speed_vec, seq(0, to=60, by=10)))) It produces the following table layout, which is consistent with the rosavent example (windfreq.dat). 10 20 30 40 50 60 70... 360 0-10 10-20 20-30 30-40 40-50 50-60 However, when I use the rosavent command (i.e. rosave...
2010 Apr 17
1
Frequency table
...mits of the specified speed (i.e. 0-3, 3-6, etc.). I have a table with 2 fields - *direction values* (0-36, which represents the direction/10) and *speed values*. I can use the direction values to get a 1-dimensional array of the frequency of each direction value using: Wind_freq <- table(cut(Wind_Dir_vec, 0:36)) Wind_freq_t <- t(Wind_freq) ## transpose it to be in the same format as the data above but I need to incorporate the speed values and have a table like the following: 1 2 3 4 5 6 .... 36 0-9 10-19 20-29 30-39 40-49 50+ The final table will be...